Falling particle effect

Discussion in 'Plugin Development' started by bobacadodl, Dec 27, 2013.

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

    bobacadodl

    Hey, I was just wondering what the particle effect is when a player falls on the ground?

    [​IMG]
     
  2. Offline

    CaptainWalrus

    Code:
    p.getWorld().playEffect(p.getLocation(), Effect.STEP_SOUND, 3);
    you can also use 2 or whatever number, It's just the number of the block that you see.

    OR

    you probably have a location, let's call it loc
    so that will be

    Code:
    loc.getWorld().PlayEffect(loc, Effect.STEP_SOUND, 3);
    OR
    Best way to force it, you can setFallDistance, and cancel the damage event.

    EDIT:
    (Didn't define player)
    Player p ^^
    Meh, you get the point ;)
     
  3. Offline

    bobacadodl

    CaptainWalrus
    Oh, didn't know that that was just the step sound effect :p
    Its just playing it multple times in a circle
     
Thread Status:
Not open for further replies.

Share This Page