OtherDrops

226k Downloads

request: display potion/particle effects

israelcurtis opened this issue ยท 6 comments

commented

would love to be able to attach the various potion/firework/redstone/enderpearl particle effects to an action. First thing I'd do is spray redstone particles for blood on PvP hits....

commented

found this bit of help:

http://forums.bukkit.org/threads/redstone-particle-effects.119021/

player.getWorld().playEffect(player.getLocation(), Effect.STEP_SOUND, Material.REDSTONE_WIRE);

"The javadocs say that its the step sound, but its actually the sound + the particle effect"

commented

I thought "effect" was already a valid result parameter... can't you already do stuff like "effect: STEP_SOUND"?

commented

There was an issue with effect (I think it was mentioned on the forum) where it was case sensitive, but yes, fixed in the latest beta (2.8b.353).

All effects from this page should work: (http://jd.bukkit.org/rb/apidocs/org/bukkit/Effect.html).

I checked out the redstone wire step sound and didn't see the particle effect though.

commented

Ah, tried again with a mob and definitely get the redstone effect now, try this:

  ANY_CREATURE:
    - action: HIT
      effect: STEP_SOUND@REDSTONE_WIRE
commented

xD works great!!

commented

Cool, closing the issue :)