编辑

Entity Documentation - minecraft:on_death

Adds a trigger to call on this entity's death.

On Death Properties

Name Default Value Type Description
event not set String The event to run when the conditions for this trigger are met.
filters not set Minecraft filter The list of conditions for this trigger to execute.
target self String The target of the event.

Samples