Neon1432

lift

Nov 2nd, 2025 (edited)
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. local args = { ... }
  2. local levels = 5
  3. if #args ~= 0 then
  4.     if tonumber(args[1]) == nil then
  5.         error("input must be a number")
  6.     else
  7.         levels = tonumber(args[1])
  8.     end
  9. end
  10.  
  11. for i = 1, levels, 1 do
  12.     turtle.up()
  13.     sleep(0.8)
  14. end
  15.  
  16. sleep(2)
  17.  
  18. for i = 1, levels, 1 do
  19.     turtle.down()
  20. end
  21.  
Advertisement
Add Comment
Please, Sign In to add comment