Mob
Which mob, what it is called and how tough it is
Name
Health
1 to 1,024 points, 2 points per heart. Leave empty for the mob's own default.
Options
Gear
Held items and armour. Only some mobs draw them.
Status effects
Effects the mob spawns with
No effects yet.
Position
Where the mob appears
Offsets in blocks. 0 is written as a bare ~.
Your command
Java Edition 26.3
Java Edition
/summon minecraft:zombie ~ ~ ~ Paste into chat or a command block. 30 characters
Bedrock Edition
/summon zombie ~ ~ ~ Name and position only. Bedrock's /summon takes no health, gear or effects. 20 characters
How the Minecraft /summon command works
The syntax, the entity data tags and what Bedrock leaves out
On Java Edition the command is /summon <entity> [<pos>] [<nbt>].
The entity is any ID from the entity type registry, the position takes ~ and ^ notation, and the last argument is a block of entity data in braces. Players
and fishing bobbers can't be summoned, and armor stands have their own armor stand generator. This generator lists 88 mobs read from the
Minecraft 26.3 entity registry, so every ID in the picker is one the game knows.
Everything inside the braces is optional, and a tag left off keeps the mob's default. The flags are plain
booleans: NoAI switches the AI off, Silent mutes the
mob, Invulnerable stops damage, PersistenceRequired stops natural despawning and Glowing draws an outline you can see through walls. The name
goes in CustomName as a text component, and CustomNameVisible keeps it on screen at all times.
Health is a float, but the generator also writes the max_health attribute with the same value, so a mob can start above its usual
maximum. The attribute runs from 1 to 1,024 points, and each heart is 2 points. Gear goes in a single equipment compound keyed by slot, and the old HandItems and ArmorItems lists are merged into it as
of Java 1.21.5. Every mob accepts the tag, but not every mob draws what it holds.
Effects use active_effects, a list of compounds with an id, a
byte amplifier that is the level minus one, and a duration in ticks. There are 20 ticks to a second, and -1 means the effect never
runs out. Babies work two ways: breedable mobs take a negative Age (the generator writes -24000, which is 20 minutes of ticks), while zombie-types
take IsBaby:true.
Bedrock is much simpler. Its command is /summon <entity> [name tag] [position] with an optional spawn event from a
behavior pack and no NBT at all, so health, gear and effects can't be set there. The Bedrock line above carries
the mob, its name and its position.
Worked example
A named zombie "Tank" with 100 health, an iron helmet and iron sword, Resistance II for 5 minutes, and no despawning:
/summon minecraft:zombie ~ ~ ~ {CustomName:"Tank",CustomNameVisible:true,attributes:[{id:"minecraft:max_health",base:100d}],Health:100f,PersistenceRequired:true,equipment:{head:{id:"minecraft:iron_helmet",count:1},mainhand:{id:"minecraft:iron_sword",count:1}},active_effects:[{id:"minecraft:resistance",amplifier:1b,duration:6000}]} Resistance II is amplifier:1b because the byte is the level minus one, and five
minutes is 300 seconds × 20 = duration:6000 ticks. Health 100 writes both Health:100f and a max_health base of 100, which is 50
hearts.
More Minecraft tools
Other command builders and item references
Frequently asked questions
Health, babies, despawning and Bedrock
How do I summon a mob with more health? +
Set the Health box. The generator writes Health and the max_health attribute together, so a value above the mob's normal maximum holds. The attribute allows 1 to 1,024.
Why does this command not work on Bedrock? +
The Java command takes an NBT block in braces, and Bedrock's /summon has no such argument. Bedrock takes the entity, an optional name tag and a position, so use the Bedrock command below the Java one. Health, gear and effects can't be set that way.
How do I summon a baby mob? +
Turn on Baby. Breedable mobs such as pigs and cows get a negative Age, and zombie-types such as husks and piglins get IsBaby:true. Mobs with no baby form, like creepers, ignore the switch, so it is greyed out for them.
How do I stop a summoned mob despawning? +
To stop a summoned mob despawning, turn on Never despawn, which writes PersistenceRequired:true. Add No AI as well if you want it to stay exactly where it was summoned instead of wandering off.
Why does the command fail for a monster? +
Since Java 1.21.9 (25w31a), /summon fails for monsters on Peaceful difficulty. Raise the difficulty first, for example with /difficulty easy, then run the command again.
Command syntax checked for Minecraft 26.3