Solved Detect if landed arrow is on fire

Discussion in 'Plugin Development' started by torpkev, Dec 14, 2018.

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

    torpkev

    How can I check if an arrow is on fire?

    I'm checking the ProfileHitEvent and removing fired arrows that hit the ground

    Code:
    Arrow a = (Arrow) evt.getEntity();
    a.remove();
    
    But I'd like to be able to check if the arrow is on fire first if someone can tell me what property to look at.

    Thanks
     
  2. Offline

    Zombie_Striker

    @torpkev
    Check the arrow's fire ticks. If it is greater than 0, then the arrow is on fire.
     
  3. Offline

    torpkev

    ohh. that simple.

    Thanks so much
     
Thread Status:
Not open for further replies.

Share This Page