Backflips

Discussion in 'Plugin Development' started by ItsLeoFTW, Apr 4, 2014.

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

    ItsLeoFTW

    Hi,

    For a minigame I might start working on, I want to make it so if you press space twice, you get flipped over and launched into the air, like a backflip. Is this possible? I've seen plugins like Chairs do something similar by changing the X and Y coordinates of the player, but how would I do a backflip?

    Thanks!
     
  2. Offline

    Funergy

    Its not possible to let a player do a backflip in vanilla Minecraft.
    but you can set their height.
     
  3. Offline

    Arcticmike

    Like this?
    Code:java
    1. @EventHandler
    2. public void onFlyingtoggle(PlayerToggleFlightEvent event){
    3. Player me = event.getPlayer();
    4. me.getVelocity().setY(4);
    5. event.setCancelled(true);
    6. }
     
Thread Status:
Not open for further replies.

Share This Page