I am using MR crayfish’s Controllable Mod and i managed to add descend key with
key.valkyrienskies.ship_down=controllable.button.x
but what to do for forward, backward, left, right and up ?
I am using MR crayfish’s Controllable Mod and i managed to add descend key with
key.valkyrienskies.ship_down=controllable.button.x
but what to do for forward, backward, left, right and up ?
if there could be key bind changing option for movement and up for ships like it is for cruise and descend it will work with controllable mod !
I looked at ```private fun sendDrivingPacket() {
if (!level.isClientSide) return
// todo: custom keybinds for going up down and all around but for now lets just use the mc defaults
val opts = Minecraft.getInstance().options
val forward = opts.keyUp.isDown
val backward = opts.keyDown.isDown
val left = opts.keyLeft.isDown
val right = opts.keyRight.isDown
val up = opts.keyJump.isDown
val sprint = this.controllingPassenger?.isSprinting == true
val down = VSKeyBindings.shipDown.get().isDown
val cruise = VSKeyBindings.shipCruise.get().isDown
val impulse = Vector3f()
impulse.z = if (forward == backward) 0.0f else if (forward) 1.0f else -1.0f
impulse.x = if (left == right) 0.0f else if (left) 1.0f else -1.0f
impulse.y = if (up == down) 0.0f else if (up) 1.0f else -1.0f
with(vsCore.simplePacketNetworking) {
PacketPlayerDriving(impulse, sprint, cruise).sendToServer()
}
}```
This conversation is on Discord · Reply there