Allowing damage with wooden sword and cancelling other damage

Discussion in 'Plugin Development' started by br456, May 3, 2014.

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

    br456

    I need to cancel all damage for the player except for when they are hit with a wooden sword. How would I do this?
     
  2. Offline

    kennethbgoodin

    Listen on an event that monitors entity damage, check if the damager's item in hand is of type wooden sword; if not, cancel the event.
     
Thread Status:
Not open for further replies.

Share This Page