Chaos_Cash

damper

Sep 19th, 2025
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. local damping = 1
  2. while true do
  3.     y_vel = ship.getVelocity()["y"]
  4.     if y_vel > damping then
  5.         redstone.setOutput("top", true)
  6.         redstone.setOutput("bottom", false)
  7.     elseif y_vel < damping * -1 then
  8.         redstone.setOutput("top", false)
  9.         redstone.setOutput("bottom", true)
  10.     else
  11.         redstone.setOutput("top", false)
  12.         redstone.setOutput("bottom", false)
  13.     end
  14.     sleep()
  15. end
Advertisement
Add Comment
Please, Sign In to add comment