Commands/summon

Summons an entity.

Syntax

 * Java Edition


 * Bedrock Edition

Arguments
(BE: )
 * Specifies the entity to be summoned. Must be an entity id.

(BE: )
 * Specifies the position to summon the entity. 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.


 * Specifies the data tag for the entity. Must be a compound NBT tag (for example, ).


 * 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.


 * Specifies the name of the entity.

Result
Fails if the arguments are not specified correctly.

On success, creates the specified entity at the specified positiow            我旁边那人是煞笔

Examples

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


 * Java Edition:
 * To summon a Charged Creeper at the current position named "Powered Creeper":
 * NOTE: CustomName is a JSON text component
 * To summon a Spider Jockey:
 * Bedrock Edition:
 * To summon a charged creeper at the current position named "Powered Creeper":
 * To summon a raid captain pillager at the current position:
 * To summon a patrol captain pillager at the current position:
 * To summon a Dolphin with the name "Dolphin" in a golden color:
 * To summon a raid captain pillager at the current position:
 * To summon a patrol captain pillager at the current position:
 * To summon a Dolphin with the name "Dolphin" in a golden color:
 * To summon a Dolphin with the name "Dolphin" in a golden color:
 * To summon a Dolphin with the name "Dolphin" in a golden color:

History
Befehl/summon 命令/summon