[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

    bigteddy98

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

    SoThatsIt

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

    bigteddy98

    Thanks :)
     
  4. Offline

    Norbu10

    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

    bigteddy98

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

    Quaro

  7. Offline

    bigteddy98

    glen3b likes this.
  8. Offline

    DarkBladee12

    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

    DevRosemberg

    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

    bigteddy98

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

    CodeBucket

  12. Offline

    BungeeTheCookie

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

    spartandvx

    :) 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

    Looks awesome.
     
    bigteddy98 likes this.
  15. Offline

    Vexil

    Looks great! One thing though, for the playToLocation method, use Location#distanceSquared like so:
    Code:java
    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

    bigteddy98

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

    MvpWouterske23

  18. Offline

    Bammerbom

    Nice util!
     
    bigteddy98 likes this.
  19. Offline

    Gater12

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

    bigteddy98

    Thanks guys :)
     
  21. Offline

    ChipDev

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

Share This Page