NoWeb module

NoWeb: Minecraft 26.3 cheat module, full source for every implementation (2 clients: OfflineClient, LiquidBounce (Kotlin)).

2 implementationsMOVEMENT

Full module source: 2 implementations

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

OfflineClientMOVEMENTsrc/main/java/com/jellypudding/offlineclient/modules/movement/NoWeb.javaJava · 52 lines · 1.8 KB

Move through cobwebs at full speed.

SettingsModeTimer speed
NoWeb.javaJava · Minecraft 26.2 · 52 lines · 1.8 KB · complete file, verbatimOriginal ↗
1
package com.jellypudding.offlineclient.modules.movement;
2
3
import com.jellypudding.offlineclient.event.Subscribe;
4
import com.jellypudding.offlineclient.event.events.TickEvent;
5
import com.jellypudding.offlineclient.module.Category;
6
import com.jellypudding.offlineclient.module.Module;
7
import com.jellypudding.offlineclient.modules.misc.Timer;
8
import com.jellypudding.offlineclient.setting.EnumSetting;
9
import com.jellypudding.offlineclient.setting.NumberSetting;
10
import net.minecraft.world.level.block.Blocks;
11
12
// The full speed mode lives in WebBlockMixin.
13
public final class NoWeb extends Module {
14
15
    public enum Mode { FULL_SPEED, TIMER }
16
17
    private static final String TIMER_KEY = "noweb";
18
19
    private final EnumSetting<Mode> mode = new EnumSetting<>("Mode",
20
        "How a cobweb is beaten.", Mode.FULL_SPEED)
21
        .describe(Mode.FULL_SPEED, "The cobweb never slows you at all.")
22
        .describe(Mode.TIMER, "Speeds the game up whilst you hang in a cobweb off the ground.");
23
    private final NumberSetting timerSpeed = new NumberSetting("Timer speed",
24
        "Game speed whilst in a cobweb.", 10, 1, 20, 0.5, "x")
25
        .min(1).under(mode, Mode.TIMER);
26
27
    public NoWeb() {
28
        super("NoWeb", "Move through cobwebs at full speed.", Category.MOVEMENT);
29
        addSettings(mode, timerSpeed);
30
        searchTags("cobweb", "web");
31
    }
32
33
    @Override
34
    protected void onDisable() {
35
        Timer.override(TIMER_KEY, 1f);
36
    }
37
38
    public boolean skipsWebs() {
39
        return isEnabled() && mode.is(Mode.FULL_SPEED);
40
    }
41
42
    @Subscribe
43
    private void onTick(TickEvent event) {
44
        if (!inGame()) {
45
            return;
46
        }
47
        boolean hanging = mode.is(Mode.TIMER) && !mc.player.onGround()
48
            && mc.player.getInBlockState().is(Blocks.COBWEB);
49
        Timer.override(TIMER_KEY, hanging ? timerSpeed.getFloat() : 1f);
50
    }
51
}
52
LiquidBounce (Kotlin)MOVEMENTsrc/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/movement/noweb/ModuleNoWeb.ktKotlin · 80 lines · 2.8 KB

Disables slow down caused by webs.

ModuleNoWeb.ktKotlin · Minecraft 26.2 · 80 lines · 2.8 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.noweb
20
21
import net.ccbluex.liquidbounce.event.events.NotificationEvent
22
import net.ccbluex.liquidbounce.event.tickHandler
23
import net.ccbluex.liquidbounce.event.waitTicks
24
import net.ccbluex.liquidbounce.features.module.ClientModule
25
import net.ccbluex.liquidbounce.features.module.ModuleCategories
26
import net.ccbluex.liquidbounce.features.module.modules.movement.ModuleAvoidHazards
27
import net.ccbluex.liquidbounce.features.module.modules.movement.noweb.modes.NoWebAir
28
import net.ccbluex.liquidbounce.features.module.modules.movement.noweb.modes.NoWebGrimBreak
29
import net.ccbluex.liquidbounce.features.module.modules.movement.noweb.modes.NoWebIntave14
30
import net.ccbluex.liquidbounce.features.module.modules.movement.noweb.modes.NoWebPlaceWater
31
import net.ccbluex.liquidbounce.features.module.modules.movement.noweb.modes.NoWebStrafe
32
import net.ccbluex.liquidbounce.utils.client.notification
33
import net.minecraft.core.BlockPos
34
import net.minecraft.world.level.block.WebBlock
35
36
/**
37
 * NoWeb module
38
 *
39
 * Disables web slowdown.
40
 */
41
object ModuleNoWeb : ClientModule("NoWeb", ModuleCategories.MOVEMENT) {
42
43
    val modes = choices(
44
        "Mode", NoWebAir, arrayOf(
45
            NoWebAir,
46
            NoWebGrimBreak,
47
            NoWebIntave14,
48
            NoWebPlaceWater,
49
            NoWebStrafe
50
        )
51
    ).apply { tagBy(this) }
52
53
    @Suppress("unused")
54
    private val tickHandler = tickHandler {
55
        if (ModuleAvoidHazards.enabled && ModuleAvoidHazards.cobWebs) {
56
            ModuleAvoidHazards.enabled = false
57
58
            notification(
59
                "Compatibility error", "NoWeb is incompatible with AvoidHazards",
60
                NotificationEvent.Severity.ERROR
61
            )
62
            waitTicks(40)
63
        }
64
    }
65
66
    /**
67
     * Handle cobweb collision
68
     *
69
     * @see WebBlock.entityInside
70
     * @return if we should cancel the slowdown effect
71
     */
72
    fun handleEntityCollision(pos: BlockPos): Boolean {
73
        if (!running) {
74
            return false
75
        }
76
77
        return modes.activeMode.handleEntityCollision(pos)
78
    }
79
}
80