Hi!, I am trying to work with the API to create a boss, I tried adding the WanderGoal via code but it doesn't work, the npc doesn't move it just looks around.
here is my code (This is on a trait class)
@Override
public void onPreSpawn() {
System.out.println("onPreSpawn " + npc.getFullName());
final WanderGoal wanderGoal = WanderGoal.createWithNPC(npc);
npc.getDefaultGoalController().clear();
npc.getDefaultGoalController().addGoal(wanderGoal, 1);
}
I tried creating it via commands ingame and running /wp provider wander and it didn't work as well.
My citizens version is v2.0.29-SNAPSHOT (build 2420)
My spigot version is 1.12.2
Anyone had that problem too?