Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.thewoosh.checkmybuffers.modules.movement;
- import net.minecraft.block.material.Material;
- import net.thewoosh.checkmybuffers.modules.Category;
- import net.thewoosh.checkmybuffers.modules.Module;
- public class Glide extends Module {
- public Glide(int hotkey) {
- super("Glide", hotkey, Category.MOVEMENT);
- }
- @Override
- public void onUpdate() {
- double oldY = mc.thePlayer.motionY;
- float oldJ = mc.thePlayer.jumpMovementFactor;
- if (this.isEnabled()) {
- if ((mc.thePlayer.motionY < 0.0d) && (mc.thePlayer.isAirBorne) && (!mc.thePlayer.isInWater())
- && (!mc.thePlayer.isOnLadder())) {
- if (!mc.thePlayer.isInsideOfMaterial(Material.lava)) {
- mc.thePlayer.motionY = -.125d;
- mc.thePlayer.jumpMovementFactor *= 1.12337f;
- }
- }
- } else {
- mc.thePlayer.motionY = oldY;
- mc.thePlayer.jumpMovementFactor = oldJ;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement