Plugin Help PacketPlayOutWorldParticles Colouring

Discussion in 'Plugin Help/Development/Requests' started by Wispyy, Oct 18, 2016.

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

    Wispyy

    Hi, this is my first post, so I hope it's decently written (I've googled around and found stuff but with unclear directions, and because I'm a beginner I didn't understand much (Decided not to use Libraries)), and if you need anymore information let me know =P

    I've been developing a particle plugin but I have hit a road bump. I've been experimenting with packets and I've found that using:
    Code:
    PacketPlayOutWorldParticles packet = new PacketPlayOutWorldParticles(EnumParticle.REDSTONE, true, (float) (loc.getX() + x), (float) (loc.getY() + y), (float) (loc.getZ() + z), 0, 0, 0, 0, 12);
    ((CraftPlayer) player).getHandle().playerConnection.sendPacket(packet); 
    Gives me the standard redstone effect, but after adding a number more than 0 in the second to last number of the packet, it becomes a multi-coloured particle effect-not just the red. Is there any way I can control what colour I get?

    Thanks.
     
  2. Offline

    I Al Istannen

    @Wispyy
    Have a look at Darkblade's library, here.

    Or look here at the minecraft wiki.
     
  3. Offline

    Wispyy

    @I Al Istannen I didn't really understand much, but thanks anyway. ;P Hopefully with more digging it will point me in a better sense of direction. :D
     
  4. Offline

    I Al Istannen

    @Wispyy
    Maybe this helps? I think it is a better explanation.
     
  5. Offline

    Wispyy

Thread Status:
Not open for further replies.

Share This Page