/summon
Spawns an entity at a specified location, optionally with NBT data to customize the entity.
Syntax
/summon <entity> [<pos>] [<nbt>]Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| entity | resource | Required | The entity type to summon (e.g., zombie, armor_stand, item). |
| pos | vec3 | Optional | The coordinates to spawn the entity at. Defaults to the executor's position. |
| nbt | nbt_compound | Optional | NBT data to apply to the entity upon spawning. |
Examples
/summon minecraft:zombie ~ ~ ~Spawns a zombie at your location.
/summon minecraft:armor_stand ~ ~ ~ {Invisible:1b,NoGravity:1b,CustomName:'{"text":"Marker"}',CustomNameVisible:1b}Spawns an invisible, floating armor stand with a visible custom name.
/summon minecraft:villager ~ ~ ~ {VillagerData:{profession:"weaponsmith",level:5,type:"plains"}}Summons a max-level weaponsmith plains villager.
Common Mistakes
- Summoning entities in unloaded chunks, the entity immediately despawns if the chunk is not loaded.
- Invalid NBT syntax, forgetting quotes around string values or using wrong NBT type suffixes (b, s, f, d, L).
Notes
The entity ID must be namespaced (minecraft:zombie) or unnamespaced (zombie). Complex NBT data can configure nearly every aspect of the summoned entity.
Related Commands
Need a Minecraft server?
Try these commands on Astroworld or host your own server.
Try Astroworld Hosting