Advertisement
AssortedBrunoz

turtle

Jan 2nd, 2024 (edited)
969
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.71 KB | None | 0 0
  1. inputs = {}
  2. print("Please Input the current y level")
  3. inputs.y = tonumber(io.read())
  4. y = inputs.y
  5. print("Please input the amount of Rows")
  6. inputs.rows = tonumber(io.read())
  7. rows = inputs.rows
  8. print("Please input the amount of Collums")
  9. inputs.collumns = tonumber(io.read())
  10. collumns = inputs.collumns
  11. print("Starting")
  12. turtle.refuel()
  13. --dig down pillar
  14. function digdown()
  15.     print("digdown")
  16.     repeat
  17.         y = y - 1
  18.         if turtle.digDown() == false then
  19.             y = y - 1
  20.             break;
  21.         end
  22.         turtle.down()
  23.         print(y.." down")
  24.     until y == -64
  25.     repeat
  26.         os.sleep(1)
  27.         turtle.up()
  28.         y = y + 1
  29.         print(y.." up")
  30.     until y == inputs.y
  31. end
  32. digdown()
  33. turtle.forward()
  34. digdown()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement