author | ms.author | title | description | ms.service |
---|---|---|---|---|
iconicNurdle |
mikeam |
Entity Documentation - minecraft:on_hurt |
A reference document detailing the 'on_hurt' entity trigger |
minecraft-bedrock-edition |
minecraft:on_hurt
adds a trigger to call when this entity takes damage.
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. |
"minecraft:on_hurt": {
"priority": 2,
"cast_duration": 2.5,
"look_at_target": true,
"sequence": [
{
"base_delay": 1.25,
"event": "wololo",
"sound_event": "prepare.wololo"
}
]
}
"minecraft:on_hurt": {
"event": "minecraft:on_hurt_event",
"target": "self"
}