Snowball hitting a player

Discussion in 'Plugin Development' started by xXKieXx, Aug 25, 2015.

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

    xXKieXx

    Hi all.
    I am trying to create an event where when a player is hit with a snowball, they loose 5 hearts(or 10 health). I used to know these pretty basic things about 1 or 2 years ago but things are changing and I would like an updated version. Thank you for anybody that can help me solve my problem!

    YZX
     
  2. Offline

    OhhPickles

    EntityDamageByEntity check if entity is instanceof Snowball set the damage amount.
     
    Gonmarte likes this.
  3. Offline

    Boomer

    Other than the health method changing from an int to a double, or double to a float or float to an int or whatever happend back a couple years ago and broke health-level methods in plugins (requiring a simple recasting change) nothing has changed since eons ago to snowballs or entities that would be different now from then.
     
  4. Offline

    boomboompower

    Will try make one.
     
  5. Offline

    xXKieXx

    Ok, thank you for your reply but that isn't really my concern. Even if I did remember I would needed help.
    Thanks
     
  6. Offline

    Boomer

    "but things are changing and I would like an updated version."

    implied to me that you already had something
     
  7. Offline

    au2001

    @xXKieXx
    Have you tested that? If so, did it work? If it didn't work, why?
     
  8. Offline

    OhhPickles

    Actually yes I did test, and it works perfectly fine...Test it yourself
     
  9. Offline

    au2001

    @OhhPickles I was asking @xXKieXx to look at your post because it seems like the good answer.
     
  10. Offline

    OhhPickles

    Ah...My apologies
     
Thread Status:
Not open for further replies.

Share This Page