break-delay module

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

1 implementationPlayer

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 ClientPlayersrc/main/java/meteordevelopment/meteorclient/systems/modules/player/BreakDelay.javaJava · 65 lines · 2.2 KB

Changes the delay between breaking blocks.

Settingscooldownno-insta-break
BreakDelay.javaJava · Minecraft 26.2 · 65 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.player;
7
8
import meteordevelopment.meteorclient.events.entity.player.BlockBreakingCooldownEvent;
9
import meteordevelopment.meteorclient.events.meteor.MouseClickEvent;
10
import meteordevelopment.meteorclient.settings.BoolSetting;
11
import meteordevelopment.meteorclient.settings.IntSetting;
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.utils.misc.input.KeyAction;
17
import meteordevelopment.orbit.EventHandler;
18
19
public class BreakDelay extends Module {
20
    SettingGroup sgGeneral = settings.getDefaultGroup();
21
22
    private final Setting<Integer> cooldown = sgGeneral.add(new IntSetting.Builder()
23
        .name("cooldown")
24
        .description("Block break cooldown in ticks.")
25
        .defaultValue(0)
26
        .min(0)
27
        .sliderMax(5)
28
        .build()
29
    );
30
31
    private final Setting<Boolean> noInstaBreak = sgGeneral.add(new BoolSetting.Builder()
32
        .name("no-insta-break")
33
        .description("Prevents you from misbreaking blocks if you can instantly break them.")
34
        .defaultValue(false)
35
        .build()
36
    );
37
38
    private boolean breakBlockCooldown = false;
39
40
    public BreakDelay() {
41
        super(Categories.Player, "break-delay", "Changes the delay between breaking blocks.");
42
    }
43
44
    @EventHandler
45
    private void onBlockBreakingCooldown(BlockBreakingCooldownEvent event) {
46
        if (breakBlockCooldown) {
47
            event.cooldown = 5;
48
            breakBlockCooldown = false;
49
        } else {
50
            event.cooldown = cooldown.get();
51
        }
52
    }
53
54
    @EventHandler
55
    private void onClick(MouseClickEvent event) {
56
        if (event.action == KeyAction.Press && noInstaBreak.get()) {
57
            breakBlockCooldown = true;
58
        }
59
    }
60
61
    public boolean preventInstaBreak() {
62
        return isActive() && noInstaBreak.get();
63
    }
64
}
65