[Util] Play Firework Explosions! FireworkEffectPlayer V3.0 [NMS]

Discussion in 'Resources' started by bigteddy98, Mar 11, 2014.

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


    This resource is no longer available.
    gamestdai, ChipDev, OHQCraft and 3 others like this.
  2. Offline


    Looks good! :D will probably be using this in some of my plugins :)
    bigteddy98 likes this.
  3. Offline


    Thanks :)
  4. Offline


    YES !!!!! Finally a good tutorial on firework Thank you so much! ( I didnt like to see the firework rocket with the Bukkit API) I like this tutorial!!!
    bigteddy98 likes this.
  5. Offline


    Thanks my friend :).
    Norbu10 likes this.
  6. Offline


  7. Offline


    glen3b likes this.
  8. Offline


    Quaro This utility also allows you to send the firework explosion only to a specific player which is not possible with the detonate method!
    bigteddy98 likes this.
  9. Offline


    bigteddy98 Nice Util, i guess now we are three making this. Maybe call it FireworkEffectPlayer v2.1, (may have to ask codename_B to allow you, he did with me).

    Eitherway, i improved this but i cant post it as its property of my network. Sowee.
  10. Offline


    Thanks, I will ask codename_B in a minute :).
  11. Offline


  12. Offline


    Shameless Bump So Other People Can See
    bigteddy98 likes this.
  13. Offline


    :) Hi!

    For using this I just have to create a new class containing your code inside my plugin's project, right? Obviously I also have to rename the package and properly use the methods.

    I question this because your utility doesn't work for me. I mean, my code shows no errors but when it runs in-game the firework explosion simply doesn't appear.

    I'm using the current Bukkit's beta (1.7.9-R0.1), does that has to do something with your util?
  14. Offline

    Lolmewn Retired Staff

    Looks awesome.
    bigteddy98 likes this.
  15. Offline


    Looks great! One thing though, for the playToLocation method, use Location#distanceSquared like so:
    1. if (e.getLocation().distanceSquared(loc) <= 60 * 60) {
    2. sendPacket(packet, (Player) e);
    3. }

    That method is more efficient than Location#distance because it doesn't use Math.sqrt(). Good to use Location#distanceSquared considering you're looping through all entities in the world, making that operation run many times.
  16. Offline


    Thanks I thought I already did that but no, thanks for telling me :)
  17. Offline


  18. Offline


    Nice util!
    bigteddy98 likes this.
  19. Offline


    Really good! Going to include to some of my projects.
    bigteddy98 likes this.
  20. Offline


    Thanks guys :)
  21. Offline


    oh em gee. Usin' dis!
    bigteddy98 likes this.
Thread Status:
Not open for further replies.

Share This Page