Commands/summon

From Minecraft Wiki
Jump to: navigation, search
summon
Restrictions

Operator

First introduced

Java Edition 1.7.2 (13w36a)
PE Alpha 0.16.0 (PE Alpha 0.16.0 build 1)

Summons an entity.

Syntax[edit]

  • 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[edit]

<entity> (BE: entityType: EntityType)

Specifies the entity to be summoned. Must be an entity id.

<pos> (BE: spawnPos: x y z)

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.

<nbt>[Java Edition only]

Specifies the data tag for the entity. Must be a compound NBT tag (for example, {NoGravity:1b}).

spawnEvent: string[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: string[Bedrock Edition only]

Specifies the name of the entity.

Result[edit]

Fails if the arguments are not specified correctly.

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

Examples[edit]

  • 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 raid captain pillager at the current position:
      • summon pillager ~ ~ ~ minecraft:spawn_as_illager_captain
    • 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" ~ ~ ~

History[edit]

This section is a stub, meaning that it lacks some important information. You can help by expanding it with further information relating to the topic.
Java Edition
1.7.213w36aAdded /summon.
1.814w30a/summon can now spawn lightning.
1.1620w11a /summon now gives permission to summon Fireball.
Pocket Edition Alpha
0.16.0build 1Added /summon.