DroneControl module

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

1 implementationCOMBAT

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)COMBATsrc/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/combat/aimbot/ModuleDroneControl.ktKotlin · 89 lines · 3.0 KB

Opens a control panel to aim and shoot at targets with a bow.

ModuleDroneControl.ktKotlin · Minecraft 26.2 · 89 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
20
package net.ccbluex.liquidbounce.features.module.modules.combat.aimbot
21
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
import net.ccbluex.liquidbounce.utils.aiming.RotationManager
27
import net.ccbluex.liquidbounce.utils.aiming.RotationsValueGroup
28
import net.ccbluex.liquidbounce.utils.aiming.projectiles.SituationalProjectileAngleCalculator
29
import net.ccbluex.liquidbounce.utils.entity.PositionExtrapolation
30
import net.ccbluex.liquidbounce.utils.kotlin.Priority
31
import net.ccbluex.liquidbounce.utils.render.trajectory.TrajectoryInfo
32
import net.minecraft.world.InteractionHand
33
import net.minecraft.world.entity.Entity
34
import net.minecraft.world.phys.Vec3
35
36
object ModuleDroneControl : ClientModule("DroneControl", ModuleCategories.COMBAT) {
37
38
    private val rotations = tree(RotationsValueGroup(this))
39
40
    var screen: DroneControlScreen? = null
41
42
    override fun onEnabled() {
43
        screen = DroneControlScreen()
44
45
        mc.gui.setScreen(screen)
46
    }
47
48
    override fun onDisabled() {
49
        if (mc.gui.screen() == screen) {
50
            mc.gui.setScreen(null)
51
        }
52
53
        screen = null
54
    }
55
56
    var currentTarget: Pair<Entity, Vec3>? = null
57
    var mayShoot = false
58
59
    @Suppress("unused")
60
    private val repeatable = handler<GameTickEvent> {
61
        val currentRotation = currentTarget?.let { (entity, pos) ->
62
            SituationalProjectileAngleCalculator.calculateAngleFor(
63
                TrajectoryInfo.BOW_FULL_PULL,
64
                sourcePos = player.eyePosition,
65
                targetPosFunction = PositionExtrapolation.constant(pos),
66
                targetShape = entity.dimensions
67
            )
68
        }
69
70
        if (currentRotation != null) {
71
            RotationManager.setRotationTarget(
72
                rotation = currentRotation,
73
                valueGroup = rotations,
74
                priority = Priority.NORMAL,
75
                provider = ModuleDroneControl
76
            )
77
        }
78
79
        if (mayShoot) {
80
            interaction.releaseUsingItem(player)
81
82
            mayShoot = false
83
        } else {
84
            interaction.useItem(player, InteractionHand.MAIN_HAND)
85
        }
86
    }
87
88
}
89