minecraft:spawn_on_death

Component for spawning entities when an entity perishes.

Properties

PropertyTypeDefaultWhat it does
entity_to_spawnText"self"What entity to spawn, defaults to owning entity when not set
spawn_methodText"spawned"Spawn method. born, spawned, or summoned, defaults to spawned when not set
spawn_amountInteger1How many entities to spawn, defaults to 1 when not set
inherit_parent_nameBooleantrueIf true, the entity will inherit the name of the parent entity, defaults to true when not set
additional_spawn_rangeObject{"max": 0, "min": 0}Additional random range of entities to spawn, defaults to 0, 0 when not set
minInteger0
maxInteger0
filtersObject or List of object{"AND": null, "NOT": null, "OR": null, "all": null, "all_…Conditions that need to be met for the behavior to start.
testText—The name of the test to apply.
subjectBoolean or Integer or Decimal or Text—The subject of this filter test.
operatorBoolean or Integer or Decimal or Text—The comparison to apply with 'value'.
domainBoolean or Integer or Decimal or Text—The domain the test should be performed in.
valueBoolean 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.

Related components