Please rewrite the src code from FDPCLIENT into a script for ScriptApiV2
-
package net.ccbluex.liquidbounce.features.module.modules.movement.flys.other
import net.ccbluex.liquidbounce.event.BlockBBEvent
import net.ccbluex.liquidbounce.event.JumpEvent
import net.ccbluex.liquidbounce.features.module.modules.movement.flys.FlyMode
import net.ccbluex.liquidbounce.value.BoolValue
import net.minecraft.block.BlockAir
import net.minecraft.util.AxisAlignedBBclass FakeGroundFly : FlyMode("FakeGround") {
private val noJumpValue = BoolValue("${valuePrefix}NoJump", false)
private val jumpUpYValue = BoolValue("${valuePrefix}JumpUpY", false)
override fun onBlockBB(event: BlockBBEvent) {
if (event.block is BlockAir && event.y <= fly.launchY) {
event.boundingBox = AxisAlignedBB.fromBounds(event.x.toDouble(), event.y.toDouble(), event.z.toDouble(), event.x + 1.0, fly.launchY, event.z + 1.0)
}
}
override fun onJump(event: JumpEvent) {
if (noJumpValue.get()) {
event.cancelEvent()
}else if (jumpUpYValue.get()) {
fly.launchY += 1.0
}
}
} -
thats basically collide fly?
-
This post is deleted!
-
This post is deleted!
-
@EclipsesDev Mint LiquidBounce, he use ScriptApi V2
-
@EclipsesDev Mint LiquidBounce, he use ScriptApi v2
-
This is LiquidBounce Forum. Not Mint LiquidBounce or anything else.
-