Changing a mobs behavior

Discussion in 'Plugin Development' started by boardinggamer, Dec 7, 2012.

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


    I am working on a nazi zombies type of plugin and I didn't think about actually getting the zombies to do what I want them to. How would I go about making a zombie target the players in the game and go to the windows.

    The windows will be defined and saved as a string "world,x,y,z" which I can later get as a location. so what I want to do is get a zombie to go to the closest window and stay there then when the window is broken they will go inside and go after the players.

    all the zombies or dogs that are spawned for the game get saved in a HashMap so I can access them when needed.
  2. Offline


  3. Offline


  4. Offline


    Ah yes, Nazi Zombies plugins. A ton of fun to write, until you get to developing the AI.
    Try this to get your zombies to go to your windows:
    ((CraftLivingEntity) entity).getHandle().getNavigation().a(this.getNavigation().a(x, y, z), speed);
Thread Status:
Not open for further replies.

Share This Page