How can i do that not-hostile creatures attack players?

Discussion in 'Spigot Plugin Development' started by GABBOGA99, Aug 17, 2015.

  1. Example john is a pig.....pig attack me ok?
  2. You can do this with custom pathfinder goals and damaging nearby players to the pig.
    Another option if you want it to shoot projectiles like arrows, just set the pigs direction towards the player and spawn an arrow with a set velocity.

    There are many ways to do this so play around until you find something you like
    • Like Like x 1
  3. Thanks! can you give me a small code example ? For making pigs attacking players?