Lion_Kor

mineplot

Apr 6th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. local args = { ... }
  2. s = tonumber(args[1])
  3.  
  4. x = 0
  5. y = 0
  6. z = 0
  7.  
  8. right = true;
  9.  
  10. turtle.digUp()
  11. turtle.up()
  12.  
  13. while z < 4 do
  14. z = z + 1
  15. while y < s do
  16. y = y + 1
  17. while x < s do
  18. x = x + 1
  19. turtle.dig()
  20. turtle.forward()
  21. end
  22. if right then
  23. turtle.turnRight()
  24. while turtle.detect() do
  25. turtle.dig()
  26. sleep(1)
  27. end
  28. x = 1
  29. turtle.forward()
  30. turtle.turnRight()
  31. right = not right
  32. else
  33. turtle.turnLeft()
  34. while turtle.detect() do
  35. turtle.dig()
  36. sleep(1)
  37. end
  38. x = 1
  39. turtle.forward()
  40. turtle.turnLeft()
  41. right = not right
  42. end
  43. right = not right
  44. end
  45. turtle.digDown()
  46. turtle.down()
  47. y = 1
  48. end
Advertisement
Add Comment
Please, Sign In to add comment