#how to make mob start an event when get hurt by tnt or get burn?
1 messages · Page 1 of 1 (latest)
Use a damage sensor. Specifically, you'll want to test for the damage types fire and either block_explosion or entity_explosion (not sure which one, probably entity though).
Docs on damage_sensor component are here: https://learn.microsoft.com/en-us/minecraft/creator/reference/content/entityreference/examples/entitycomponents/minecraftcomponent_damage_sensor?view=minecraft-bedrock-stable
List of damage types is here: https://learn.microsoft.com/en-us/minecraft/creator/commands/commands/damage?view=minecraft-bedrock-stable#enums
Is it possible to run an event when entity health = 1