Skip to content
[/craft]

Summon Magma Cube Command

Copy the /summon command for Magma Cube in Minecraft Java 26.2 and Bedrock 26.32. Grab the default command below, or use the builder to set position and options.

Default command

Java/summon minecraft:magma_cube ~ ~ ~
Bedrock/summon magma_cube ~ ~ ~

With custom name

Java/summon minecraft:magma_cube ~ ~ ~ {CustomName:'"Magma Cube"'}

Custom names via NBT are Java-only. On Bedrock, use a name tag after summoning.

Customize in the builder

JavaSwitch edition using the selector in the header.
magma cube
/summon minecraft:magma_cube ~ ~ ~

Frequently asked questions

How do I summon a Magma Cube in Minecraft?
Enable cheats or use OP, open chat with T or /, paste /summon minecraft:magma_cube ~ ~ ~ (Java) or /summon magma_cube ~ ~ ~ (Bedrock), and press Enter. The Magma Cube spawns at your feet.
Does the summon Magma Cube command work on Bedrock Edition?
Yes — use /summon magma_cube ~ ~ ~. Bedrock uses the same entity IDs without the "minecraft:" prefix and does not support NBT arguments like custom names in the summon command.
Why does my summoned Magma Cube despawn?
Mobs despawn when no players are nearby. On Java Edition, add {PersistenceRequired:1b} to the summon command to prevent it. On Bedrock, use a name tag on the mob after summoning.
Browse all Summon commands →/summon builder →Java vs Bedrock guide →