minecraft:spawn_entity

Dynamic value

Properties

This component has no properties in the official schema: add it as an empty object {} to switch the behaviour on.

Example from the game files

This is how vanilla Ocelot uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:spawn_entity": {
    "entities": {
      "filters": [
        {
          "test": "random_chance",
          "value": 7
        }
      ],
      "min_wait_time": 0,
      "max_wait_time": 0,
      "num_to_spawn": 2,
      "single_use": true,
      "spawn_entity": "minecraft:ocelot",
      "spawn_event": "minecraft:entity_born",
      "spawn_method": "born",
      "spawn_sound": ""
    }
  }
}

Used by 7

Vanilla entities with minecraft:spawn_entity in their definition:

Related components