Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local damping = 1
- while true do
- y_vel = ship.getVelocity()["y"]
- if y_vel > damping then
- redstone.setOutput("top", true)
- redstone.setOutput("bottom", false)
- elseif y_vel < damping * -1 then
- redstone.setOutput("top", false)
- redstone.setOutput("bottom", true)
- else
- redstone.setOutput("top", false)
- redstone.setOutput("bottom", false)
- end
- sleep()
- end
Advertisement
Add Comment
Please, Sign In to add comment