Spawning a single Splash Potion particle.

Discussion in 'Plugin Development' started by OHQCraft, May 17, 2014.

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

    OHQCraft

    How can I spawn one or is this not possible?
     
  2. Offline

    Azubuso

    OHQCraft I'm guessing org.bukkit.Effect.POTION_BREAK is the effect you're looking for.
     
  3. Offline

    OHQCraft

    W
    Wouldn't that just spawn in loads?
     
  4. Offline

    Azubuso

    OHQCraft Doing (I think this was the right method?)
    Code:java
    1. World.playEffect(Location location, Effect.POTION_BREAK, int someIntegerValue, int radiusAsInt);
    2. // someIntegerValue is the data value, only some effects need this if i remember right

    Would play one instance of the "POTION_BREAK" effect, not sure if you can directly play ONE Particle of the effect...
     
  5. Offline

    Bammerbom

  6. You can do something similar though. You can spawn a Block Dust particle and set the data value to maybe a block that has the same colour as the particle effect of a splash potion OR maybe even having a splash potion ID would work.
     
  7. Offline

    Code0

    ParticleEffectLib is something for you.
     
Thread Status:
Not open for further replies.

Share This Page