Making mobs hostile

Discussion in 'Plugin Development' started by smcerm, Jan 13, 2013.

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

    smcerm

    Hi,

    Is it possible to turn passive mobs into neutral/hostile ones? Suppose I spawn a chicken and would like for it to attack a player - are there any properties of the chicken that I can alter to make it hostile?

    Thank you.
     
  2. Offline

    LaxWasHere

    .setAngry on entity spawn. iirc
     
  3. Offline

    smcerm

    I don't think passive mobs (chickens, cows, pigs, etc.) have setAngry().
     
  4. Offline

    smcerm

    I'm sorry about bumping this, but I still need help. I've tried using unconventional methods, like making a silverfish ride the passive mob, but they don't work reliably.
     
  5. Offline

    Ne0nx3r0

    I'm trying to do the same thing without much luck. Hrmp.
     
  6. Offline

    SoThatsIt

    I suppose you could create a new mob that extends the craft mob and then edit its behaviour but that a lot of work and often does not work after updates.
     
Thread Status:
Not open for further replies.

Share This Page