NoPush module

NoPush: Minecraft 26.3 cheat module, full source for every implementation (4 clients: MelaHack (ThunderHack fork), Combatant, Nicotine, …).

4 implementationsMOVEMENTPlayer

Full module source: 4 implementations

Every implementation below is the complete module file, verbatim. Expand a client to read its code.

MelaHack (ThunderHack fork)MOVEMENTsrc/main/java/thunder/hack/features/modules/movement/NoPush.javaJava · 26 lines · 1.0 KB

Removes pushback from blocks/entities.

SettingsBlocksPlayersLiquidsFishingHook
NoPush.javaJava · Minecraft 26.2 · 26 lines · 1.0 KB · complete file, verbatimOriginal ↗
1
package thunder.hack.features.modules.movement;
2
3
import meteordevelopment.orbit.EventHandler;
4
import net.minecraft.network.protocol.game.ClientboundEntityEventPacket;
5
import net.minecraft.world.entity.projectile.FishingHook;
6
import thunder.hack.events.impl.PacketEvent;
7
import thunder.hack.features.modules.Module;
8
import thunder.hack.setting.Setting;
9
10
public class NoPush extends Module {
11
    public NoPush() {
12
        super("NoPush", Category.MOVEMENT);
13
    }
14
15
    public Setting<Boolean> blocks = new Setting<>("Blocks", true);
16
    public Setting<Boolean> players = new Setting<>("Players", true);
17
    public Setting<Boolean> water = new Setting<>("Liquids", true);
18
    public Setting<Boolean> fishingHook = new Setting<>("FishingHook", true);
19
20
    @EventHandler
21
    public void onPacketReceive(PacketEvent.Receive e) {
22
        if (e.getPacket() instanceof ClientboundEntityEventPacket pac && pac.getEventId() == 31 && pac.getEntity(mc.level) instanceof FishingHook hook && fishingHook.getValue())
23
            if (hook.getHookedIn() == mc.player) e.cancel();
24
    }
25
}
26
CombatantMOVEMENTsrc/main/java/combatant/client/features/module/modules/movement/NoPush.javaJava · 82 lines · 2.5 KB
Settingsnopush_toggles
NoPush.javaJava · Minecraft 26.2 · 82 lines · 2.5 KB · complete file, verbatimOriginal ↗
1
/*
2
 * This file is part of the Combatant Client distribution.
3
 * Copyright (c) 2026 pivosos2007.
4
 *
5
 * Licensed under the GNU General Public License v3.0.
6
 */
7
8
package combatant.client.features.module.modules.movement;
9
10
import net.minecraft.client.Minecraft;
11
import net.minecraft.network.protocol.game.ClientboundEntityEventPacket;
12
import net.minecraft.world.entity.projectile.FishingHook;
13
import combatant.client.config.values.BooleanMapValue;
14
import combatant.client.events.EventHandler;
15
import combatant.client.events.impl.EventPushOutOfBlocks;
16
import combatant.client.events.impl.PacketEvent;
17
import combatant.client.features.module.Module;
18
import combatant.client.features.module.ModuleCategory;
19
import combatant.client.features.module.ModuleInfo;
20
21
import java.util.LinkedHashMap;
22
23
//todo Description
24
@ModuleInfo(
25
        id = "nopush",
26
        displayName = "NoPush",
27
        category = ModuleCategory.MOVEMENT
28
)
29
public class NoPush extends Module {
30
31
    private static final String SETTING_TOGGLES = "toggles";
32
    private final BooleanMapValue toggles = group(
33
            "nopush_toggles",
34
            SETTING_TOGGLES,
35
            new LinkedHashMap<>() {{
36
                put("players", true); // толкание другими энтити
37
                put("blocks", true);
38
                put("liquids", true);
39
                put("fishing_hook", true);  // выталкивание из блоков
40
                put("pearl_phase", true); // спуф позы после жемчуга
41
            }}
42
    );
43
44
    public boolean off(String key) {
45
        return isEnabled() && toggles.get(key);
46
    }
47
48
    public boolean blocksEnabled() {
49
        return off("blocks");
50
    }
51
52
    public boolean playersEnabled() {
53
        return off("players");
54
    }
55
56
    public boolean liquidsEnabled() {
57
        return off("liquids");
58
    }
59
60
    public boolean fishingHookEnabled() {
61
        return off("fishing_hook");
62
    }
63
64
    @EventHandler
65
    public void onPushOutOfBlocks(EventPushOutOfBlocks e) {
66
        if (!blocksEnabled()) return;
67
        e.cancel();
68
    }
69
70
    @EventHandler
71
    public void onPacketReceive(PacketEvent.Receive e) {
72
        if (!fishingHookEnabled()) return;
73
        if (!(e.getPacket() instanceof ClientboundEntityEventPacket pac)) return;
74
        if (pac.getEventId() != 31) return;
75
        Minecraft mc = Minecraft.getInstance();
76
        if (mc == null || mc.level == null || mc.player == null) return;
77
        if (pac.getEntity(mc.level) instanceof FishingHook hook && hook.getHookedIn() == mc.player) {
78
            e.cancel();
79
        }
80
    }
81
}
82
NicotinePlayersrc/client/java/nicotine/mod/mods/player/NoPush.javaJava · 24 lines · 516 B

Prevents entities from pushing you around

NoPush.javaJava · Minecraft 26.3 · 24 lines · 516 B · complete file, verbatimOriginal ↗
1
package nicotine.mod.mods.player;
2
3
import nicotine.events.PushEvent;
4
import nicotine.mod.Mod;
5
import nicotine.mod.ModCategory;
6
import nicotine.util.EventBus;
7
8
public class NoPush extends Mod {
9
10
    public NoPush() {
11
        super(ModCategory.Player, "NoPush", "Prevents entities from pushing you around");
12
    }
13
14
    @Override
15
    protected void init() {
16
        EventBus.register(PushEvent.class, event -> {
17
            if (!this.enabled)
18
                return true;
19
20
            return false;
21
        });
22
    }
23
}
24
LiquidBounce (Kotlin)MOVEMENTsrc/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/movement/ModuleNoPush.ktKotlin · 64 lines · 2.0 KB

Protects you from being pushed around by other players.

ModuleNoPush.ktKotlin · Minecraft 26.2 · 64 lines · 2.0 KB · complete file, verbatimOriginal ↗
1
/*
2
 * This file is part of LiquidBounce (https://github.com/CCBlueX/LiquidBounce)
3
 *
4
 * Copyright (c) 2015 - 2026 CCBlueX
5
 *
6
 * LiquidBounce is free software: you can redistribute it and/or modify
7
 * it under the terms of the GNU General Public License as published by
8
 * the Free Software Foundation, either version 3 of the License, or
9
 * (at your option) any later version.
10
 *
11
 * LiquidBounce is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with LiquidBounce. If not, see <https://www.gnu.org/licenses/>.
18
 */
19
package net.ccbluex.liquidbounce.features.module.modules.movement
20
21
import net.ccbluex.liquidbounce.config.types.list.Tagged
22
import net.ccbluex.liquidbounce.event.events.GameTickEvent
23
import net.ccbluex.liquidbounce.event.handler
24
import net.ccbluex.liquidbounce.features.module.ClientModule
25
import net.ccbluex.liquidbounce.features.module.ModuleCategories
26
27
/**
28
 * NoPush module
29
 *
30
 * Disables pushing from other players and some other situations where someone/something can push.
31
 */
32
object ModuleNoPush : ClientModule("NoPush", ModuleCategories.MOVEMENT) {
33
    private val noPushBy = multiEnumChoice("PushBy",
34
        NoPushBy.ENTITIES,
35
        NoPushBy.LIQUIDS
36
    )
37
38
    @JvmStatic
39
    fun canPush(by: NoPushBy) = !running || by in noPushBy
40
41
    @Suppress("unused")
42
    private val tickHandler = handler<GameTickEvent> {
43
        if (NoPushBy.SINKING !in noPushBy) {
44
            return@handler
45
        }
46
47
        if (mc.options.keyJump.isDown || mc.options.keyShift.isDown) {
48
            return@handler
49
        }
50
51
        if (player.isInLiquid && player.deltaMovement.y < 0) {
52
            player.deltaMovement.y = 0.0
53
        }
54
    }
55
}
56
57
enum class NoPushBy(override val tag: String): Tagged {
58
    ENTITIES("Entities"),
59
    BLOCKS("Blocks"),
60
    FISHING_ROD("FishingRod"),
61
    LIQUIDS("Liquids"),
62
    SINKING("Sinking")
63
}
64