M mgame.gg

Minecraft

Home Guides Servers Tools Log in

Language

All games

Fortnite Pokemon Minecraft Roblox Counter-Strike 2 Grand Theft Auto V Grand Theft Auto VI League of Legends Valorant Dota 2 Battlefield 6 Arc Raiders The Sims 4 Apex Legends Overwatch Marvel Rivals World of Warcraft PUBG: Battlegrounds EA Sports FC Rocket League Rainbow Six Siege Elden Ring Clair Obscur: Expedition 33 Baldur's Gate 3 Cyberpunk 2077 Red Dead Redemption 2 Genshin Impact Path of Exile 2 Helldivers 2 Split Fiction PEAK Terraria Stardew Valley Counter-Strike: Source Counter-Strike 1.6
← Minecraft tools

Minecraft Summon Command Generator

Make Minecraft /summon commands with custom names, NoAI, baby mobs, health, attributes, armour, potion effects and passengers for Java 1.20.5 to 26.x.

This generator builds a Java Edition /summon command for any mob or entity, with a custom name, behaviour flags, health, attributes, armour, potion effects, tags and a rider. Set the options and copy the command. It supports Java 1.21.5 and later (including 26.x) and the older 1.20.5–1.21.4 format.

How to use it

  1. Pick your game version. If you're on 1.20.5–1.21.1, also tick the box for the older attribute IDs.
  2. Search for an entity, such as "zombie", and click it. You can also type an entity ID and press Enter.
  3. Set the position. ~ ~ ~ is where you stand. ~ ~5 ~ is five blocks up. ^ ^ ^3 is three blocks in front of where you're looking.
  4. Add a custom name, choose whether it's always visible, and tick any flags.
  5. For mobs, set health, add attributes, fill equipment slots and add effects.
  6. Add tags or a passenger, then press Copy command.

Sections that don't apply to the chosen entity are hidden. TNT, for example, has no health or equipment.

The /summon format

/summon <entity> [<x y z>] [{nbt}]

The NBT part is a list of entity data fields. For example:

/summon zombie ~ ~ ~ {IsBaby:1b,PersistenceRequired:1b}

summons a baby zombie that never despawns.

Common fields

Field What it does
CustomName / CustomNameVisible Name above the entity, and whether it shows all the time
NoAI Mob doesn't move, attack or fall
Silent No sounds
Invulnerable Takes no damage (except from Creative players)
Glowing Outline visible through walls
NoGravity Doesn't fall
PersistenceRequired Never despawns
Health Current health in half-hearts
attributes Base values such as max health, speed, attack damage and scale
equipment Items in head, chest, legs, feet, hands, body and saddle slots (1.21.5+)
active_effects Potion effects with level, duration and particles
Tags Scoreboard tags for selectors like @e[tag=boss]
Passengers Entities riding on top

Baby mobs

There are two ways to make a baby, and the tool picks the right one:

  • Zombies, husks, drowned, zombie villagers, piglins, zombified piglins and zoglins use IsBaby:1b.
  • Breedable animals and villagers use a negative Age. The tool writes Age:-24000, and Never grows up adds AgeLocked:1b.

Health and max health

Health can't go above the mob's max health. To summon a zombie with 40 health, also add the Max health attribute at 40. The tool warns you if you forget.

Attributes

Attributes set a mob's base stats. Useful ones include max_health, movement_speed, attack_damage, armor, knockback_resistance, follow_range and scale. Scale goes from 0.0625 to 16 and makes a mob tiny or huge. Values outside an attribute's range are clamped by the game.

Attribute IDs changed in 1.21.2. Before that, most had a generic. prefix, such as minecraft:generic.max_health. Tick the 1.20.5–1.21.1 box and the tool adds the prefix.

Equipment and drops

In 1.21.5 and later, gear goes in one equipment field, for example equipment:{head:{id:"minecraft:diamond_helmet",count:1}}. The drops option sets drop_chances. Any value above 1 makes the item always drop undamaged, and 0 means it never drops. The older equipment format isn't offered here.

Effects

Effects use the active_effects list. The tool converts your level to the game's amplifier (level 2 = amplifier:1b) and seconds to ticks (20 per second). A duration of 0 seconds gives an infinite effect (duration:-1).

Frequently asked questions

How do you summon a baby zombie or baby animal?

Zombies, husks, drowned, zombie villagers, piglins, zombified piglins and zoglins use IsBaby:1b, as in /summon zombie ~ ~ ~ {IsBaby:1b}. Breedable animals and villagers use a negative age instead, such as Age:-24000. Add AgeLocked:1b to stop them from growing up.

Why does my summon command fail on Peaceful?

Since Java 1.21.9, summoning monsters fails when the difficulty is Peaceful. Switch to Easy or higher, then run the command again.

How do I make a mob stand still?

Tick No AI. The mob won't move, turn or fall. Add Invulnerable too if it shouldn't take damage.

How do I make a giant mob?

Add the Scale (size) attribute with a value up to 16. Scale was added in 1.20.5 and goes from 0.0625 to 16, so it can make a mob tiny or huge.

Can I summon a player?

No. Players and fishing bobbers can't be summoned.

Does the summon command generator work on Bedrock?

No. Bedrock's /summon doesn't accept NBT data, so these commands are Java Edition only.