AutoSoup module

AutoSoup: 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/AutoSoup.javaJava · 31 lines · 1.1 KB

Auto heal for old KitPvP servers.

SettingsTriggerHealth
AutoSoup.javaJava · Minecraft 26.2 · 31 lines · 1.1 KB · complete file, verbatimOriginal ↗
1
package thunder.hack.features.modules.misc;
2
3
import net.minecraft.network.protocol.game.ServerboundUseItemPacket;
4
import net.minecraft.world.InteractionHand;
5
import net.minecraft.world.item.Items;
6
import thunder.hack.features.modules.Module;
7
import thunder.hack.setting.Setting;
8
import thunder.hack.utility.player.InventoryUtility;
9
import thunder.hack.utility.player.SearchInvResult;
10
11
public class AutoSoup extends Module {
12
    public AutoSoup() {
13
        super("AutoSoup", Category.MISC);
14
    }
15
16
    private final Setting<Float> health = new Setting<>("TriggerHealth", 7f, 1f, 20f);
17
18
    @Override
19
    public void onUpdate() {
20
        if (mc.player.getHealth() <= health.getValue()) {
21
            SearchInvResult result = InventoryUtility.findItemInHotBar(Items.MUSHROOM_STEW);
22
            int prevSlot = mc.player.getInventory().getSelectedSlot();
23
            if (result.found()) {
24
                result.switchTo();
25
                sendSequencedPacket(id -> new ServerboundUseItemPacket(InteractionHand.MAIN_HAND, id, mc.player.getYRot(), mc.player.getXRot()));
26
                InventoryUtility.switchTo(prevSlot);
27
            }
28
        }
29
    }
30
}
31