Skip to content

Commit

Permalink
feat(Phase): Hypixel Full Block Phase (CCBlueX#5530)
Browse files Browse the repository at this point in the history
  • Loading branch information
localpthebest authored Feb 4, 2025
1 parent a872aeb commit e177cc3
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import net.ccbluex.liquidbounce.features.module.modules.exploit.*
import net.ccbluex.liquidbounce.features.module.modules.exploit.disabler.ModuleDisabler
import net.ccbluex.liquidbounce.features.module.modules.exploit.dupe.ModuleDupe
import net.ccbluex.liquidbounce.features.module.modules.exploit.servercrasher.ModuleServerCrasher
import net.ccbluex.liquidbounce.features.module.modules.exploit.phase.ModulePhase
import net.ccbluex.liquidbounce.features.module.modules.`fun`.*
import net.ccbluex.liquidbounce.features.module.modules.misc.*
import net.ccbluex.liquidbounce.features.module.modules.misc.antibot.ModuleAntiBot
Expand Down Expand Up @@ -236,6 +237,7 @@ object ModuleManager : EventListener, Iterable<ClientModule> by modules {
ModuleConsoleSpammer,
ModuleTimeShift,
ModuleTeleport,
ModulePhase,

// Fun
ModuleDankBobbing,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* This file is part of LiquidBounce (https://github.com/CCBlueX/LiquidBounce)
*
* Copyright (c) 2015 - 2025 CCBlueX
*
* LiquidBounce is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LiquidBounce is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LiquidBounce. If not, see <https://www.gnu.org/licenses/>.
*/
package net.ccbluex.liquidbounce.features.module.modules.exploit.phase

import net.ccbluex.liquidbounce.features.module.Category
import net.ccbluex.liquidbounce.features.module.ClientModule
import net.ccbluex.liquidbounce.features.module.modules.exploit.phase.phases.PhaseHypixel

/**
* Module Flag Check.
*
* Alerts you about set backs.
*/
object ModulePhase : ClientModule("Phase", Category.EXPLOIT) {

val mode = choices(
"Mode", PhaseHypixel, arrayOf(
PhaseHypixel
)
).apply { tagBy(this) }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package net.ccbluex.liquidbounce.features.module.modules.exploit.phase.phases

import net.ccbluex.liquidbounce.config.types.Choice
import net.ccbluex.liquidbounce.config.types.ChoiceConfigurable
import net.ccbluex.liquidbounce.event.tickHandler
import net.ccbluex.liquidbounce.features.module.modules.exploit.phase.ModulePhase
import net.minecraft.network.packet.c2s.play.PlayerActionC2SPacket
import net.minecraft.util.Hand
import net.minecraft.util.math.Direction

/**
* @anticheat Watchdog
* @anticheatVersion 04.02.2025
* @testedOn Hypixel.net
* Method found by @globalp https://youtu.be/L52Q2BICMDc
*/
object PhaseHypixel : Choice("Hypixel") {

override val parent: ChoiceConfigurable<*>
get() = ModulePhase.mode

@Suppress("unused")
private val tickHandler = tickHandler {
val blockPos = player.blockPos.add(0, -1, 0)
network.sendPacket(
PlayerActionC2SPacket(
PlayerActionC2SPacket.Action.START_DESTROY_BLOCK,
blockPos,
Direction.UP
)
)
player.swingHand(Hand.MAIN_HAND)
network.sendPacket(
PlayerActionC2SPacket(
PlayerActionC2SPacket.Action.STOP_DESTROY_BLOCK,
blockPos,
Direction.UP
)
)
interaction.breakBlock(blockPos)
val blockCenter = player.blockPos.toCenterPos()
player.setPosition(blockCenter.x, player.pos.y, blockCenter.z)
ModulePhase.enabled = false
}

}

0 comments on commit e177cc3

Please sign in to comment.