Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. args = {...}
  2.  
  3. local row = args[1]
  4. local col = args[2]
  5.  
  6. for i = 1, row do
  7. for j = 1, col do
  8. local upstack = 0
  9.  
  10.  
  11. turtle.dig()
  12. turtle.forward()
  13. while turtle.detectUp == true do
  14. upstack += 1
  15. turtle.digUp()
  16. end
  17.  
  18. while upstack > 0 do
  19. upstack -= 1
  20. turtle.down()
  21. end
  22.  
  23. end
  24. for k = 1, col do
  25. turtle.back()
  26. end
  27. turtle.turnRight()
  28. turtle.forward()
  29. turtle.turnLeft()
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement