Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package woosh.mods;
- import org.lwjgl.input.Keyboard;
- import woosh.main.Category;
- public class fly extends Module {
- public static float FlyHackSpeed = 0.1f;
- public fly() {
- super("Fly", Keyboard.KEY_F, Category.PLAYER);
- }
- public void onDiasable(){
- mc.thePlayer.capabilities.isFlying = false;
- super.onDisable();
- }
- public void onUpdate(){
- if(this.isToggled()){
- mc.thePlayer.capabilities.isFlying = true;
- if(mc.gameSettings.keyBindJump.isPressed()){
- mc.thePlayer.motionY += 0.2;
- }
- if(mc.gameSettings.keyBindSneak.isPressed()){
- mc.thePlayer.motionY -= 0.2;
- }
- if(mc.gameSettings.keyBindForward.isPressed()){
- mc.thePlayer.capabilities.setFlySpeed(FlyHackSpeed);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement