Regen module

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

1 implementationPLAYER

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)PLAYERsrc/main/java/thunder/hack/features/modules/player/Regen.javaJava · 25 lines · 1.0 KB

Allows you to regenerate health faster (1.8).

SettingsHealthPackets/Tick
Regen.javaJava · Minecraft 26.2 · 25 lines · 1.0 KB · complete file, verbatimOriginal ↗
1
package thunder.hack.features.modules.player;
2
3
import meteordevelopment.orbit.EventHandler;
4
import net.minecraft.network.protocol.game.ServerboundMovePlayerPacket;
5
import org.lwjgl.glfw.GLFW;
6
import thunder.hack.events.impl.EventSync;
7
import thunder.hack.features.modules.Module;
8
import thunder.hack.setting.Setting;
9
10
public class Regen extends Module {
11
    public Regen() {
12
        super("Regen", Category.PLAYER);
13
    }
14
15
    private final Setting<Integer> health = new Setting<>("Health", 10, 0, 20);
16
    private final Setting<Integer> packetsPerTick = new Setting<>("Packets/Tick", 20, 2, 120);
17
18
    @EventHandler
19
    public void onSync(EventSync e) {
20
        if (mc.player.getHealth() + mc.player.getAbsorptionAmount() <= health.getValue())
21
            for (int i = 0; i < packetsPerTick.getValue(); i++)
22
                sendPacket(new ServerboundMovePlayerPacket.PosRot(mc.player.getX(), mc.player.getY(), mc.player.getZ(), mc.player.getYRot(), mc.player.getXRot(), mc.player.onGround(), mc.player.horizontalCollision));
23
    }
24
}
25