Edition comparison

/summon — Java vs Bedrock

Minecraft 1.21.8. Full /summon reference →

Java Edition
Syntax
Bedrock Edition
Syntax

Key differences

  • Bedrock uses a positional `<spawnEvent>` string (e.g. 'minecraft:as_baby') instead of Java's NBT block.
  • Java's NBT (`{Tags:[],Health:50f}`) doesn't work in Bedrock — Bedrock uses spawn events and follow-up commands to modify the entity.
  • Bedrock allows `/summon <type> <name> <x y z>` shorthand to set a nametag inline; Java requires a follow-up /data merge.
  • Bedrock supports spawning some entities Java doesn't (e.g. NPC for Education-style world building).

Bedrock examples

Copy-pasteable. Run in chat with cheats enabled.

  • Spawn a regular zombie at your position.

  • Spawn a baby zombie. The spawn event is the Bedrock equivalent of Java's `Age:-1` NBT.

  • Spawn a villager named Bob — Bedrock's inline-nametag form. Java would need /summon + /data merge.

Java examples

For contrast — these are the canonical Java forms.

  • Spawn a creeper at your position.

  • Spawn a non-AI Enderman named Bob at your position.

  • Strike the nearest player with lightning. /summon's <pos> only accepts coordinates, so wrap with /execute at to target an entity.

Switching between editions — watch out for

  • Most Java /summon NBT recipes don't translate directly — Bedrock relies on spawn events defined per entity type. Check the wiki for each mob's event list.
  • Bedrock doesn't let you set arbitrary entity attributes at summon time. Use /attribute or /effect after spawning.

FAQ

What's the difference between /summon in Java and Bedrock?
/summon exists in both editions but the syntax differs — see the "Key differences" section above. The most common gotcha is that Java's component syntax (square brackets after the item ID) doesn't work in Bedrock.
Why doesn't my Java /summon command work in Bedrock?
Bedrock has stricter syntax and doesn't support Java's modern component-based item syntax. If you copied a command from a Java tutorial, Bedrock will likely reject it silently or run a partial version. Use the Bedrock examples on this page as templates.
Does /summon work the same on consoles and mobile?
Yes — Bedrock Edition is the same codebase on Windows 10, Xbox, PlayStation, Switch, iOS, and Android. The syntax shown here works on every Bedrock platform.

Other edition comparisons