Spawning Colored Firework Particles

Discussion in 'Plugin Development' started by bobthefish, Jan 24, 2015.

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

    bobthefish

    The title says most of it, but I would like to know how I can create 1 colored firework particle, not the whole burst.

    I have looked all around, and seen that there isnt a surefire way to do this, but does anybody know of any way at all to do this?
     
  2. Offline

    Funergy

    @bobthefish Packets
    Example to spawn particles:
    Code:
    ((CraftPlayer) p).getHandle().playerConnection.sendPacket(new PacketPlayOutWorldParticles("reddust", (float) loc.getX(), (float) loc.getY(), (float) loc.getZ(), offsetX, offsetY, offsetZ, speed, amount)
    
     
  3. Offline

    bobthefish

    Yes I was aware I was going to need packets, my question was more along the lines of "how can I change the color, and only spawn 1" :p But thank you for replying (The speed attribute does not affect color of firework particles)
     
  4. Offline

    Permeer

  5. Offline

    Skionz

    @bobthefish You can't change the color of fireworks spark particles.
     
  6. Offline

    ReadySetPawn

    Isn't it possible to use reddust instead?
     
  7. Offline

    Skionz

    Yeah, just not fireworks.
     
Thread Status:
Not open for further replies.

Share This Page