watch 28:07
Minecraft Interactive Experience
Do you like this video?
Play Sound
Summons an entity.
Syntax[]
- Java Edition
summon <entity> [<pos>] [<nbt>]
- Bedrock Edition
summon <entityType: EntityType> [spawnPos: x y z] [spawnEvent: string] [nameTag: string]
summon <entityType: EntityType> <nameTag: string> [spawnPos: x y z]
Arguments[]
JE: <entity>
: entity_summon
BE: entityType: EntityType
: enum
- Specifies the entity to be summoned.
- Must be an ID of a summonable entity type.
JE: <pos>
: vec3
BE: spawnPos: x y z
: CommandPositionFloat
- Specifies the position to summon the entity. If not specified, defaults to the position of the command's execution.
- Must be a three-dimensional coordinates with floating-point number elements. Accepts tilde and caret notations.
JE: <nbt>
: nbt_compound_tag
BE: spawnEvent: string
: basic_string
- Specifies the in-game event for the entity. Should be a spawn event (event name for entities in behavior pack).
- Must be either a single word (no spaces) or a quoted string.
BE: nameTag: string
: basic_string
- Specifies the name of the entity.
- Must be either a single word (no spaces) or a quoted string.
Result[]
Command | Trigger | Java Edition | Bedrock Edition |
---|---|---|---|
any | the arguments are not specified correctly | Unparseable | Unparseable |
specified position is unloaded | Failed | Failed | |
trying to summon hostiles in peaceful difficulty. | Successful | ||
attempting to summon an entity with a duplicate UUID. | Failed | N/A | |
designated position's <x> or <z> exceeds the range of [-30000000, 30000000), or <y> exceeds the range of [-20000000, 20000000) | Successful | ||
On success | Creates the specified entity at the specified position. |
Output[]
Command | Edition | Situation | Success Count | /execute store success ... | /execute store result ... |
---|---|---|---|---|---|
any | Java Edition | On fail | 0 | 0 | 0 |
On success | 1 | 1 | 1 | ||
Bedrock Edition | On fail | 0 | N/A | N/A | |
On success | 1 | N/A | N/A |
Examples[]
- To summon lightning 10 blocks west of the current position of the executing player:
summon lightning_bolt ~-10 ~ ~
- Java Edition:
- To summon a charged creeper at the current position named "Powered Creeper":
summon creeper ~ ~ ~ {powered:1b,CustomName:'{"text":"Powered Creeper"}'}
- NOTE: CustomName is a raw JSON text.
- To summon a spider jockey:
summon spider ~ ~ ~ {Passengers:[{id:"minecraft:skeleton",HandItems:[{id:"minecraft:bow",Count:1b}]}]}
- To summon a villager that trades 1 dirt block in exchange for 1 diamond:
summon villager ~ ~ ~ {Offers:{Recipes:[{buy:{id:dirt,Count:1},sell:{id:diamond,Count:1},rewardExp:false}]}}
- To summon a charged creeper at the current position named "Powered Creeper":
- Bedrock Edition:
History[]
This section needs expansion.
You can help by expanding it.
Java Edition | |||||
---|---|---|---|---|---|
1.7.2 | 13w36a | Added /summon . | |||
1.8 | 14w30a | /summon can now spawn lightning. | |||
1.16 | 20w11a | /summon now gives permission to summon Fireball. | |||
Pocket Edition Alpha | |||||
v0.16.0 | build 1 | Added /summon . |