forked from CCBlueX/LiquidBounce
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LEGACY: Added VulcanLowHop & ItemPhysics Tweak (CCBlueX#2773)
Yes very cool :>
- Loading branch information
1 parent
020c969
commit d4380c5
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...t/ccbluex/liquidbounce/features/module/modules/movement/speedmodes/vulcan/VulcanLowHop.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* LiquidBounce Hacked Client | ||
* A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. | ||
* https://github.com/CCBlueX/LiquidBounce/ | ||
*/ | ||
package net.ccbluex.liquidbounce.features.module.modules.movement.speedmodes.vulcan | ||
|
||
import net.ccbluex.liquidbounce.features.module.modules.movement.speedmodes.SpeedMode | ||
import net.ccbluex.liquidbounce.utils.MovementUtils.isMoving | ||
import net.ccbluex.liquidbounce.utils.MovementUtils.strafe | ||
import net.ccbluex.liquidbounce.utils.extensions.tryJump | ||
|
||
object VulcanLowHop : SpeedMode("VulcanLowHop") { | ||
override fun onUpdate() { | ||
val player = mc.thePlayer ?: return | ||
if (player.isInWater || player.isInLava || player.isInWeb || player.isOnLadder) return | ||
|
||
if (isMoving) { | ||
if (!player.onGround && player.fallDistance > 1.1) { | ||
mc.timer.timerSpeed = 1f | ||
player.motionY = -0.25 | ||
return | ||
} | ||
|
||
if (player.onGround) { | ||
player.tryJump() | ||
strafe(0.4815f) | ||
mc.timer.timerSpeed = 1.263f | ||
} else if (player.ticksExisted % 4 == 0) { | ||
if (player.ticksExisted % 3 == 0) { | ||
player.motionY = -0.01 / player.motionY | ||
} else { | ||
player.motionY = -player.motionY / player.posY | ||
} | ||
mc.timer.timerSpeed = 0.8985f | ||
} | ||
|
||
} else { | ||
mc.timer.timerSpeed = 1f | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters