Damage module

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

1 implementationEXPLOIT

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)EXPLOITsrc/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/exploit/ModuleDamage.ktKotlin · 115 lines · 3.7 KB

Deals the specified amount of damage to yourself.

SettingsMode
ModuleDamage.ktKotlin · Minecraft 26.2 · 115 lines · 3.7 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.exploit
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.utils.math.component1
25
import net.ccbluex.liquidbounce.utils.math.component2
26
import net.ccbluex.liquidbounce.utils.math.component3
27
import net.minecraft.network.protocol.game.ServerboundMovePlayerPacket
28
29
/**
30
 * Damage module
31
 *
32
 * Deals the specified amount of damage to yourself.
33
 */
34
35
object ModuleDamage : ClientModule("Damage", ModuleCategories.EXPLOIT, disableActivation = true) {
36
37
    private val mode by enumChoice("Mode", DamageModeEnum.NCP)
38
    private val damage by int("Damage", 1, 0..20, "HP")
39
40
    override fun onEnabled() {
41
        damage(mode)
42
    }
43
44
    /**
45
     * Damage client player
46
     */
47
    fun damage(mode: DamageModeEnum) = mode.run()
48
49
    enum class DamageModeEnum(override val tag: String, val run: () -> Unit) : Tagged {
50
        NCP(
51
            "NCP",
52
            {
53
                val (x, y, z) = player.position()
54
55
                repeat(65 * damage) {
56
                    network.send(
57
                        ServerboundMovePlayerPacket.Pos(
58
                        x,
59
                        y + 0.049,
60
                        z,
61
                        false,
62
                        player.horizontalCollision))
63
                    network.send(
64
                        ServerboundMovePlayerPacket.Pos(
65
                        x,
66
                        y,
67
                        z,
68
                        false,
69
                        player.horizontalCollision
70
                    ))
71
                }
72
                network.send(
73
                    ServerboundMovePlayerPacket.Pos(
74
                    x,
75
                    y,
76
                    z,
77
                    true,
78
                    player.horizontalCollision
79
                ))
80
            }
81
        ),
82
        AAC(
83
            "AAC",
84
            {
85
                player.deltaMovement.y = 5.0 * damage
86
            }
87
        ),
88
89
        /**
90
         * @anticheat Verus
91
         * @anticheatVersion b3896
92
         * @testedOn eu.loyisa.cn
93
         * @note it gives you ~2 flags for damage
94
         */
95
        Verus(
96
            "Verus",
97
            {
98
                network.send(
99
                    ServerboundMovePlayerPacket.Pos(player.x, player.y, player.z, false,
100
                    player.horizontalCollision))
101
                network.send(
102
                    ServerboundMovePlayerPacket.Pos(player.x, player.y + 3.25, player.z, false,
103
                    player.horizontalCollision))
104
                network.send(
105
                    ServerboundMovePlayerPacket.Pos(player.x, player.y, player.z, false,
106
                    player.horizontalCollision))
107
                network.send(
108
                    ServerboundMovePlayerPacket.Pos(player.x, player.y, player.z, true,
109
                    player.horizontalCollision))
110
            }
111
        )
112
    }
113
114
}
115