Spawn Mobs and Entities at Any Location
The /summon command lets you instantly spawn any entity into your Minecraft world. If you do not specify a location, the entity appears right where you are standing.
Players and mapmakers use this command in creative mode or with command blocks to test builds, set up custom adventures, or create entities with special NBT data like disabled AI.
/summon <entity>/summon <entity> <pos> [<nbt>]/summon <entity>/summon <entity> <pos> [<nbt>]| Argument | Type | What it means |
|---|---|---|
<entity> | registry entry entity type | The registry entry for the entity type you want to spawn. |
<pos> | position | The x, y, and z coordinates where the entity will appear, supporting decimals as well as ~ and ^ notation. |
<nbt> | NBT compound | Optional NBT compound data inside curly braces, such as {NoAI:1b}, used to customize the entity. |
/summon pigSpawns a regular pig at your exact location.
/summon cow ~ ~2 ~Spawns a cow two blocks directly above your current position using relative coordinates.
/summon zombie ^ ^ ^5Spawns a zombie five blocks in front of the direction you are currently looking.
/summon lightning_bolt 120 64 -45Strikes a specific world coordinate with a bolt of lightning.
/summon villager 10.5 70.0 10.5 {NoAI:1b}Spawns a villager centered on a block at exact decimal coordinates that cannot move or look around.
/summon creeper ~3 ~ ~ {NoAI:1b}Spawns a frozen creeper three blocks away on the X axis that will not chase you.
Measured from the game files of every Java release from 1.13 to 26.3.
Bedrock Edition also has the /summon command, but it uses a different syntax: /summon <entityType: EntityType> [spawnPos: x y z] [yRot: rotation] [xRot: rotation] [spawnEvent: EntityEvents] [nameTag: string]. Instead of Java's NBT compound in curly braces, Bedrock lets you set rotation, spawn events, and a name tag as separate arguments.
You need permission level 2, which means you must be an operator on a multiplayer server or have cheats turned on in single-player.
Include a position and then add the {NoAI:1b} NBT tag at the end of your command to disable the entity's artificial intelligence.
This command and its current syntax have been available in Java Edition since at least version 1.13 through version 26.3.
/advancement/attribute/damage/defaultgamemode/effect/experience/gamemode/kill/ride/rotate/spawnpoint/spectate/spreadplayers/swing/teleport/tp