exp-thrower module

exp-thrower: Minecraft 26.3 cheat module, full source for every implementation (1 client: Meteor Client).

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.

Meteor ClientPlayersrc/main/java/meteordevelopment/meteorclient/systems/modules/player/EXPThrower.javaJava · 38 lines · 1.4 KB

Automatically throws XP bottles from your hotbar.

EXPThrower.javaJava · Minecraft 26.2 · 38 lines · 1.4 KB · complete file, verbatimOriginal ↗
1
/*
2
 * This file is part of the Meteor Client distribution (https://github.com/MeteorDevelopment/meteor-client).
3
 * Copyright (c) Meteor Development.
4
 */
5
6
package meteordevelopment.meteorclient.systems.modules.player;
7
8
import meteordevelopment.meteorclient.events.world.TickEvent;
9
import meteordevelopment.meteorclient.systems.modules.Categories;
10
import meteordevelopment.meteorclient.systems.modules.Module;
11
import meteordevelopment.meteorclient.utils.player.FindItemResult;
12
import meteordevelopment.meteorclient.utils.player.InvUtils;
13
import meteordevelopment.meteorclient.utils.player.Rotations;
14
import meteordevelopment.orbit.EventHandler;
15
import net.minecraft.world.item.Items;
16
17
public class EXPThrower extends Module {
18
    public EXPThrower() {
19
        super(Categories.Player, "exp-thrower", "Automatically throws XP bottles from your hotbar.");
20
    }
21
22
    @EventHandler
23
    private void onTick(TickEvent.Pre event) {
24
        FindItemResult exp = InvUtils.findInHotbar(Items.EXPERIENCE_BOTTLE);
25
        if (!exp.found()) return;
26
27
        Rotations.rotate(mc.player.getYRot(), 90, () -> {
28
            if (exp.getHand() != null) {
29
                mc.gameMode.useItem(mc.player, exp.getHand());
30
            } else {
31
                InvUtils.swap(exp.slot(), true);
32
                mc.gameMode.useItem(mc.player, exp.getHand());
33
                InvUtils.swapBack();
34
            }
35
        });
36
    }
37
}
38