Problem with colors and library ParticleEffect

Discussion in 'Plugin Development' started by 4thegame3, Nov 1, 2015.

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

    4thegame3

    Hello, I'm trying to colour some firework particles but it does not work...
    Code:
     ParticleEffect.FIREWORKS_SPARK.display(null,proj.getLocation(),0.5F,0.5F,0.5F,Color.FUCHSIA,0.1F,100);
    Why?
     
  2. Offline

    Scimiguy

    Use the methods under World#playParticleEffect() instead
     
  3. Offline

    4thegame3

    There aren't all effects with that method.
    And i need to send only one particle at time in certain situations.
     
  4. Offline

    Scimiguy

    Sigh.. so I spent 15 seconds looking at the docs for World.
    There's a method World#PlayEffect(Location, Effect, Float, Float)
    What's wrong with that?
    It even supports your firework sparks
     
  5. Offline

    holy137

    I do not think you can color the firework particle.

    Code:
                ParticleEffect2.FIREWORKS_SPARK.display(0, 0, 0, /*speed*/0, 10, p.getLocation(), 100);
    If you see the /*speed*/ i mean the fourth zero. with that you can set your particle speed/color.
    And you can only set the color of reddust notes and mobspells. only with the fourth zero [speed int].
    By setting it to 1 or 3 of 5.
     
  6. Offline

    4thegame3

    Ho do I colour them?
     
  7. Offline

    Scimiguy

  8. Offline

    holy137

    @4thegame3 I'm gonna tell you this again.
    You cant color firework sparks.
    The only way to color a particle is by highering speed int.
    Example:

    ParticleEffect.REDSTONE.display(0, 0, 0, "3", 1, p.getLocation, 100);

    If you see that "3" thats the way to color only 3 particles
    If you put 3 in a different particle [what cant color].
    it will explode i think.
    the particles called: MusicNotes, Redestone[Dust], MobSpells can color i think.
     
  9. Offline

    ChipDev

    FireworksSpark are pretty glitchy when it comes to colors, and I think mods are the only way to change them. I made a thread on this already! Redstone dust, and cloud effects are the only ones which can be changed.
    EDIT: Here's the link to my thread.
     
Thread Status:
Not open for further replies.

Share This Page