no-mining-trace module

no-mining-trace: 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/NoMiningTrace.javaJava · 48 lines · 1.8 KB

Allows you to mine blocks through entities.

Settingsblacklisted-entitiesonly-when-holding-a-pickaxe
NoMiningTrace.javaJava · Minecraft 26.2 · 48 lines · 1.8 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.BoolSetting;
9
import meteordevelopment.meteorclient.settings.EntityTypeListSetting;
10
import meteordevelopment.meteorclient.settings.Setting;
11
import meteordevelopment.meteorclient.settings.SettingGroup;
12
import meteordevelopment.meteorclient.systems.modules.Categories;
13
import meteordevelopment.meteorclient.systems.modules.Module;
14
import net.minecraft.tags.ItemTags;
15
import net.minecraft.world.entity.Entity;
16
import net.minecraft.world.entity.EntityType;
17
18
import java.util.Set;
19
20
public class NoMiningTrace extends Module {
21
    private final SettingGroup sgGeneral = settings.getDefaultGroup();
22
23
    private final Setting<Set<EntityType<?>>> entities = sgGeneral.add(new EntityTypeListSetting.Builder()
24
        .name("blacklisted-entities")
25
        .description("Entities you will interact with as normal.")
26
        .defaultValue()
27
        .build()
28
    );
29
30
    private final Setting<Boolean> onlyWhenHoldingPickaxe = sgGeneral.add(new BoolSetting.Builder()
31
        .name("only-when-holding-a-pickaxe")
32
        .description("Whether or not to work only when holding a pickaxe.")
33
        .defaultValue(true)
34
        .build()
35
    );
36
37
    public NoMiningTrace() {
38
        super(Categories.Player, "no-mining-trace", "Allows you to mine blocks through entities.");
39
    }
40
41
    public boolean canWork(Entity entity) {
42
        if (!isActive()) return false;
43
44
        return (!onlyWhenHoldingPickaxe.get() || mc.player.getMainHandItem().is(ItemTags.PICKAXES) || mc.player.getOffhandItem().is(ItemTags.PICKAXES)) &&
45
            (entity == null || !entities.get().contains(entity.getType()));
46
    }
47
}
48