Advertisement
paramus

quarry

Sep 14th, 2022 (edited)
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | Gaming | 0 0
  1. local args = {...}
  2.  
  3. turtle.refuel()
  4.  
  5. for n = 1,args[1],1
  6. do
  7. turtle.digDown()
  8. turtle.down()
  9. end
  10.  
  11. for w =1,args[3],1
  12. do
  13.  
  14. for u = 1,args[2],1
  15. do
  16.  
  17. for i = 1,args[2],1
  18. do
  19. turtle.dig()
  20. turtle.forward()
  21. end
  22.  
  23. if u%2 ~= 0
  24. then
  25. turtle.turnRight()
  26. turtle.dig()
  27. turtle.forward()
  28. turtle.turnRight()
  29. else
  30. turtle.turnLeft()
  31. turtle.dig()
  32. turtle.forward()
  33. turtle.turnLeft()
  34. end
  35.  
  36. end
  37.  
  38. if args[2]%2 ~= 0
  39. then
  40. for i = 1,args[2],1
  41. do
  42. turtle.dig()
  43. turtle.forward()
  44. end
  45. turtle.turnRight()
  46. for i = 1,args[2],1
  47. do
  48. turtle.dig()
  49. turtle.forward()
  50. end
  51. turtle.turnRight()
  52.  
  53. else
  54.  
  55. turtle.turnLeft()
  56. for i = 1,args[2],1
  57. do
  58. turtle.dig()
  59. turtle.forward()
  60. end
  61. turtle.turnRight()
  62.  
  63. end
  64.  
  65. turtle.digDown()
  66. turtle.down()
  67.  
  68. end
  69.  
  70. for n = 1,args[1]+args[3],1
  71. do
  72. turtle.digUp()
  73. turtle.up()
  74. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement