Updated:
Magma Cube: entity ID and summon command
The entity ID for Magma Cube is minecraft:magma_cube. Use it with /summon and in selectors such as @e[type=…]. The ID has been the same since Java 1.13.
Basic data
| Name | Magma Cube |
|---|---|
| ID (Java Edition) | minecraft:magma_cube |
| Type | Hostile mob |
| Java versions | Java 1.13 to 26.3 |
| Bedrock 26.52 | Same ID works (tested on a server) |
| Size | 0.52 wide × 0.52 tall (blocks) |
| Spawn egg | Magma Cube Spawn Egg |
Commands you can copy
Java Edition
Summon at your position
/summon minecraft:magma_cube ~ ~ ~Summon with no AI
/summon minecraft:magma_cube ~ ~ ~ {NoAI:1b}Remove all of them
/kill @e[type=minecraft:magma_cube]Remove only within 10 blocks
/kill @e[type=minecraft:magma_cube,distance=..10]Test whether one exists
/execute if entity @e[type=minecraft:magma_cube]Teleport the nearest one to you
/tp @e[type=minecraft:magma_cube,sort=nearest,limit=1] @sGive the spawn egg
/give @p minecraft:magma_cube_spawn_egg 1Bedrock Edition
Summon at your position
/summon magma_cubeRemove all of them
/kill @e[type=magma_cube]Remove only within 10 blocks
/kill @e[type=magma_cube,r=10]What it drops
| Item | Count | Condition |
|---|---|---|
| Magma Cream | -2–1 | Only in certain conditions / More with Looting |
| Pearlescent Froglight | 1 | Only in certain conditions |
| Verdant Froglight | 1 | Only in certain conditions |
| Ochre Froglight | 1 | Only in certain conditions |
From the official Java 26.3 loot table. Experience is not included.
Version notes
This ID has not changed from Java 1.13 to the latest 26.3.
In selectors, Java Edition uses type=minecraft:ID and Bedrock uses type=ID. Add ! as in type=!minecraft:ID to match everything else.
Questions
What is the ID for Magma Cube?
It is minecraft:magma_cube. In commands you can also write magma_cube without minecraft:.
Why does Magma Cube disappear right after summoning?
On Peaceful difficulty, hostile mobs are removed at once. Raise the difficulty, for example with /difficulty easy.
How far does /kill reach?
@e[type=minecraft:magma_cube] matches every one in loaded chunks. To limit it to nearby ones, add distance=..10 (r=10 on Bedrock).