Check if a sword is swinging.

Discussion in 'Plugin Development' started by Twisted_Panda, Jun 21, 2015.

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

    Twisted_Panda

    Tried PlayerInteractEvent but it only works if its not attacking an entity, and i'm trying to make it when it is is there any other event or something or is this not possible?
     
  2. Offline

    SuperSniper

    EntityDamageByEntityEvent
    Check if entity instanceof Player
    check if player's item in hand is sword,
    do stuff

    Also, EntityDamageEvent,
    check if damager instanceof Player
    check if player's item in hand is sword,
    do stuff

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 12, 2016
  3. Offline

    Twisted_Panda

    Well thanks I guess, already knew this just checking if their was another way haha
     
Thread Status:
Not open for further replies.

Share This Page