Making mob immune to snowballs

Discussion in 'Plugin Development' started by imotionzz, May 30, 2013.

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

    imotionzz

    Hello,

    Ik new into java so maybe its a dumb question :p.
    Is it possible to make a mob like a giant immune to snowballs?
     
  2. Offline

    chasechocolate

    Use EntityDamageByEntityEvent, check if the event.getEntity() is a Giant, check if the event.getDamager() is a Snowball and then cancel the event.
     
Thread Status:
Not open for further replies.

Share This Page