Changing potion particle colors

Discussion in 'Spigot Plugin Development' started by TheGamerPlayz, May 30, 2016.

  1. I am trying to make certain players have a Luck potion effect, but with purple particles, I tried this
    Code (Java):
    p.addPotionEffect(new PotionEffect(PotionEffectType.LUCK, Integer.MAX_VALUE, 0, false, true, Color.PURPLE));
    But it is still creating Green particles. Can anyone help?
  2. As far as I remember the particles are client side so you can't change them that easy but instead have to manipulate the packets send to players.
  3. I don't know how to use packets =/. Do you know of a good tutorial on them?
  4. Nope, had a similar problem and simply used different particles as a (not perfect) workaround. I wasn't using potion effects though and just spawned particles so switching the type was less of a problem. I guess Google is your friend^^
  5. Make the PotionEffect show no particles and spawn the particles manually??
    • Agree Agree x 1