Slow Down Velocity

Discussion in 'Plugin Development' started by jbman223, Mar 29, 2013.

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

    jbman223

    How would I slow down the players velocity when they are falling? Basically I teleport the player into the air and I would like to make it so that they fall slowly, I don't care about the damage just setting their velocity to slower.
     
  2. Offline

    Tzeentchful

    Lissen for a player move event and find some way of detecting when they are falling then just muitply their velocity by a number like 0.3.

    Code:
    //check if they are falling 
    Player player = event.getPlayer();
    player.setVelocity(player.getVelocity().multiply(0.3));
     
  3. Offline

    LazyLemons

    I've also noticed that setting a super high negative Y velocity can reproduce the "parachute" effect.
     
  4. Offline

    jbman223

Thread Status:
Not open for further replies.

Share This Page