air-jump module

air-jump: Minecraft 26.3 cheat module, full source for every implementation (1 client: Meteor Client).

1 implementationMovement

Clients with this module

Full module source: 1 implementation

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

Meteor ClientMovementsrc/main/java/meteordevelopment/meteorclient/systems/modules/movement/AirJump.javaJava · 64 lines · 2.2 KB

Lets you jump in the air.

Settingsmaintain-level
AirJump.javaJava · Minecraft 26.2 · 64 lines · 2.2 KB · complete file, verbatimOriginal ↗
1
/*
2
 * This file is part of the Meteor Client distribution (https://github.com/MeteorDevelopment/meteor-client).
3
 * Copyright (c) Meteor Development.
4
 */
5
6
package meteordevelopment.meteorclient.systems.modules.movement;
7
8
import meteordevelopment.meteorclient.events.meteor.KeyInputEvent;
9
import meteordevelopment.meteorclient.events.world.TickEvent;
10
import meteordevelopment.meteorclient.settings.BoolSetting;
11
import meteordevelopment.meteorclient.settings.Setting;
12
import meteordevelopment.meteorclient.settings.SettingGroup;
13
import meteordevelopment.meteorclient.systems.modules.Categories;
14
import meteordevelopment.meteorclient.systems.modules.Module;
15
import meteordevelopment.meteorclient.systems.modules.Modules;
16
import meteordevelopment.meteorclient.systems.modules.render.Freecam;
17
import meteordevelopment.meteorclient.utils.misc.input.KeyAction;
18
import meteordevelopment.orbit.EventHandler;
19
20
public class AirJump extends Module {
21
    private final SettingGroup sgGeneral = settings.getDefaultGroup();
22
23
    private final Setting<Boolean> maintainLevel = sgGeneral.add(new BoolSetting.Builder()
24
        .name("maintain-level")
25
        .description("Maintains your current Y level when holding the jump key.")
26
        .defaultValue(false)
27
        .build()
28
    );
29
30
    private int level;
31
32
    public AirJump() {
33
        super(Categories.Movement, "air-jump", "Lets you jump in the air.");
34
    }
35
36
    @Override
37
    public void onActivate() {
38
        level = mc.player.blockPosition().getY();
39
    }
40
41
    @EventHandler
42
    private void onKey(KeyInputEvent event) {
43
        if (Modules.get().isActive(Freecam.class) || mc.gui.screen() != null || mc.player.onGround()) return;
44
45
        if (event.action != KeyAction.Press) return;
46
47
        if (mc.options.keyJump.matches(event.input)) {
48
            level = mc.player.blockPosition().getY();
49
            mc.player.jumpFromGround();
50
        } else if (mc.options.keyShift.matches(event.input)) {
51
            level--;
52
        }
53
    }
54
55
    @EventHandler
56
    private void onTick(TickEvent.Pre event) {
57
        if (Modules.get().isActive(Freecam.class) || mc.player.onGround()) return;
58
59
        if (maintainLevel.get() && mc.player.blockPosition().getY() == level && mc.options.keyJump.isDown()) {
60
            mc.player.jumpFromGround();
61
        }
62
    }
63
}
64