Help with fireworksSpark particle colors

Discussion in 'Plugin Development' started by MusicalCreeper01, Nov 13, 2014.

Thread Status:
Not open for further replies.
  1. Hey guys,

    Is it possible to change the color of a fireworksSpark particle through packets?

    Currently my code is:

    1. public void createMultiColorFireworks (Player player) {
    2. Location loc = player.getLocation();
    3. PacketPlayOutWorldParticles packet = new PacketPlayOutWorldParticles("fireworksSpark", (float) loc.getX(), (float) loc.getY(), (float) (loc.getZ()+1), 0, 0, 0, 0, 20);
    5. for(Player online : Bukkit.getOnlinePlayers()) {
    6. ((CraftPlayer)online).getHandle().playerConnection.sendPacket(packet);
    7. }
    8. }

    I'm trying to create a particle effect for a server, where there are different colored particles around the player for one of the effects. I had been doing a lot of searching (Google, and through code), and I can't seem to find an answer.

  2. Offline


    It isn't possible. However, you can do this using the minecraft coder pack when coding a client though :p
  3. Okay, that's too bad :/

    Thanks for your help :)
    Skionz likes this.
  4. Offline


    Of course Skionz knows because he is coding a client >.<
    Ok, and sorry I'm spamming your inbox skionz :p
    Skionz likes this.
  5. What Skionz means is that you can't do it using the Bukkit API, but that you can do it when coding a client with MCP.
    ChipDev likes this.
  6. Offline


    Exactly, I don't know why you can't look at the source of MC.. Fields? No..
Thread Status:
Not open for further replies.

Share This Page