Spawn particle effects

Discussion in 'Plugin Development' started by RPFeltz, Aug 18, 2011.

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

    RPFeltz

    Is there any way to spawn particle effects?
    Like at an explosion, but without the sound and the actual explosion?
     
  2. Offline

    Bdl2

    Admittedly my knowledge of Bukkit's inner workings is very limited, but I do not believe you can call an explosion effect without the sound. You can however call a small smoke effect, which is blown by wind in a direction.
     
  3. Offline

    RPFeltz

    Smoke effect should be fine for what I'm trying to do.
    How do I invoke it?
     
  4. Offline

    Bdl2

    I honestly have no clue. Like I said, I'm not too savvy with Bukkit - I just know the effect exists and can be used.
     
  5. Offline

    Ziden

    You can create blockbreaks, witch does that block break particle effects.
     
  6. Offline

    Shamebot

    There are to kinds of smoke, the effect smoke without sound and the explosion smoke with sound.
    It's something like
    Code:
    world.playEffect(location,Effect.SMOKE,data);
     
  7. Offline

    RPFeltz

    Works. Data is direction (31 is no direction) and you can supply an additional int value at the end for the render range.
    The effect location seems to be limited block areas though. Hope I can fix that...

    EDIT:
    Making the effect location move fast and over huge areas causes it to look nice enough.
     
    fromgate likes this.
  8. Offline

    fromgate

    Yes it really works.
    But what purpose of the "data" parameter? What does it affect?
     
  9. Offline

    ArcheCane

    fromgate likes this.
Thread Status:
Not open for further replies.

Share This Page