Freezing a Spawned Mob or All Villagers...

Discussion in 'Plugin Development' started by Primescore, Mar 2, 2013.

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

    Primescore

    Is there any way to freeze a mob that has spawned, and only that mob, if not is there a way to freeze all villagers in the map?
    Freeze: Prevent them from moving.
     
    GrandmaJam likes this.
  2. I don't think you can do that without using NMS stuff. Also you can't get him to move afterwards easily either. The monster has a field call goalSelector which is a PathfinderGoalSelector which directs all the movement actions. What I have done in my library is that I clear all the goals the entity has in that goalSelector. Later, when he should move again, re-apply all the goals he had. I have a small part left here if you want to take a look.
     
  3. Offline

    Primescore

    Thanks, but I don't need him to move afterwards. He needs to stay in 1 spot until he dies.
     
    GrandmaJam likes this.
Thread Status:
Not open for further replies.

Share This Page