Flaming Arrow

Discussion in 'Plugin Development' started by Mortal_Wombat, Aug 3, 2014.

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

    Mortal_Wombat

    Hey Guys!

    I was tinkering around with some coding. And found out that with simply

    player.launchProjectile(Arrow.class);

    I could launch an arrow with an event :O. w0t crazy i know! :p

    So whenever i click a stick on my server it shoots an arrow from it.
    And i got to wondering. How could i shoot a flaming arrow? So i thought i would ask you fine people :D. So please help its not Urgent but it would make my day lol!

    So

    Lots of Love <3

    and thanks in advance!

    ~Mortal
     
  2. Offline

    _LB

    Take the returned entity and set it on fire?
     
  3. Offline

    97WaterPolo

    Mortal_Wombat
    I believe you can modify the arrow with

    Arrow a = player.launchProjectile(Arrow.class);
    a.setFireTicks(40);



    Something along those lines, no IDE though. I personally love doing a.setVelocity(a.getVelocity().multiply(5)); pretty sexy IMO
     
  4. Offline

    Mortal_Wombat

    haha thanks i will try out both ;) thanks!
     
  5. Offline

    _LB

    Both? They're the same suggestion ;)
     
  6. Offline

    Mortal_Wombat

    97WaterPolo WOW the velocity it really cool! Thanks :D

    LB, velocity and Fire :p

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
Thread Status:
Not open for further replies.

Share This Page