fast-climb module

fast-climb: 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/FastClimb.javaJava · 88 lines · 3.0 KB

Allows you to climb faster.

Settingstimer-modeclimb-speedtimer
FastClimb.javaJava · Minecraft 26.2 · 88 lines · 3.0 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.world.TickEvent;
9
import meteordevelopment.meteorclient.mixin.LivingEntityAccessor;
10
import meteordevelopment.meteorclient.settings.BoolSetting;
11
import meteordevelopment.meteorclient.settings.DoubleSetting;
12
import meteordevelopment.meteorclient.settings.Setting;
13
import meteordevelopment.meteorclient.settings.SettingGroup;
14
import meteordevelopment.meteorclient.systems.modules.Categories;
15
import meteordevelopment.meteorclient.systems.modules.Module;
16
import meteordevelopment.meteorclient.systems.modules.Modules;
17
import meteordevelopment.meteorclient.systems.modules.world.Timer;
18
import meteordevelopment.orbit.EventHandler;
19
import net.minecraft.world.level.block.Blocks;
20
import net.minecraft.world.level.block.PowderSnowBlock;
21
import net.minecraft.world.phys.Vec3;
22
23
public class FastClimb extends Module {
24
    private final SettingGroup sgGeneral = settings.getDefaultGroup();
25
26
    private final Setting<Boolean> timerMode = sgGeneral.add(new BoolSetting.Builder()
27
        .name("timer-mode")
28
        .description("Use timer.")
29
        .defaultValue(false)
30
        .build()
31
    );
32
33
    private final Setting<Double> speed = sgGeneral.add(new DoubleSetting.Builder()
34
        .name("climb-speed")
35
        .description("Your climb speed.")
36
        .defaultValue(0.2872)
37
        .min(0.0)
38
        .visible(() -> !timerMode.get())
39
        .build()
40
    );
41
42
    private final Setting<Double> timer = sgGeneral.add(new DoubleSetting.Builder()
43
        .name("timer")
44
        .description("The timer value for Timer.")
45
        .defaultValue(1.436)
46
        .min(1)
47
        .sliderMin(1)
48
        .visible(timerMode::get)
49
        .build()
50
    );
51
52
    private boolean resetTimer;
53
54
    public FastClimb() {
55
        super(Categories.Movement, "fast-climb", "Allows you to climb faster.");
56
    }
57
58
    @Override
59
    public void onActivate() {
60
        resetTimer = false;
61
    }
62
63
    @EventHandler
64
    private void onPreTick(TickEvent.Pre event) {
65
        if (timerMode.get()) {
66
            if (climbing()) {
67
                resetTimer = false;
68
                Modules.get().get(Timer.class).setOverride(timer.get());
69
            } else if (!resetTimer) {
70
                Modules.get().get(Timer.class).setOverride(Timer.OFF);
71
                resetTimer = true;
72
            }
73
        }
74
    }
75
76
    @EventHandler
77
    private void onTick(TickEvent.Post event) {
78
        if (!timerMode.get() && climbing()) {
79
            Vec3 velocity = mc.player.getDeltaMovement();
80
            mc.player.setDeltaMovement(velocity.x, speed.get(), velocity.z);
81
        }
82
    }
83
84
    private boolean climbing() {
85
        return (mc.player.horizontalCollision || ((LivingEntityAccessor) mc.player).meteor$isJumping()) && (mc.player.onClimbable() || mc.player.getInBlockState().is(Blocks.POWDER_SNOW) && PowderSnowBlock.canEntityWalkOnPowderSnow(mc.player));
86
    }
87
}
88