Hello, how to make zombie ignorable to players for temporary time? I know EntityTargetEvent, but I can't use events in such situation as I already use NMS, Pathfindergoals, constructos for my custom zombies. Is there some ways to prevent following players, for instance, when zombie is walking back to its location? Thank you guys.
I think that you can decrease the search radius for zombies? If you set it to 0, it should not be able to target anything.
I'm not using events. Yes, but zombie will stop walking at all, consequently, will not walk back to its location.
As I said above, I'm using constructors. I created my own PathfinderGoal which checks distance between spawn and current location and if distance is more than 10 bloks zombie returns back to its spawn loc. So, when zombie walks to spawn location he still can change walking route to the player. I want to disable targeting when zombie returns. How can I do that?