ChorusExploit module

ChorusExploit: 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/ChorusExploit.javaJava · 93 lines · 3.3 KB

Delays teleport from chorus.

SettingsConfirmColor
ChorusExploit.javaJava · Minecraft 26.2 · 93 lines · 3.3 KB · complete file, verbatimOriginal ↗
1
package thunder.hack.features.modules.misc;
2
3
import meteordevelopment.orbit.EventHandler;
4
import net.minecraft.network.protocol.game.ClientboundPlayerPositionPacket;
5
import net.minecraft.network.protocol.game.ServerboundMovePlayerPacket;
6
import net.minecraft.world.item.Items;
7
import net.minecraft.world.phys.AABB;
8
import net.minecraft.world.phys.Vec3;
9
import org.jetbrains.annotations.NotNull;
10
import org.lwjgl.glfw.GLFW;
11
import thunder.hack.events.impl.EventSync;
12
import thunder.hack.events.impl.PacketEvent;
13
import thunder.hack.features.modules.Module;
14
import thunder.hack.setting.Setting;
15
import thunder.hack.setting.impl.Bind;
16
import thunder.hack.setting.impl.ColorSetting;
17
import thunder.hack.utility.render.Render3DEngine;
18
import com.mojang.blaze3d.vertex.PoseStack;
19
import java.awt.*;
20
21
public class ChorusExploit extends Module {
22
    public ChorusExploit() {
23
        super("ChorusExploit", Category.MISC);
24
    }
25
26
    private final Setting<Bind> confirm = new Setting<>("Confirm", new Bind(GLFW.GLFW_KEY_LEFT_SHIFT, false, false));
27
    private final Setting<ColorSetting> color = new Setting<>("Color", new ColorSetting(new Color(0xFFFFFF)));
28
29
    Vec3 choruspos = null;
30
    ClientboundPlayerPositionPacket chorusPacket = null;
31
    boolean isEatingChorus = false;
32
    int chorusTicks = 0;
33
34
    @Override
35
    public void onDisable() {
36
        if (chorusPacket != null) {
37
            chorusPacket.handle(mc.player.connection);
38
            reset();
39
        }
40
    }
41
42
    private void reset() {
43
        chorusPacket = null;
44
        choruspos = null;
45
    }
46
47
    public void onRender3D(PoseStack stack) {
48
        if (choruspos != null)
49
            Render3DEngine.OUTLINE_QUEUE.add(new Render3DEngine.OutlineAction(new AABB(choruspos.add(-0.27, 0, -0.27), choruspos.add(0.27, 1.8, 0.27)), color.getValue().getColorObject(), 2));
50
    }
51
52
    @EventHandler
53
    public void onUpdate(EventSync e) {
54
        if (mc.player.getUseItem() == null) return;
55
        if (mc.player.getUseItem().getItem() == Items.CHORUS_FRUIT) {
56
            isEatingChorus = true;
57
        } else if (isEatingChorus) {
58
            chorusTicks++;
59
            if (chorusTicks > 5) {
60
                isEatingChorus = false;
61
                chorusTicks = 0;
62
            }
63
        }
64
        if (isKeyPressed(confirm) && chorusPacket != null) {
65
            chorusPacket.handle(mc.getConnection());
66
            reset();
67
        }
68
    }
69
70
    @EventHandler
71
    public void onPacketReceive(PacketEvent.@NotNull Receive e) {
72
        if (e.getPacket() instanceof ClientboundPlayerPositionPacket) {
73
            if (isEatingChorus || choruspos != null) {
74
                chorusPacket = e.getPacket();
75
                Vec3 pos = chorusPacket.change().position();
76
                choruspos = new Vec3(pos.x, pos.y, pos.z);
77
                e.cancel();
78
            }
79
        }
80
    }
81
82
    @EventHandler
83
    public void onPacketSend(PacketEvent.Send e) {
84
        if (chorusPacket != null)
85
            if (e.getPacket() instanceof ServerboundMovePlayerPacket
86
                    || e.getPacket() instanceof ServerboundMovePlayerPacket.PosRot
87
                    || e.getPacket() instanceof ServerboundMovePlayerPacket.Rot
88
                    || e.getPacket() instanceof ServerboundMovePlayerPacket.StatusOnly
89
                    || e.getPacket() instanceof ServerboundMovePlayerPacket.Pos
90
            ) e.cancel();
91
    }
92
}
93