spider module

spider: Minecraft 26.3 cheat module, full source for every implementation (4 clients: Meteor Client, MelaHack (ThunderHack fork), OfflineClient, …).

4 implementationsMovementMOVEMENT

Full module source: 4 implementations

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

Meteor ClientMovementsrc/main/java/meteordevelopment/meteorclient/systems/modules/movement/Spider.javaJava · 42 lines · 1.4 KB

Allows you to climb walls like a spider.

Settingsclimb-speed
Spider.javaJava · Minecraft 26.2 · 42 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.movement;
7
8
import meteordevelopment.meteorclient.events.world.TickEvent;
9
import meteordevelopment.meteorclient.settings.DoubleSetting;
10
import meteordevelopment.meteorclient.settings.Setting;
11
import meteordevelopment.meteorclient.settings.SettingGroup;
12
import meteordevelopment.meteorclient.systems.modules.Categories;
13
import meteordevelopment.meteorclient.systems.modules.Module;
14
import meteordevelopment.orbit.EventHandler;
15
import net.minecraft.world.phys.Vec3;
16
17
public class Spider extends Module {
18
    private final SettingGroup sgGeneral = settings.getDefaultGroup();
19
20
    private final Setting<Double> speed = sgGeneral.add(new DoubleSetting.Builder()
21
        .name("climb-speed")
22
        .description("The speed you go up blocks.")
23
        .defaultValue(0.2)
24
        .min(0.0)
25
        .build()
26
    );
27
28
    public Spider() {
29
        super(Categories.Movement, "spider", "Allows you to climb walls like a spider.");
30
    }
31
32
    @EventHandler
33
    private void onTick(TickEvent.Post event) {
34
        if (!mc.player.horizontalCollision) return;
35
36
        Vec3 velocity = mc.player.getDeltaMovement();
37
        if (velocity.y >= 0.2) return;
38
39
        mc.player.setDeltaMovement(velocity.x, speed.get(), velocity.z);
40
    }
41
}
42
MelaHack (ThunderHack fork)MOVEMENTsrc/main/java/thunder/hack/features/modules/movement/Spider.javaJava · 120 lines · 5.7 KB

Allows you to climb walls.

SettingsdelayMode
Spider.javaJava · Minecraft 26.2 · 120 lines · 5.7 KB · complete file, verbatimOriginal ↗
1
package thunder.hack.features.modules.movement;
2
3
import meteordevelopment.orbit.EventHandler;
4
import net.minecraft.core.BlockPos;
5
import net.minecraft.core.Direction;
6
import net.minecraft.network.protocol.game.ServerboundPlayerActionPacket;
7
import net.minecraft.network.protocol.game.ServerboundSetCarriedItemPacket;
8
import net.minecraft.network.protocol.game.ServerboundUseItemOnPacket;
9
import net.minecraft.world.InteractionHand;
10
import net.minecraft.world.item.BlockItem;
11
import net.minecraft.world.item.ItemStack;
12
import net.minecraft.world.item.Items;
13
import net.minecraft.world.level.block.Blocks;
14
import net.minecraft.world.phys.BlockHitResult;
15
import net.minecraft.world.phys.Vec3;
16
import thunder.hack.events.impl.EventSync;
17
import thunder.hack.features.modules.Module;
18
import thunder.hack.setting.Setting;
19
import thunder.hack.utility.player.MovementUtility;
20
21
public class Spider extends Module {
22
    public final Setting<Integer> delay = new Setting<>("delay", 2, 1, 15);
23
    private final Setting<Mode> mode = new Setting<>("Mode", Mode.Matrix);
24
25
    public Spider() {
26
        super("Spider", Category.MOVEMENT);
27
    }
28
29
    public static Direction getPlaceableSide(BlockPos pos) {
30
        for (Direction side : Direction.values()) {
31
            BlockPos neighbour = pos.relative(side);
32
            if (mc.level.isEmptyBlock(neighbour)) {
33
                continue;
34
            }
35
            if (!mc.level.getBlockState(neighbour).canBeReplaced()) {
36
                return side;
37
            }
38
        }
39
        return null;
40
    }
41
42
    @Override
43
    public void onUpdate() {
44
        if (!mc.player.horizontalCollision) return;
45
        if (mc.player.tickCount % 2 == 0 && mc.options.keyJump.isDown() && mode.getValue() == Mode.FunTime) {
46
            float pitch = mc.player.getXRot();
47
            mc.player.setXRot(82);
48
            int slot = getAtHotBar();
49
            if (slot != -1) {
50
                int originalSlot = mc.player.getInventory().getSelectedSlot();
51
                mc.player.getInventory().setSelectedSlot(slot);
52
                sendPacket(new ServerboundSetCarriedItemPacket(slot));
53
54
                mc.gameMode.useItem(mc.player, InteractionHand.MAIN_HAND);
55
                mc.player.swing(InteractionHand.MAIN_HAND);
56
57
                mc.player.getInventory().setSelectedSlot(originalSlot);
58
                sendPacket(new ServerboundSetCarriedItemPacket(originalSlot));
59
            }
60
61
            mc.player.setXRot(pitch);
62
        }
63
64
65
        if (mode.getValue() == Mode.Default) {
66
            mc.player.setDeltaMovement(mc.player.getDeltaMovement().x(), 0.21, mc.player.getDeltaMovement().z());
67
        } else if (mode.getValue() == Mode.Matrix) {
68
            mc.player.setOnGround(mc.player.tickCount % delay.getValue() == 0);
69
            mc.player.yo -= 2.0E-232;
70
            if (mc.player.onGround())
71
                mc.player.setDeltaMovement(mc.player.getDeltaMovement().x(), 0.42, mc.player.getDeltaMovement().z());
72
        }
73
    }
74
75
76
    @EventHandler
77
    public void onSync(EventSync event) {
78
        if (mc.options.keyJump.isDown() && mc.player.getDeltaMovement().y() <= -0.3739040364667221 && mode.getValue() == Mode.MatrixNew) {
79
            mc.player.setOnGround(true);
80
            mc.player.setDeltaMovement(mc.player.getDeltaMovement().x(), 0.481145141919180, mc.player.getDeltaMovement().z());
81
        }
82
        if (mc.player.tickCount % delay.getValue() == 0 && mc.player.horizontalCollision && MovementUtility.isMoving() && mode.getValue() == Mode.Blocks) {
83
            int find = -2;
84
            for (int i = 0; i <= 8; i++)
85
                if (mc.player.getInventory().getItem(i).getItem() instanceof BlockItem) find = i;
86
            if (find == -2) return;
87
            BlockPos pos = BlockPos.containing(mc.player.getX(), mc.player.getY() + 2, mc.player.getZ());
88
            Direction side = getPlaceableSide(pos);
89
            if (side != null) {
90
                sendPacket(new ServerboundSetCarriedItemPacket(find));
91
                BlockPos neighbour = BlockPos.containing(mc.player.getX(), mc.player.getY() + 2, mc.player.getZ()).relative(side);
92
                Direction opposite = side.getOpposite();
93
                Vec3 hitVec = new Vec3(neighbour.getX() + 0.5, neighbour.getY() + 0.5, neighbour.getZ() + 0.5).add(new Vec3(opposite.step()).scale(0.5));
94
                sendSequencedPacket(id -> new ServerboundUseItemOnPacket(InteractionHand.MAIN_HAND, new BlockHitResult(hitVec, opposite, neighbour, false), id));
95
                sendPacket(new net.minecraft.network.protocol.game.ServerboundPlayerInputPacket(new net.minecraft.world.entity.player.Input(false, false, false, false, false, true, false)));
96
                if (mc.level.getBlockState(BlockPos.containing(mc.player.position()).offset(0, 2, 0)).getBlock() != Blocks.AIR) {
97
                    sendPacket(new ServerboundPlayerActionPacket(ServerboundPlayerActionPacket.Action.START_DESTROY_BLOCK, neighbour, opposite));
98
                    sendPacket(new ServerboundPlayerActionPacket(ServerboundPlayerActionPacket.Action.STOP_DESTROY_BLOCK, neighbour, opposite));
99
                }
100
                sendPacket(new net.minecraft.network.protocol.game.ServerboundPlayerInputPacket(new net.minecraft.world.entity.player.Input(false, false, false, false, false, false, false)));
101
            }
102
            mc.player.setOnGround(true);
103
            mc.player.jumpFromGround();
104
            sendPacket(new ServerboundSetCarriedItemPacket(mc.player.getInventory().getSelectedSlot()));
105
        }
106
    }
107
108
    private int getAtHotBar() {
109
        for (int i = 0; i < 9; ++i) {
110
            ItemStack itemStack = mc.player.getInventory().getItem(i);
111
            if (!(itemStack.getItem() == Items.WATER_BUCKET)) continue;
112
            return i;
113
        }
114
        return -1;
115
    }
116
117
    public enum Mode {
118
        Default, Matrix, MatrixNew, Blocks, FunTime
119
    }
120
}
OfflineClientMOVEMENTsrc/main/java/com/jellypudding/offlineclient/modules/movement/Spider.javaJava · 84 lines · 2.9 KB

Climb up any wall like a spider.

SettingsSpeedCeilings
Spider.javaJava · Minecraft 26.2 · 84 lines · 2.9 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.setting.BoolSetting;
8
import com.jellypudding.offlineclient.setting.NumberSetting;
9
import com.jellypudding.offlineclient.util.MovementUtil;
10
import net.minecraft.world.phys.Vec3;
11
12
// A wall the player pushes into is climbed and a risen ceiling can be hung from.
13
// Both keep a block within reach to dodge the vanilla flight kick.
14
public final class Spider extends Module {
15
16
    // How far the box is probed upward for a ceiling to hang from.
17
    private static final double CEILING_PROBE = 0.05;
18
19
    // Pace along a ceiling in blocks a tick. About walking speed.
20
    private static final double CEILING_PACE = 0.2;
21
22
    private final NumberSetting speed = new NumberSetting("Speed",
23
        "How fast you go up the wall in blocks a tick.",
24
        0.2, 0.1, 0.5, 0.05, " blocks").max(1);
25
    private final BoolSetting ceilings = new BoolSetting("Ceilings",
26
        "Hang from a ceiling you climb or jump into and walk along it. Sneak to drop.", false);
27
28
    private boolean hanging;
29
30
    public Spider() {
31
        super("Spider", "Climb up any wall like a spider.", Category.MOVEMENT);
32
        addSettings(speed, ceilings);
33
        searchTags("wall climb", "ceiling");
34
    }
35
36
    @Override
37
    public String getSuffix() {
38
        return hanging ? "hanging" : null;
39
    }
40
41
    @Override
42
    protected void onDisable() {
43
        hanging = false;
44
    }
45
46
    @Subscribe
47
    private void onTick(TickEvent event) {
48
        hanging = false;
49
        if (!inGame() || mc.player.isPassenger()) {
50
            return;
51
        }
52
        if (ceilings.isOn() && hang()) {
53
            return;
54
        }
55
        if (!mc.player.horizontalCollision) {
56
            return;
57
        }
58
        Vec3 velocity = mc.player.getDeltaMovement();
59
        // Faster upward motion from jumps and boosts is left alone.
60
        if (velocity.y >= 0.2) {
61
            return;
62
        }
63
        mc.player.setDeltaMovement(velocity.x, speed.getValue(), velocity.z);
64
    }
65
66
    // Keeps pushing up into a ceiling. The collision holds the player against it.
67
    // The keys then move the player along it at walking pace.
68
    private boolean hang() {
69
        if (mc.player.onGround() || mc.player.isShiftKeyDown() || mc.player.isInWater()
70
            || mc.player.isInLava() || !ceilingAbove()) {
71
            return false;
72
        }
73
        hanging = true;
74
        Vec3 heading = MovementUtil.inputDirection();
75
        mc.player.setDeltaMovement(heading.x * CEILING_PACE, speed.getValue(), heading.z * CEILING_PACE);
76
        return true;
77
    }
78
79
    private boolean ceilingAbove() {
80
        return !mc.level.noCollision(mc.player,
81
            mc.player.getBoundingBox().move(0, CEILING_PROBE, 0));
82
    }
83
}
84
LiquidBounce (Kotlin)MOVEMENTsrc/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/movement/spider/ModuleSpider.ktKotlin · 36 lines · 1.5 KB

Allows you to climb walls like spiderman.

ModuleSpider.ktKotlin · Minecraft 26.2 · 36 lines · 1.5 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.spider
20
21
import net.ccbluex.liquidbounce.features.module.ClientModule
22
import net.ccbluex.liquidbounce.features.module.ModuleCategories
23
import net.ccbluex.liquidbounce.features.module.modules.movement.spider.modes.SpiderPolar29thMarch2025
24
import net.ccbluex.liquidbounce.features.module.modules.movement.spider.modes.SpiderVanilla
25
import net.ccbluex.liquidbounce.features.module.modules.movement.spider.modes.SpiderVulcan288
26
27
object ModuleSpider : ClientModule("Spider", ModuleCategories.MOVEMENT, aliases = listOf("WallClimb")) {
28
29
    internal val modes = choices("Mode", SpiderVanilla, arrayOf(
30
        SpiderVanilla,
31
        SpiderPolar29thMarch2025,
32
        SpiderVulcan288
33
    ))
34
}
35
36