request: display potion/particle effects
israelcurtis opened this issue ยท 6 comments
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....
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"
I thought "effect" was already a valid result parameter... can't you already do stuff like "effect: STEP_SOUND"?
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.
Ah, tried again with a mob and definitely get the redstone effect now, try this:
ANY_CREATURE:
- action: HIT
effect: STEP_SOUND@REDSTONE_WIRE