Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Adds a trigger to call when this entity takes damage.
On Hurt Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| event | not set | String | The event to run when the conditions for this trigger are met. | Blaze: "minecraft:on_hurt_event", Ender Crystal: "minecraft:crystal_explode" |
| filters | not set | Minecraft filter | The list of conditions for this trigger to execute. | |
| target | self | String | The target of the event. | Blaze: "self" |
Samples
Blaze
"minecraft:on_hurt": {
"event": "minecraft:on_hurt_event",
"target": "self"
}
Ender Crystal
"minecraft:on_hurt": {
"event": "minecraft:crystal_explode",
"target": "self"
}