/summon Command
Summons an entity at the specified position (or the executor's position if omitted). An optional SNBT compound tag can set initial NBT data on the spawned entity.
Syntax
summon <entity_type> [<pos>] [<nbt>]Permission: 2 (gamemaster / cheats enabled)Edition: Both
Examples
/summon minecraft:zombie ~ ~ ~/summon minecraft:creeper 100 64 -200 {powered:1b}/summon minecraft:armor_stand ~ ~1 ~ {Invisible:1b,ArmorItems:[{},{},{},{id:"minecraft:diamond_helmet",Count:1b}]}/summon minecraft:lightning_bolt ~ ~ ~Notes
NBT compound tag is Java Edition only. In Bedrock Edition the third argument is spawn event, not raw NBT. The entity type must be a valid namespaced ID (e.g. minecraft:zombie); in Java Edition the minecraft: prefix may be omitted.