ProjectileAimbot module

ProjectileAimbot: 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/ModuleProjectileAimbot.ktKotlin · 73 lines · 2.6 KB

Automatically aims at targets using projectile weapons like bows.

ModuleProjectileAimbot.ktKotlin · Minecraft 26.2 · 73 lines · 2.6 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.combat.TargetSelector
30
import net.ccbluex.liquidbounce.utils.entity.handItems
31
import net.ccbluex.liquidbounce.utils.kotlin.Priority
32
import net.ccbluex.liquidbounce.utils.render.trajectory.HeldItemTrajectoryResolver
33
34
object ModuleProjectileAimbot : ClientModule("ProjectileAimbot", ModuleCategories.COMBAT) {
35
36
    private val targetSelector = TargetSelector()
37
    private val rotations = RotationsValueGroup(this)
38
39
    init {
40
        tree(targetSelector)
41
        tree(rotations)
42
    }
43
44
    @Suppress("unused")
45
    private val tickHandler = handler<GameTickEvent> {
46
        val target = targetSelector.targets().firstOrNull() ?: return@handler
47
48
        val rotation = player.handItems.firstNotNullOfOrNull {
49
            val trajectoryDescriptor = HeldItemTrajectoryResolver.resolveHeldItemPrimaryShot(
50
                player,
51
                it,
52
                true
53
            ) ?: return@firstNotNullOfOrNull null
54
55
            SituationalProjectileAngleCalculator.calculateAngleForEntity(
56
                trajectoryDescriptor.trajectoryInfo,
57
                target
58
            )
59
        } ?: return@handler
60
61
        RotationManager.setRotationTarget(
62
            rotation,
63
            considerInventory = false,
64
            rotations,
65
            Priority.IMPORTANT_FOR_USAGE_1,
66
            ModuleProjectileAimbot
67
        )
68
    }
69
70
71
72
}
73