Commands/summon

Summons an entity.
==Syntax==
* Java Edition
: summon <entity> [<pos>] [<nbt>]
* Bedrock Edition
: summon <entityType: EntityType> [spawnPos: x y z] [yRot: value] [xRot: value] [spawnEvent: string] [nameTag: string]
: summon <entityType: EntityType> [spawnPos: x y z] facing <lookAtEntity: target> [spawnEvent: string] [nameTag: string]
: summon <entityType: EntityType> [spawnPos: x y z] facing <lookAtPosition: x y z> [spawnEvent: string] [nameTag: string]
==Arguments==
: Specifies the entity to be summoned.
: 
: Specifies the position to summon the entity. If not specified, defaults to the position of the command's execution.
: 
: 
: Specifies the data tag for the entity.
: 
: and 
: Specifies the rotation of the summoned entity.
: 
: 
: Specifies the entity to make the summoned entity facing to.
: 
: 
: Specifies the coordinates to make the summoned entity facing to.
: 
: 
: Specifies the in-game event for the entity. Should be a spawn event (event name for entities in behavior pack).
: 
: 
: Specifies the name of the entity.
: 
==Result==
== Output ==
==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}]}}
* Bedrock Edition:
** To summon a patrol captain pillager at the current position:
*** summon pillager ~ ~ ~ minecraft:promote_to_patrol_captain
** To summon a dolphin with the name "Dolphin" in a golden color:
*** summon dolphin §6Dolphin ~ ~ ~
** To summon a red dyable wolf:
*** summon wolf ~ ~ ~ minecraft:on_tame
==History==
de:Befehl/summon
es:Comandos/summon
ja:コマンド/summon
pt:Comandos/summon
zh:命令/summon