Commands/summon

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


 * Syntax


 * Java Edition


 * Bedrock Edition


 * Arguments


 * EntityName (BE: entityType: EntityType)
 * Specifies the entity to be summoned. Must be an entity id (for example,,  ,  ,  ,  , etc.) or.


 * x y z (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.


 * dataTag (optional)
 * Specifies the data tag for the entity. Must be a compound NBT tag (for example, ). Lightning has no additional data tags that can be specified.


 * spawnEvent (optional)
 * Specifies the in-game event for the entity (event name for entities in behavior pack).


 * Result


 * Fails if the arguments are not specified correctly.


 * On success, creates the specified entity at the specified position.


 * Examples


 * To summon a charged creeper named "Powered Creeper" at the current position:
 * NOTE: CustomName is a JSON text component
 * NOTE: CustomName is a JSON text component


 * To summon lightning 10 blocks west of the current position:


 * To summon an armor stand wielding a lava bucket and wearing a skeleton skull:


 * To summon a Spider Jockey


 * To summon a Raid captain


 * To summon a Charged Creeper


 * Notes


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