TapeMouse module

TapeMouse: Minecraft 26.3 cheat module, full source for every implementation (1 client: MelaHack (ThunderHack fork)).

1 implementationMISC

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.

MelaHack (ThunderHack fork)MISCsrc/main/java/thunder/hack/features/modules/misc/TapeMouse.javaJava · 48 lines · 2.3 KB

Autoclicker.

SettingsDelayRandomizeValueModeLegit
TapeMouse.javaJava · Minecraft 26.2 · 48 lines · 2.3 KB · complete file, verbatimOriginal ↗
1
package thunder.hack.features.modules.misc;
2
3
import net.minecraft.world.InteractionHand;
4
import net.minecraft.world.phys.BlockHitResult;
5
import net.minecraft.world.phys.EntityHitResult;
6
import net.minecraft.world.phys.HitResult;
7
import thunder.hack.features.modules.Module;
8
import thunder.hack.injection.accesors.IMinecraftClient;
9
import thunder.hack.setting.Setting;
10
import thunder.hack.setting.impl.BooleanSettingGroup;
11
import thunder.hack.utility.Timer;
12
import thunder.hack.utility.math.MathUtility;
13
14
public class TapeMouse extends Module {
15
    public TapeMouse() {
16
        super("TapeMouse", Category.MISC);
17
    }
18
19
    private final Setting<Integer> delay = new Setting<>("Delay", 600, 0, 10000);
20
    private final Setting<BooleanSettingGroup> randomize = new Setting<>("Randomize", new BooleanSettingGroup(false));
21
    private final Setting<Integer> randomizeValue = new Setting<>("Value", 600, 0, 10000).addToGroup(randomize);
22
    private final Setting<Mode> mode = new Setting<>("Mode", Mode.Left);
23
    private final Setting<Boolean> legit = new Setting<>("Legit", false, v -> mode.getValue() == Mode.Left);
24
25
    private final Timer timer = new Timer();
26
27
    private enum Mode {Right, Left}
28
29
    @Override
30
    public void onUpdate() {
31
        if (timer.every((long) (delay.getValue() + (randomize.getValue().isEnabled() ? MathUtility.random(0, randomizeValue.getValue()) : 0))))
32
            if (mode.getValue() == Mode.Left) {
33
                if (!legit.getValue()) {
34
                    HitResult hr = mc.hitResult;
35
                    if (hr != null) {
36
                        if (hr instanceof EntityHitResult ehr && ehr.getEntity() != null) {
37
                            mc.gameMode.attack(mc.player, ehr.getEntity());
38
                            mc.player.swing(InteractionHand.MAIN_HAND);
39
                        } else if (hr instanceof BlockHitResult bhr && bhr.getBlockPos() != null && bhr.getDirection() != null && !mc.level.isEmptyBlock(bhr.getBlockPos())) {
40
                            mc.gameMode.startDestroyBlock(bhr.getBlockPos(), bhr.getDirection());
41
                            mc.player.swing(InteractionHand.MAIN_HAND);
42
                        }
43
                    }
44
                } else ((IMinecraftClient) mc).idoAttack();
45
            } else ((IMinecraftClient) mc).idoItemUse();
46
    }
47
}
48