NoPose module

NoPose: Minecraft 26.3 cheat module, full source for every implementation (1 client: LiquidBounce (Kotlin)).

1 implementationMOVEMENT

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.

LiquidBounce (Kotlin)MOVEMENTsrc/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/movement/ModuleNoPose.ktKotlin · 81 lines · 3.0 KB

Prevents entity pose changes for low version servers.

SettingsNoSwimSneakHeight
ModuleNoPose.ktKotlin · Minecraft 26.2 · 81 lines · 3.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.features.module.ClientModule
23
import net.ccbluex.liquidbounce.features.module.ModuleCategories
24
import net.ccbluex.liquidbounce.injection.mixins.minecraft.entity.MixinEntity
25
import net.ccbluex.liquidbounce.injection.mixins.minecraft.entity.MixinPlayer
26
import net.minecraft.world.entity.EntityAttachment
27
import net.minecraft.world.entity.EntityAttachments
28
import net.minecraft.world.entity.EntityDimensions
29
import net.minecraft.world.entity.Pose
30
import net.minecraft.world.entity.player.Player
31
32
/**
33
 * Prevents pose changes for low version of server protocol
34
 *
35
 * @see MixinEntity
36
 * @see MixinPlayer
37
 */
38
object ModuleNoPose : ClientModule("NoPose", ModuleCategories.MOVEMENT, aliases = listOf("NoSwim", "NoCrawl")) {
39
40
    val noSwim by boolean("NoSwim", false)
41
    val sneakHeightChoice by enumChoice("SneakHeight", SneakHeights.ONEFIFTEEN)
42
43
    fun shouldCancelPose(pose: Pose): Boolean {
44
        if (!running) return false
45
        /* If the entity in question is mc.player, only cancel EntityPose.SWIMMING */
46
        return pose == Pose.SWIMMING && noSwim
47
    }
48
49
    /**
50
     * Returns an instance of `EntityDimensions` if this module is enabled
51
     * and the sneak setting is modified
52
     * @return `@Nullable EntityDimensions`
53
     */
54
    fun modifySneakHeight(): EntityDimensions? {
55
        if (!running) return null
56
57
        val modified = sneakHeightChoice.dimensions
58
        return modified
59
    }
60
}
61
62
/**
63
 * Helper method to add vehicle attachment
64
 */
65
private fun getDimensions(width: Float, height: Float, eyeHeight: Float): EntityDimensions {
66
    return EntityDimensions.scalable(width, height)
67
        .withEyeHeight(eyeHeight)
68
        .withAttachments(
69
            EntityAttachments.builder().attach(
70
            EntityAttachment.VEHICLE,
71
            Player.DEFAULT_VEHICLE_ATTACHMENT
72
            ))
73
}
74
75
@Suppress("unused") /* Used as settings */
76
enum class SneakHeights(override val tag: String, val dimensions: EntityDimensions): Tagged {
77
    ONEEIGHT("1.8", getDimensions(0.6f, 1.8f, 1.54f)),
78
    ONENINE("1.9", getDimensions(0.6f, 1.65f, 1.54f)),
79
    ONEFIFTEEN("1.15", getDimensions(0.6f, 1.5f, 1.27f));
80
}
81