Zarius / Bukkit-OtherBlocks

OtherBlocks (now known as OtherDrops) plugin for Bukkit (dev build: https://www.mediafire.com/?i6ows1g6kus2o0l)
http://dev.bukkit.org/server-mods/otherdrops/
GNU General Public License v3.0
17 stars 17 forks source link

request: display potion/particle effects #182

Closed israelcurtis closed 11 years ago

israelcurtis commented 11 years ago

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....

israelcurtis commented 11 years ago

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"

CelticMinstrel commented 11 years ago

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

Zarius commented 11 years ago

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.

Zarius commented 11 years ago

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

  ANY_CREATURE:
    - action: HIT
      effect: STEP_SOUND@REDSTONE_WIRE
israelcurtis commented 11 years ago

xD works great!!

Zarius commented 11 years ago

Cool, closing the issue :)