Skip to content
WikilyWIKILY
All games23 Wikis · pick your game
Commands and cheatsAll commands

Switch game

23 Wikis · pick your game
/summon

Command

/summon

Creates a new entity, such as a mob, at a position.

Syntax

/summon <entity> [<pos> [<nbt>]]

Arguments

ArgumentKind of valueWhat to type
<entity>Game idThe id of the entity type to summon, for example minecraft:zombie. The id of an entity.
<pos>Exact positionWhere the entity appears, as three coordinates that may have decimals. Defaults to the position the command is run from.
<nbt>Data in bracesEntity data in curly braces, such as a custom name or the no AI setting.

Details

Permission level2: operators, worlds with cheats on, command blocks and functions
Works inSingleplayer with cheats enabled, multiplayer servers, command blocks and functions. Needs permission level 2 (gamemasters): operators, players in a world with cheats enabled, command blocks and functions.
ResultReports "Summoned new" followed by the entity's name. The number /execute store saves is 1.
No positionWithout a position the entity appears where the command is run from.
Entity dataExtra data goes in curly braces after the position, for example {CustomName:"Bob",NoAI:1b}. The position must be written before the data.
Random spawn setupWithout data, a mob gets its usual random spawn setup, the same as a naturally spawned one. When data is given, this setup is skipped and the mob has only what the data says plus its defaults.
Peaceful difficultyMobs that are not allowed in Peaceful cannot be summoned in Peaceful: "Monsters cannot be summoned in Peaceful difficulty".
Position limitsThe position must be within 30,000,000 blocks of the center horizontally and between Y -20,000,000 and Y 20,000,000, otherwise the command fails with "Invalid position for summon".
Entities that cannot be summonedPlayers and Fishing Bobbers cannot be summoned and fail with "Can't summon entity of type ...".
Other failures"Unable to summon entity" means the entity could not be created from the data. "Unable to summon entity due to duplicate UUIDs" means the data contains a UUID that an existing entity already uses.
PassengersEntities listed under Passengers in the data are summoned together with the main entity and ride it.

Examples

/summon minecraft:creeper

Summons a Creeper at your position.

/summon minecraft:zombie ~ ~1 ~

Summons a Zombie one block above your position.

/summon minecraft:cow 100 64 -200

Summons a Cow at the coordinates 100, 64, -200.

/summon minecraft:villager ~ ~ ~ {CustomName:"Bob",NoAI:1b}

Summons a Villager named Bob that does not move or act.

/summon minecraft:zombie ~ ~ ~ {CustomName:"Guard",CustomNameVisible:1b,PersistenceRequired:1b}

Summons a Zombie named Guard whose name is always visible and that does not despawn.

/summon minecraft:lightning_bolt ~ ~ ~

Strikes lightning at your position.

Join the creator communityThe people who build the Minecraft Java Edition wiki are on our Discord. Ask questions or suggest pages.Join Discord (opens Discord in a new tab)