AntiServerRP module

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

1 implementationCLIENT

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)CLIENTsrc/main/java/thunder/hack/features/modules/client/AntiServerRP.javaJava · 46 lines · 1.5 KB

Disables server's resourcepack.

AntiServerRP.javaJava · Minecraft 26.2 · 46 lines · 1.5 KB · complete file, verbatimOriginal ↗
1
package thunder.hack.features.modules.client;
2
3
import meteordevelopment.orbit.EventHandler;
4
import net.minecraft.network.protocol.common.ClientboundResourcePackPushPacket;
5
import net.minecraft.network.protocol.common.ServerboundResourcePackPacket;
6
import org.jetbrains.annotations.NotNull;
7
import thunder.hack.events.impl.PacketEvent;
8
import thunder.hack.features.modules.Module;
9
import thunder.hack.utility.math.MathUtility;
10
11
public final class AntiServerRP extends Module {
12
    public AntiServerRP() {
13
        super("AntiServerRP", Category.CLIENT);
14
    }
15
16
    private boolean confirm, accepted;
17
    private int delay;
18
19
    @EventHandler
20
    public void onPacketReceive(PacketEvent.@NotNull Receive e) {
21
        if (e.getPacket() instanceof ClientboundResourcePackPushPacket) {
22
            confirm = true;
23
            accepted = false;
24
            delay = 0;
25
            e.cancel();
26
        }
27
    }
28
29
    @Override
30
    public void onUpdate() {
31
        if(confirm) {
32
            delay++;
33
34
            if(delay > MathUtility.random(15, 30) && !accepted) {
35
                sendPacket(new ServerboundResourcePackPacket(mc.player.getUUID(), ServerboundResourcePackPacket.Action.ACCEPTED));
36
                accepted = true;
37
            }
38
39
            if(delay > MathUtility.random(40, 60) && accepted) {
40
                sendPacket(new ServerboundResourcePackPacket(mc.player.getUUID(), ServerboundResourcePackPacket.Action.SUCCESSFULLY_LOADED));
41
                confirm = false;
42
            }
43
        }
44
    }
45
}
46