AutoFlyme module

AutoFlyme: 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/AutoFlyme.javaJava · 71 lines · 3.1 KB

Automated /flyme on mcfunny.su.

SettingsInstantSpeedhoverUseTimerhoverYspeed
AutoFlyme.javaJava · Minecraft 26.2 · 71 lines · 3.1 KB · complete file, verbatimOriginal ↗
1
package thunder.hack.features.modules.misc;
2
3
import meteordevelopment.orbit.EventHandler;
4
import net.minecraft.network.protocol.game.ClientboundSystemChatPacket;
5
import thunder.hack.ThunderHack;
6
import thunder.hack.events.impl.EventSync;
7
import thunder.hack.events.impl.PacketEvent;
8
import thunder.hack.features.modules.Module;
9
import thunder.hack.setting.Setting;
10
import thunder.hack.utility.Timer;
11
import thunder.hack.utility.player.MovementUtility;
12
13
public class AutoFlyme extends Module {
14
    public AutoFlyme() {
15
        super("AutoFlyme", Category.MISC);
16
    }
17
18
    public final Setting<Boolean> instantSpeed = new Setting<>("InstantSpeed", true);
19
    public final Setting<Boolean> hover = new Setting<>("hover", false);
20
    public final Setting<Boolean> useTimer = new Setting<>("UseTimer", false);
21
22
    public Setting<Float> hoverY = new Setting<>("hoverY", 0.228f, 0.0f, 1.0f, v -> hover.getValue());
23
    public Setting<Float> speed = new Setting<>("speed", 1.05f, 0.0f, 8f, v -> hover.getValue());
24
25
    //фаннигейм перешел на матрикс, и теперь можно летать со скоростью 582 км/ч :skull:
26
    private final Timer timer = new Timer();
27
28
    @Override
29
    public void onEnable() {
30
        if (!mc.player.getAbilities().flying) {
31
            mc.player.connection.sendCommand("flyme");
32
        }
33
    }
34
35
    @Override
36
    public void onDisable() {
37
        ThunderHack.TICK_TIMER = 1.f;
38
    }
39
40
    @EventHandler
41
    public void onPacketReceive(PacketEvent.Receive e) {
42
        if (e.getPacket() instanceof ClientboundSystemChatPacket) {
43
            final ClientboundSystemChatPacket packet = e.getPacket();
44
            if ((packet.content().getString().contains("Вы атаковали игрока") || packet.content().getString().contains("Возможность летать была удалена")) && timer.passedMs(1000)) {
45
                mc.player.connection.sendCommand("flyme");
46
                mc.player.connection.sendCommand("flyme");
47
                timer.reset();
48
            }
49
        }
50
    }
51
52
    @Override
53
    public void onUpdate() {
54
        if (useTimer.getValue()) ThunderHack.TICK_TIMER = 1.088f;
55
        if (!mc.player.getAbilities().flying && timer.passedMs(1000) && !mc.player.onGround() && mc.options.keyJump.isDown()) {
56
            mc.player.connection.sendCommand("flyme");
57
            timer.reset();
58
        }
59
        if (!mc.options.keyJump.isDown() && hover.getValue() && mc.player.getAbilities().flying && mc.player.getAbilities().flying && !mc.player.onGround() && !mc.level.getBlockCollisions(mc.player, mc.player.getBoundingBox().move(0.0, -hoverY.getValue(), 0.0)).iterator().hasNext()) {
60
            mc.player.setDeltaMovement(mc.player.getDeltaMovement().x, -0.05, mc.player.getDeltaMovement().z);
61
        }
62
    }
63
64
    @EventHandler
65
    public void onUpdateWalkingPlayer(final EventSync event) {
66
        if (!instantSpeed.getValue() || !mc.player.getAbilities().flying) return;
67
        final double[] dir = MovementUtility.isMoving() ? MovementUtility.forward(speed.getValue()) : new double[]{0, 0};
68
        mc.player.setDeltaMovement(dir[0], mc.player.getDeltaMovement().y, dir[1]);
69
    }
70
}
71