Table of Contents

minecraft:spawn_entity

The minecraft:spawn_entity action spawns an entity at the specified position. This action is successful if the entity was spawned.

Fields

Name Description Type Default Value
position The position to target. An action context parameter
entity The entity to spawn. An entity initializer

Example

{
  "type": "minecraft:spawn_entity",
  "position": "target",
  "entity": {
    "type": "minecraft:tnt"
  }
}