minecraft:spawn_on_death
Component for spawning entities when an entity perishes.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
entity_to_spawn | Text | "self" | What entity to spawn, defaults to owning entity when not set |
spawn_method | Text | "spawned" | Spawn method. born, spawned, or summoned, defaults to spawned when not set |
spawn_amount | Integer | 1 | How many entities to spawn, defaults to 1 when not set |
inherit_parent_name | Boolean | true | If true, the entity will inherit the name of the parent entity, defaults to true when not set |
additional_spawn_range | Object | {"max": 0, "min": 0} | Additional random range of entities to spawn, defaults to 0, 0 when not set |
min | Integer | 0 | |
max | Integer | 0 | |
filters | Object or List of object | {"AND": null, "NOT": null, "OR": null, "all": null, "all_… | Conditions that need to be met for the behavior to start. |
test | Text | — | The name of the test to apply. |
subject | Boolean or Integer or Decimal or Text | — | The subject of this filter test. |
operator | Boolean or Integer or Decimal or Text | — | The comparison to apply with 'value'. |
domain | Boolean or Integer or Decimal or Text | — | The domain the test should be performed in. |
value | Boolean or Integer or Decimal or Text | — | The value being compared with the test. |
Used by
No vanilla entity file in the official samples uses this component. It is still part of the schema, so add-ons can use it.