Limit Zombie pathfinding range OR check whether target is reachable?

Discussion in 'Plugin Development' started by xNaXDy, Sep 15, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    xNaXDy

    Well, the title pretty much says it all.

    What I'm looking for is a method to either find out whether a target (entity/location) of a zombie is reachable (like if the zombie can actually reach that location) or limit the zombie pathfinding range as such.

    The reason why I need to know that is explained here:

    I am trying to create a server with lots of zombies and this bug isn't really helping me with that.

    Thank you!
     
  2. Offline

    xNaXDy

    The question is: Where exactly "is" that class? I can not find a suitable get-method inside the zombie class.
     
  3. Offline

    Cirno

    It's NMS code; things you are told to never touch unless you want to go above and beyond Bukkit.
    You'll have to use Reflection to get a foothold onto this, and then even more reflection to set these fields. Worst comes to worse, you might have to create your own PathfinderGoal and add that in manually.
     
  4. Offline

    xNaXDy

    I see... Thank you for telling me that, I'll try to get my hands dirty now :p
     
Thread Status:
Not open for further replies.

Share This Page