FastXP module

FastXP: Minecraft 26.3 cheat module, full source for every implementation (1 client: Nicotine).

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.

NicotinePlayersrc/client/java/nicotine/mod/mods/player/FastXP.javaJava · 44 lines · 1.1 KB

Speeds up how fast you can throw XP bottles

SettingsDelay
FastXP.javaJava · Minecraft 26.3 · 44 lines · 1.1 KB · complete file, verbatimOriginal ↗
1
package nicotine.mod.mods.player;
2
3
import net.minecraft.world.item.Items;
4
import nicotine.events.ClientLevelTickEvent;
5
import nicotine.mod.Mod;
6
import nicotine.mod.ModCategory;
7
import nicotine.mod.option.SliderOption;
8
import nicotine.util.EventBus;
9
10
import static nicotine.util.Common.mc;
11
12
public class FastXP extends Mod {
13
    private float delayLeft = 0;
14
15
    private final SliderOption delay = new SliderOption(
16
            "Delay",
17
            0,
18
            0,
19
            5
20
    );
21
22
    public FastXP() {
23
        super(ModCategory.Player, "FastXP", "Speeds up how fast you can throw XP bottles");
24
        this.addOptions(delay);
25
    }
26
27
    @Override
28
    protected void init() {
29
        EventBus.register(ClientLevelTickEvent.class, event -> {
30
            if (!this.enabled)
31
                return true;
32
33
            if (mc.player.getMainHandItem().getItem() == Items.EXPERIENCE_BOTTLE && mc.options.keyUse.isDown() && delayLeft <= 0) {
34
                mc.gameMode.useItem(mc.player, mc.player.getUsedItemHand());
35
                delayLeft = delay.value;
36
            }
37
38
            delayLeft--;
39
40
            return true;
41
        });
42
    }
43
}
44