fast-use module

fast-use: 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/FastUse.javaJava · 71 lines · 2.2 KB

Allows you to use items at very high speeds.

Settingsmodeitemsblockscooldown
FastUse.javaJava · Minecraft 26.2 · 71 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.settings.*;
9
import meteordevelopment.meteorclient.systems.modules.Categories;
10
import meteordevelopment.meteorclient.systems.modules.Module;
11
import net.minecraft.world.item.BlockItem;
12
import net.minecraft.world.item.Item;
13
import net.minecraft.world.item.ItemStack;
14
15
import java.util.List;
16
17
public class FastUse extends Module {
18
    public enum Mode {
19
        All,
20
        Some
21
    }
22
23
    private final SettingGroup sgGeneral = settings.getDefaultGroup();
24
25
    private final Setting<Mode> mode = sgGeneral.add(new EnumSetting.Builder<Mode>()
26
        .name("mode")
27
        .description("Which items to fast use.")
28
        .defaultValue(Mode.All)
29
        .build()
30
    );
31
32
    private final Setting<List<Item>> items = sgGeneral.add(new ItemListSetting.Builder()
33
        .name("items")
34
        .description("Which items should fast place work on in \"Some\" mode.")
35
        .visible(() -> mode.get() == Mode.Some)
36
        .build()
37
    );
38
39
    private final Setting<Boolean> blocks = sgGeneral.add(new BoolSetting.Builder()
40
        .name("blocks")
41
        .description("Fast-places blocks if the mode is \"Some\" mode.")
42
        .visible(() -> mode.get() == Mode.Some)
43
        .defaultValue(false)
44
        .build()
45
    );
46
47
    private final Setting<Integer> cooldown = sgGeneral.add(new IntSetting.Builder()
48
        .name("cooldown")
49
        .description("Fast-use cooldown in ticks.")
50
        .defaultValue(0)
51
        .min(0)
52
        .sliderMax(4)
53
        .build()
54
    );
55
56
    public FastUse() {
57
        super(Categories.Player, "fast-use", "Allows you to use items at very high speeds.");
58
    }
59
60
    public int getItemUseCooldown(ItemStack itemStack) {
61
        if (mode.get() == Mode.All || shouldWorkSome(itemStack)) {
62
            return cooldown.get();
63
        }
64
        return 4; //default cooldown
65
    }
66
67
    private boolean shouldWorkSome(ItemStack itemStack) {
68
        return (blocks.get() && itemStack.getItem() instanceof BlockItem) || items.get().contains(itemStack.getItem());
69
    }
70
}
71