NoCommentExploit module

NoCommentExploit: 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/NoCommentExploit.javaJava · 168 lines · 5.9 KB

Awesome coord exploit that fucked 2b2t.

SettingsopenGuiDelayLoopPerTickLoadGui
NoCommentExploit.javaJava · Minecraft 26.2 · 168 lines · 5.9 KB · complete file, verbatimOriginal ↗
1
package thunder.hack.features.modules.misc;
2
3
import meteordevelopment.orbit.EventHandler;
4
import net.minecraft.ChatFormatting;
5
import net.minecraft.core.BlockPos;
6
import net.minecraft.core.Direction;
7
import net.minecraft.network.protocol.game.ClientboundBlockUpdatePacket;
8
import net.minecraft.network.protocol.game.ServerboundPlayerActionPacket;
9
import net.minecraft.world.level.chunk.ChunkAccess;
10
import thunder.hack.core.Managers;
11
import thunder.hack.features.cmd.Command;
12
import thunder.hack.events.impl.PacketEvent;
13
import thunder.hack.gui.misc.GuiScanner;
14
import thunder.hack.features.modules.Module;
15
import thunder.hack.features.modules.render.StorageEsp;
16
import thunder.hack.gui.notification.Notification;
17
import thunder.hack.setting.Setting;
18
import thunder.hack.setting.impl.Bind;
19
import thunder.hack.utility.Timer;
20
21
import java.util.ArrayList;
22
import java.util.List;
23
24
import static thunder.hack.features.modules.client.ClientSettings.isRu;
25
26
import com.mojang.blaze3d.platform.InputConstants;
27
28
public class NoCommentExploit extends Module {
29
    public NoCommentExploit() {
30
        super("NoCommentExploit", Category.MISC);
31
    }
32
33
    private final Setting<Bind> self = new Setting<>("openGui", new Bind(-1, false, false));
34
    public Setting<Integer> delay = new Setting<>("Delay", 250, 0, 1000);
35
    public Setting<Integer> loop = new Setting<>("LoopPerTick", 1, 1, 10);
36
    public Setting<Boolean> loadgui = new Setting<>("LoadGui", false);
37
38
    private static int count, reRunStartX, reRunStartY, currentX, currentZ;
39
    public static List<Dot> dots = new ArrayList<>();
40
    private static BlockPos playerPos = null;
41
    private GuiScanner gui = new GuiScanner();
42
    private Timer delayTimer = new Timer();
43
    public static int scannedChunks = 0;
44
    public int couti = 1;
45
46
    public void rerun(int x, int y) {
47
        dots.clear();
48
        playerPos = null;
49
        count = 0;
50
        delayTimer.reset();
51
        reRunStartX = x;
52
        reRunStartY = y;
53
    }
54
55
    @Override
56
    public void onUpdate() {
57
        if (InputConstants.isKeyDown(mc.getWindow(), self.getValue().getKey())) mc.gui.setScreen(gui);
58
        if (GuiScanner.neartrack && scannedChunks > 25) scannedChunks = 0;
59
        if (GuiScanner.neartrack && scannedChunks == 0) doNocom((int) mc.player.getX(), (int) mc.player.getZ());
60
61
        if (GuiScanner.neartrack) return;
62
63
        if (loadgui.getValue()) {
64
            mc.gui.setScreen(gui);
65
            loadgui.setValue(false);
66
        }
67
68
        if (!GuiScanner.busy) doNocom((int) mc.player.getX(), (int) mc.player.getZ());
69
        else {
70
            if (reRunStartX != 0 && reRunStartY != 0) {
71
                doNocom(reRunStartX, reRunStartY);
72
            }
73
        }
74
    }
75
76
    public void doNocom(int x3, int y3) {
77
        playerPos = BlockPos.containing(mc.player.getX(), mc.player.getY() - 1, mc.player.getZ());
78
79
        if (delayTimer.passedMs(delay.getValue())) {
80
            for (int i = 0; i < loop.getValue(); i++) {
81
82
                int x1 = getSpiralCoords(count)[0] * 128 + x3;
83
                int z1 = getSpiralCoords(count)[1] * 128 + y3;
84
85
                final BlockPos position = new BlockPos(x1, 0, z1);
86
                currentX = x1;
87
                currentZ = z1;
88
                sendPacket(new ServerboundPlayerActionPacket(ServerboundPlayerActionPacket.Action.ABORT_DESTROY_BLOCK, playerPos, Direction.EAST));
89
                sendPacket(new ServerboundPlayerActionPacket(ServerboundPlayerActionPacket.Action.ABORT_DESTROY_BLOCK, position, Direction.EAST));
90
91
                dots.add(new Dot(x1 / 16, z1 / 16, DotType.Searched));
92
                playerPos = BlockPos.containing(mc.player.getX(), mc.player.getY() - 1, mc.player.getZ());
93
                delayTimer.reset();
94
                count++;
95
                ++scannedChunks;
96
            }
97
        }
98
    }
99
100
    @EventHandler
101
    public final void onPacketReceive(PacketEvent.Receive event) {
102
        if (event.getPacket() instanceof ClientboundBlockUpdatePacket packet) {
103
            final int x = packet.getPos().getX();
104
            final int z = packet.getPos().getZ();
105
            for (ChunkAccess chunk : StorageEsp.getLoadedChunks())
106
                if (chunk.getPos().x() == x / 16 || chunk.getPos().z() == z / 16) return;
107
            String shittytext = (isRu() ? "Обнаружен игрок на X: " : "Player spotted at X: ") + ChatFormatting.GREEN + x + ChatFormatting.RESET + " Z: " + ChatFormatting.GREEN + z;
108
            dots.add(new Dot(x / 16, z / 16, DotType.Spotted));
109
            Command.sendMessage(shittytext);
110
            gui.consoleout.add(new Cout(couti, shittytext));
111
            ++couti;
112
            if (GuiScanner.track) {
113
                gui.consoleout.add(new Cout(couti, (isRu() ? "Отслеживаем игроков на X: " : "Tracking players on X: ") + x + " Z: " + z));
114
                ++couti;
115
                rerun(x, z);
116
            }
117
            Managers.NOTIFICATION.publicity("NoCommentExploit", shittytext, 3, Notification.Type.INFO);
118
        }
119
    }
120
121
    private int[] getSpiralCoords(int n) {
122
        int x = 0;
123
        int z = 0;
124
        int d = 1;
125
        int lineNumber = 1;
126
        int[] coords = {0, 0};
127
        for (int i = 0; i < n; i++) {
128
            if (2 * x * d < lineNumber) {
129
                x += d;
130
                coords = new int[]{x, z};
131
            } else if (2 * z * d < lineNumber) {
132
                z += d;
133
                coords = new int[]{x, z};
134
            } else {
135
                d *= -1;
136
                lineNumber++;
137
                n++;
138
            }
139
        }
140
        return coords;
141
    }
142
143
    @Override
144
    public void onEnable() {
145
        playerPos = null;
146
        count = 0;
147
    }
148
149
    @Override
150
    public void onDisable() {
151
        dots.clear();
152
        playerPos = null;
153
        count = 0;
154
    }
155
156
    @Override
157
    public String getDisplayInfo() {
158
        return currentX + " , " + currentZ;
159
    }
160
161
    public enum DotType {
162
        Spotted, Searched
163
    }
164
165
    public record Cout(int posY, String out) {}
166
    public record Dot(int posX, int posY, DotType type) {}
167
}
168