Stop mobs from walking in areas with certain conditions

Discussion in 'Plugin Development' started by sniddunc, Feb 12, 2016.

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

    sniddunc

    Hello,

    I want to make it so that monsters cannot walk into areas where there is too much light. How could I check this and stop them from moving into the light? I have no code to show as of now, I need to know whether or not I can do this first.

    Thanks for the help!
     
  2. Offline

    Gerov

    @sniddunc Well, the most elegant way of doing this would be to rewrite the mob pathfinding, but it would probably be the most time consuming as well. I am not qualified to tell you the best ways of going about it, but there are many tutorials and lessons you can find if you research it.
     
  3. Offline

    teej107

    @sniddunc It's possible. It requires NMS and PathFinderGoals. Haven't messed with them so I can't help you any further.
     
Thread Status:
Not open for further replies.

Share This Page