Advertisement
Slosna

Untitled

Sep 24th, 2021
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. print("Specificare dimensioni quarry")
  2. local dim1 = read()
  3.  
  4. function reset()
  5. turtle.turnLeft()
  6. turtle.dig()
  7. turtle.forward()
  8. turtle.turnRight()
  9. end
  10.  
  11.  
  12. function Dig()
  13. reset()
  14. for i = 1, dim1, 1 do
  15. turtle.dig()
  16. end
  17. for i = 1, dim1, 1 do
  18. turtle.back()
  19. end
  20. reset()
  21. end
  22.  
  23. Dig()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement