Use the minecraft:on_target_acquired component. Here is the documentation on it (including examples): https://learn.microsoft.com/en-us/minecraft/creator/reference/content/entityreference/examples/entitytriggers/minecrafttrigger_on_target_acquired?view=minecraft-bedrock-stable
#how to execute an event when the entity detects a target
1 messages · Page 1 of 1 (latest)
thanks
Do you know why he doesn't do the animation of getting up when he's going to attack?
Not really, I haven't used that component myself. I just know it exists and mobs like endermen use it
ohhh