Animal Agression

Discussion in 'Plugin Development' started by jordanzilla02, Dec 30, 2013.

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

    jordanzilla02

    I am currently working on a plugin that will make boars spawn(custom mobs a of pig), and wondering how I would make the boar aggressive and try to attack the player. And how would I randomly spawn these. Thank you.
     
  2. Offline

    xTrollxDudex

    jordanzilla02
    Ironically, the expert in this has almost the same avatar as you.

    I suggest adding a few pathfinders to your custom entity, let me find some.

    Edit:
    PathFinderGoalNearestAttackableTarget
    PathFinderGoalMeleeAttack
    PathFinderGoalHurtByTarget

    (Source: EntityCreeper.java)
     
Thread Status:
Not open for further replies.

Share This Page