Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 1.19 KB

File metadata and controls

47 lines (35 loc) · 1.19 KB
author ms.author title description ms.service
iconicNurdle
mikeam
Entity Documentation - minecraft:on_death
A reference document detailing the 'on_death' entity trigger
minecraft-bedrock-edition

Entity Documentation - minecraft:on_death

minecraft:on_death adds a trigger to call on this entity's death.

Important

minecraft:on_death can only be used by the ender_dragon entity.

Parameters

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.

Example

"minecraft:on_death":{
    "event": "minecraft:custom_death_event",
    "filters": "is_daytime",
    "target": "self",
}

Vanilla entities examples

ender_dragon

"minecraft:on_death": {
        "event": "minecraft:start_death",
        "target": "self"
      }

Vanilla entities using minecraft:on_death