Advertisement
Guest User

Fakka

a guest
Dec 9th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.77 KB | None | 0 0
  1. package woosh.mods;
  2.  
  3. import org.lwjgl.input.Keyboard;
  4.  
  5. import woosh.main.Category;
  6.  
  7. public class fly extends Module {
  8.    
  9.     public static float FlyHackSpeed = 0.1f;
  10.    
  11.     public fly() {
  12.         super("Fly", Keyboard.KEY_F, Category.PLAYER);
  13.     }
  14.    
  15.     public void onDiasable(){
  16.         mc.thePlayer.capabilities.isFlying = false;
  17.         super.onDisable();
  18.     }
  19.    
  20.     public void onUpdate(){
  21.         if(this.isToggled()){
  22.             mc.thePlayer.capabilities.isFlying = true;
  23.            
  24.            
  25.             if(mc.gameSettings.keyBindJump.isPressed()){
  26.                 mc.thePlayer.motionY += 0.2;
  27.             }
  28.            
  29.             if(mc.gameSettings.keyBindSneak.isPressed()){
  30.                 mc.thePlayer.motionY -= 0.2;
  31.             }
  32.            
  33.             if(mc.gameSettings.keyBindForward.isPressed()){
  34.                 mc.thePlayer.capabilities.setFlySpeed(FlyHackSpeed);
  35.             }
  36.            
  37.            
  38.            
  39.         }
  40.     }
  41.    
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement