FastLatency module

FastLatency: 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/FastLatency.javaJava · 43 lines · 1.5 KB

Calculates ping faster than the minecraft method.

SettingsDelay
FastLatency.javaJava · Minecraft 26.2 · 43 lines · 1.5 KB · complete file, verbatimOriginal ↗
1
package thunder.hack.features.modules.client;
2
3
import com.mojang.blaze3d.vertex.PoseStack;
4
import meteordevelopment.orbit.EventHandler;
5
import net.minecraft.network.protocol.game.ClientboundCommandSuggestionsPacket;
6
import net.minecraft.network.protocol.game.ServerboundCommandSuggestionPacket;
7
import org.jetbrains.annotations.NotNull;
8
import thunder.hack.events.impl.PacketEvent;
9
import thunder.hack.features.modules.Module;
10
import thunder.hack.setting.Setting;
11
import thunder.hack.utility.Timer;
12
import thunder.hack.utility.math.MathUtility;
13
14
public final class FastLatency extends Module {
15
    private final Setting<Integer> delay = new Setting<>("Delay", 80, 0, 1000);
16
17
    private final Timer timer = new Timer();
18
    private final Timer limitTimer = new Timer();
19
    private long ping;
20
    public int resolvedPing;
21
22
    public FastLatency() {
23
        super("FastLatency", Category.CLIENT);
24
    }
25
26
    @Override
27
    public void onRender3D(PoseStack stack) {
28
        if (timer.passedMs(5000) && limitTimer.every(delay.getValue())) {
29
            sendPacket(new ServerboundCommandSuggestionPacket(1337, "w "));
30
            ping = System.currentTimeMillis();
31
            timer.reset();
32
        }
33
    }
34
35
    @EventHandler
36
    public void onPacketReceive(PacketEvent.@NotNull Receive e) {
37
        if (e.getPacket() instanceof ClientboundCommandSuggestionsPacket c && c.id() == 1337) {
38
            resolvedPing = (int) MathUtility.clamp(System.currentTimeMillis() - ping, 0, 1000);
39
            timer.setMs(5000);
40
        }
41
    }
42
}
43