AirJump module

AirJump: Minecraft 26.3 cheat module, full source for every implementation (3 clients: OfflineClient, Combatant, LiquidBounce (Kotlin)).

3 implementationsMOVEMENT

Full module source: 3 implementations

Every implementation below is the complete module file, verbatim. Expand a client to read its code.

OfflineClientMOVEMENTsrc/main/java/com/jellypudding/offlineclient/modules/movement/AirJump.javaJava · 73 lines · 2.5 KB

Lets you jump again whilst in the air.

SettingsMode
AirJump.javaJava · Minecraft 26.2 · 73 lines · 2.5 KB · complete file, verbatimOriginal ↗
1
package com.jellypudding.offlineclient.modules.movement;
2
3
import com.jellypudding.offlineclient.event.Subscribe;
4
import com.jellypudding.offlineclient.event.events.KeyPressEvent;
5
import com.jellypudding.offlineclient.event.events.TickEvent;
6
import com.jellypudding.offlineclient.module.Category;
7
import com.jellypudding.offlineclient.module.Module;
8
import com.jellypudding.offlineclient.modules.render.Freecam;
9
import com.jellypudding.offlineclient.setting.EnumSetting;
10
import com.jellypudding.offlineclient.util.InputUtil;
11
import com.jellypudding.offlineclient.util.Modules;
12
import org.lwjgl.glfw.GLFW;
13
14
public final class AirJump extends Module {
15
16
    public enum Mode { TAP, HOLD, JETPACK }
17
18
    private final EnumSetting<Mode> mode = new EnumSetting<>("Mode",
19
        "What holding the jump key does once you are off the ground.", Mode.TAP)
20
        .describe(Mode.TAP, "Only a fresh press jumps again.")
21
        .describe(Mode.HOLD, "Holding jump keeps you at the height of your last jump.")
22
        .describe(Mode.JETPACK, "Holding jump climbs for as long as you hold it.");
23
24
    // The block height the last jump started from.
25
    private int level;
26
27
    public AirJump() {
28
        super("AirJump", "Lets you jump again whilst in the air.", Category.MOVEMENT);
29
        addSettings(mode);
30
        searchTags("double jump", "mid air", "jetpack");
31
    }
32
33
    @Override
34
    public String getSuffix() {
35
        return mode.is(Mode.TAP) ? null : mode.getValueString();
36
    }
37
38
    @Override
39
    protected void onEnable() {
40
        if (mc.player != null) {
41
            level = mc.player.blockPosition().getY();
42
        }
43
    }
44
45
    @Subscribe
46
    private void onKeyPress(KeyPressEvent event) {
47
        if (event.getAction() != GLFW.GLFW_PRESS || !airborne()) {
48
            return;
49
        }
50
        if (InputUtil.isKey(mc.options.keyJump, event.getKey())) {
51
            level = mc.player.blockPosition().getY();
52
            mc.player.jumpFromGround();
53
        } else if (InputUtil.isKey(mc.options.keyShift, event.getKey())) {
54
            level--;
55
        }
56
    }
57
58
    @Subscribe
59
    private void onTick(TickEvent event) {
60
        if (mode.is(Mode.TAP) || !airborne() || !mc.options.keyJump.isDown()) {
61
            return;
62
        }
63
        if (mode.is(Mode.JETPACK) || mc.player.blockPosition().getY() == level) {
64
            mc.player.jumpFromGround();
65
        }
66
    }
67
68
    private boolean airborne() {
69
        return inGame() && mc.gui.screen() == null && !mc.player.onGround()
70
            && !Modules.enabled(Freecam.class);
71
    }
72
}
73
CombatantMOVEMENTsrc/main/java/combatant/client/features/module/modules/movement/AirJump.javaJava · 117 lines · 3.7 KB
Settingsmode
AirJump.javaJava · Minecraft 26.2 · 117 lines · 3.7 KB · complete file, verbatimOriginal ↗
1
/*
2
 * This file is part of the Combatant Client distribution.
3
 * Combatant modifications copyright (c) 2026 pivosos2007.
4
 *
5
 * Portions of this file are based on, adapted from, or implemented
6
 * with reference to Meteor Client
7
 * (https://github.com/MeteorDevelopment/meteor-client).
8
 * Copyright (c) Meteor Development.
9
 *
10
 * Licensed under the GNU General Public License v3.0.
11
 * See THIRD_PARTY_NOTICES.md for details.
12
 */
13
14
package combatant.client.features.module.modules.movement;
15
16
import combatant.client.util.screen.ClientScreen;
17
import net.minecraft.client.Minecraft;
18
import net.minecraft.client.player.LocalPlayer;
19
import org.lwjgl.glfw.GLFW;
20
import combatant.client.config.values.EnumValue;
21
import combatant.client.events.EventHandler;
22
import combatant.client.events.impl.GameTickEvent;
23
import combatant.client.events.impl.KeyInputEvent;
24
import combatant.client.features.module.Module;
25
import combatant.client.features.module.ModuleCategory;
26
import combatant.client.features.module.ModuleInfo;
27
import combatant.client.features.module.Modules;
28
import combatant.client.features.module.modules.visuals.Freecam;
29
30
//todo Description
31
@ModuleInfo(
32
        id = "airjump",
33
        displayName = "AirJump",
34
        category = ModuleCategory.MOVEMENT
35
)
36
public class AirJump extends Module {
37
38
    private final EnumValue<Mode> mode =
39
            enumMode("mode", Mode.NORMAL, Mode.values());
40
    private int level;
41
    private boolean maintainLevelReady;
42
43
    @Override
44
    public void onEnable() {
45
        Minecraft mc = Minecraft.getInstance();
46
        if (mc == null || mc.player == null) return;
47
        level = mc.player.blockPosition().getY();
48
        maintainLevelReady = false;
49
    }
50
51
    @EventHandler
52
    private void onKeyInput(KeyInputEvent event) {
53
        Minecraft mc = Minecraft.getInstance();
54
        if (mc == null || mc.player == null || mc.options == null) return;
55
        if (event.getAction() != GLFW.GLFW_PRESS) return;
56
        if (ClientScreen.current() != null || mc.player.onGround() || isFreecamActive()) return;
57
58
        if (mc.options.keyJump.matches(event.getInput())) {
59
            level = mc.player.blockPosition().getY();
60
            maintainLevelReady = false;
61
            jumpVanillaClamped(mc.player);
62
        } else if (mc.options.keyShift.matches(event.getInput())) {
63
            level--;
64
            maintainLevelReady = false;
65
        }
66
    }
67
68
    @EventHandler
69
    private void onGameTick(GameTickEvent event) {
70
        Minecraft mc = Minecraft.getInstance();
71
        if (mc == null || mc.player == null || mc.options == null) return;
72
        if (mc.player.onGround()) {
73
            maintainLevelReady = false;
74
            return;
75
        }
76
        if (isFreecamActive()) return;
77
78
        if (mc.player.getY() > level + 0.2) {
79
            maintainLevelReady = true;
80
        }
81
82
        if (mode.get() == Mode.MAINTAIN_LEVEL
83
                && mc.options.keyJump.isDown()
84
                && maintainLevelReady
85
                && mc.player.getDeltaMovement().y <= 0.0
86
                && mc.player.blockPosition().getY() == level) {
87
            maintainLevelReady = false;
88
            jumpVanillaClamped(mc.player);
89
        }
90
    }
91
92
    private boolean isFreecamActive() {
93
        return Modules.get(Freecam.class) != null && Modules.get(Freecam.class).isEnabled();
94
    }
95
96
    public boolean performNoFallJump() {
97
        Minecraft mc = Minecraft.getInstance();
98
        if (mc == null || mc.player == null || isFreecamActive()) return false;
99
100
        level = mc.player.blockPosition().getY();
101
        maintainLevelReady = false;
102
        jumpVanillaClamped(mc.player);
103
        return true;
104
    }
105
106
    private void jumpVanillaClamped(LocalPlayer player) {
107
        if (player == null) return;
108
109
        player.jumpFromGround();
110
    }
111
112
    public enum Mode {
113
        NORMAL,
114
        MAINTAIN_LEVEL
115
    }
116
}
117
LiquidBounce (Kotlin)MOVEMENTsrc/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/movement/ModuleAirJump.ktKotlin · 66 lines · 2.2 KB

Allows you to jump mid-air.

SettingsMode
ModuleAirJump.ktKotlin · Minecraft 26.2 · 66 lines · 2.2 KB · complete file, verbatimOriginal ↗
1
/*
2
 * This file is part of LiquidBounce (https://github.com/CCBlueX/LiquidBounce)
3
 *
4
 * Copyright (c) 2015 - 2026 CCBlueX
5
 *
6
 * LiquidBounce is free software: you can redistribute it and/or modify
7
 * it under the terms of the GNU General Public License as published by
8
 * the Free Software Foundation, either version 3 of the License, or
9
 * (at your option) any later version.
10
 *
11
 * LiquidBounce is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with LiquidBounce. If not, see <https://www.gnu.org/licenses/>.
18
 */
19
package net.ccbluex.liquidbounce.features.module.modules.movement
20
21
import net.ccbluex.liquidbounce.config.types.list.Tagged
22
import net.ccbluex.liquidbounce.event.events.BlockShapeEvent
23
import net.ccbluex.liquidbounce.event.events.PlayerJumpEvent
24
import net.ccbluex.liquidbounce.event.handler
25
import net.ccbluex.liquidbounce.event.tickHandler
26
import net.ccbluex.liquidbounce.features.module.ClientModule
27
import net.ccbluex.liquidbounce.features.module.ModuleCategories
28
import net.minecraft.world.phys.shapes.Shapes
29
30
object ModuleAirJump : ClientModule("AirJump", ModuleCategories.MOVEMENT) {
31
32
    val mode by enumChoice("Mode", Mode.JUMP_FREELY)
33
34
    private var doubleJump = true
35
36
    val allowJump: Boolean
37
        get() = running && (mode == Mode.JUMP_FREELY || mode == Mode.DOUBLE_JUMP && doubleJump)
38
39
    val repeatable = tickHandler {
40
        if (player.onGround()) {
41
            doubleJump = true
42
        }
43
    }
44
45
    @Suppress("unused")
46
    val jumpEvent = handler<PlayerJumpEvent> {
47
        if (doubleJump && !player.onGround()) {
48
            doubleJump = false
49
        }
50
    }
51
52
    @Suppress("unused")
53
    val handleBlockBox = handler<BlockShapeEvent> { event ->
54
        if (mode == Mode.GHOST_BLOCK && event.pos.y < player.blockPosition().y && mc.options.keyJump.isDown) {
55
            event.shape = Shapes.block()
56
        }
57
    }
58
59
    enum class Mode(override val tag: String) : Tagged {
60
        JUMP_FREELY("JumpFreely"),
61
        DOUBLE_JUMP("DoubleJump"),
62
        GHOST_BLOCK("GhostBlock"),
63
    }
64
65
}
66