Predicate for aggroed Zoglin
Hello,
Been struggling with this for a few hours and decided it was time to ask for help. I've been trying to use Misode's predicate generator.
I'm trying to use a predicate to detect if a Zoglin is hunting anything. It doesn't matter what its hunting from a rabbit, to a player, to a zombie. I just want to detect any time its hunting anything.
At first, since zoglins sprints, I tried detecting its change of speed.
{ "condition": "entity_properties", "entity": "this", "predicate": { "type": "minecraft:zoglin", "movement": { "speed": { "max": 500, "min": 0.1 } } } }
This didn't work and would never count as true no matter how low I made the min speed. So it wasn't even detecting its base speed.
{ "condition": "minecraft:entity_properties", "entity": "this", "predicate": { "type": "minecraft:zoglin", "targeted_entity": { "type": "minecraft:villager"
}} }
Then I tried detecting when it was agroed onto things, in the above example I was trying to detect if it was aggroed on some poor villagers I was testing with.
I am sure I have some simple issue or concept I am missing and would love someone to point me in the right direction.