We are currently performing an upgrade to our software. This upgrade will bring MediaWiki from version 1.31 to 1.33. While the upgrade is being performed on your wiki it will be in read-only mode. For more information check here.

Commands/summon

From Minecraft Wiki
Jump to: navigation, search

Summons an entity (mobs, projectiles, items, vehicles, etc.).

Syntax
  • Java Edition
summon <entity_name> [<pos>] [<nbt>]
  • Bedrock Edition
summon <entityType: EntityType> [spawnPos: x y z] [spawnEvent: string] [nameTag: string]

OR

summon <entityType: EntityType> <nameTag: string> [spawnPos: x y z]
Arguments
entity_name (BE: entityType: EntityType)
Specifies the entity to be summoned. Must be an entity id (for example, bat, horse, wither_skull, experience_orb, tnt, lightning_bolt, etc.)
pos (BE: spawnPos: x y z) (optional)
Specifies the position to summon the entity. x and z must be between -30,000,000 to 30,000,000 (inclusive), and y must be at least 0. May use tilde and caret notation to specify a position relative to the command's execution. If not specified, defaults to the position of the command's execution.
nbt (optional)‌[Java Edition only]
Specifies the data tag for the entity. Must be a compound NBT tag (for example, {NoGravity:1b}). Lightning has no additional data tags that can be specified.
spawnEvent (optional)‌[Bedrock Edition only]
Specifies the in-game event for the entity (event name for entities in behavior pack). Only one spawn event can be applied per summoned entity.
nameTag (optional)‌[Bedrock Edition only]
Specifies the name of the entity.
Result
Fails if the arguments are not specified correctly.
On success, creates the specified entity at the specified position.
Examples
To summon lightning 10 blocks west of the current position:
summon lightning_bolt ~-10 ~ ~
Java Edition:
To summon a Charged Creeper at the current position named "Powered Creeper":
summon creeper ~ ~ ~ {powered:1b,CustomName:'"Powered Creeper"'}
NOTE: CustomName is a JSON text component
To summon a Spider Jockey:
summon spider ~ ~ ~ {Passengers:[{id:"minecraft:skeleton",HandItems:[{id:"minecraft:bow",Count:1b}]}]}
Bedrock Edition:
To summon a charged creeper at the current position named "Powered Creeper":
summon creeper ~ ~ ~ minecraft:become_charged "Powered Creeper"
To summon a Dolphin with the name "Dolphin" in a golden color:
summon dolphin "§6Dolphin" ~ ~ ~



Notes
The only limitation of the /summon command in the game is that it does not have the capacity to summon multiple entities concurrently.

History[edit]

Java Edition
1.7.213w36aAdded /summon.
1.814w30a/summon can now spawn lightning
Pocket Edition Alpha
0.16.0build 1Added /summon.