Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
Cardinal NoFall
Browse files Browse the repository at this point in the history
  • Loading branch information
ManInMyVan committed Feb 17, 2024
1 parent ce5777b commit f0bd7ba
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ object NoFall : Module("NoFall", ModuleCategory.PLAYER) {
Vulcan,
Vulcan2,

Cardinal,
Spartan,
CubeCraft,
Hypixel,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* SkidBounce Hacked Client
* A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge, Forked from LiquidBounce.
* https://github.com/ManInMyVan/SkidBounce/
*/
package net.ccbluex.liquidbounce.features.module.modules.player.nofallmodes.other

import net.ccbluex.liquidbounce.event.PacketEvent
import net.ccbluex.liquidbounce.features.module.modules.player.nofallmodes.NoFallMode
import net.minecraft.network.play.client.C03PacketPlayer
import net.minecraft.network.play.server.S08PacketPlayerPosLook

/**
* @author ManInMyVan/SkidBounce
* @author ManInMyVan
*/
object Cardinal : NoFallMode("Cardinal") {
private var falling = false

override fun onEnable() {
falling = false
}

override fun onUpdate() {
if (mc.thePlayer.fallDistance > 3)
falling = true
}

override fun onPacket(event: PacketEvent) {
if (event.packet is C03PacketPlayer && falling && event.packet.onGround && mc.thePlayer.onGround) {
falling = false
mc.thePlayer.onGround = false
event.packet.y = Double.POSITIVE_INFINITY
event.packet.onGround = false
}
}
}

0 comments on commit f0bd7ba

Please sign in to comment.