/summon generator

The /summon command creates an entity in the world. The Minecraft Wiki syntax is summon <entity> [<position>] [<NBT>], in that order. The position can be absolute (coordinates), relative to the player (~) or in the direction of the gaze (^).

This tool accepts only the entities in the verified list, with or without the minecraft: prefix. The position must use one of the three formats, without mixing them. If there is NBT, it must be a JSON object; the tool writes it in compact form.

The game's NBT is written in SNBT, which accepts keys without quotation marks. Here, for safety, we use JSON, which is a valid subset of SNBT.

Tool

Position (x, y, z), optional

Choose an entity to generate the command.

How to use

  1. Choose the entity from the list.
  2. Choose the position format (absolute, relative ~ or with ^) and fill in the three coordinates. Leave everything empty to use the position of whoever runs the command.
  3. If you want, type the NBT as a JSON object, such as {} or {"NoAI": true}.
  4. Copy the generated /summon command.

Frequently asked questions

What are ~ and ^?

According to the wiki, ~ is the position relative to the player (for example ~-10 is 10 blocks to the west), and ^ is the direction of the gaze (^ ^ ^5 is 5 blocks ahead).

Do I need to write minecraft: before the ID?

No. The wiki says the game accepts the ID with or without the prefix. The tool uses the form without the prefix.

Why does the NBT have to be JSON?

To validate the text before generating the command. Quoted keys are valid in SNBT, and that is the format the tool writes.

Why is the entity list short?

Only IDs confirmed on the wiki's data values page and in the command examples are included. Other entities can be added when they are verified.

Sources