Corosauce / ZombieAwareness

Minecraft Forge Mod - Ehanced AI awareness for vanilla MC mobs
http://coros.us/mods/zombieawareness
47 stars 19 forks source link

[API Feature Request] Cloaking/regional pathfinding "blocking" #5

Closed ReikaKalseki closed 9 months ago

ReikaKalseki commented 8 years ago

ChromatiCraft has a (late-game) cloaking tower that disables mob-to-player targeting in its range. One of the things I had in mind when writing it, but apparently does not work, is for the long-range sight capabilities in Zombie Awareness to also be nullified if the would-be target is in that range.

The simplest way to implement this is probably a custom Forge event, ZombiePathFindEvent, which has data on the target location (world,x,y,z), the EntityZombie (or derivative thereof), and what type of detection (light, blood, etc), and then, if the event is cancelled, not pathfind.