Advertisement
BruceWplays

Lauren Farm

Jun 21st, 2022 (edited)
570
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.30 KB | None | 0 0
  1. for l=1,10 do
  2. if fs.exists("goto") == false
  3. then do
  4. print("downloading goto")
  5. shell.run("pastebin","get","9wbmJhWS","goto")
  6. end
  7. else do
  8. while true do
  9.  
  10. lenth = 5
  11.  
  12. width = 2
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20. pllenth = lenth
  21. plwidth = width
  22.  
  23. sulenth = lenth
  24. suwidth = width
  25. shell.run("goto", "354", "89", "629")
  26. shell.run("goto", "357", "89", "629")
  27. shell.run("goto", "359", "89", "629")
  28.  
  29.  
  30. turtle.select(1)
  31. dist = lenth
  32.  
  33. turtle.forward()
  34.  
  35. while width ~= 0 do
  36.  
  37.     while dist ~= 0 do
  38.         turtle.digDown()
  39.         turtle.forward()
  40.        dist = dist - 1
  41.     end
  42. if right == 1 then    
  43. turtle.turnRight()
  44. turtle.forward()
  45. turtle.turnRight()
  46. turtle.forward()
  47. dist = lenth
  48. width = width - 1
  49. right = 0
  50. else
  51. turtle.turnLeft()
  52. turtle.forward()
  53. turtle.turnLeft()
  54. turtle.forward()
  55. dist = lenth
  56. width = width - 1
  57. right = 1
  58. end
  59.  
  60.  
  61.  
  62. shell.run("goto", "354", "89", "629")
  63. shell.run("goto", "357", "89", "629")
  64. shell.run("goto", "359", "89", "629")
  65.  
  66.  
  67.  
  68.  
  69. turtle.select(1)
  70. dist = sulenth
  71.  
  72. turtle.forward()
  73.  
  74. while suwidth ~= 0 do
  75.  
  76.     while dist ~= 0 do
  77.         turtle.suckDown()
  78.         turtle.forward()
  79.        dist = dist - 1
  80.     end
  81. if right == 1 then    
  82. turtle.turnRight()
  83. turtle.forward()
  84. turtle.turnRight()
  85. turtle.forward()
  86. dist = lenth
  87. suwidth = suwidth - 1
  88. right = 0
  89. else
  90. turtle.turnLeft()
  91. turtle.forward()
  92. turtle.turnLeft()
  93. turtle.forward()
  94. dist = lenth
  95. suwidth = suwidth - 1
  96. right = 1
  97. end
  98.  
  99.  
  100.  
  101.  
  102.  
  103. shell.run("goto", "354", "89", "629")
  104. shell.run("goto", "357", "89", "629")
  105. shell.run("goto", "359", "89", "629")
  106.  
  107.  
  108. turtle.select(1)
  109. dist = pllenth
  110.  
  111. turtle.forward()
  112.  
  113. while plwidth ~= 0 do
  114.  
  115.     while dist ~= 0 do
  116.         turtle.placeDown()
  117.         turtle.forward()
  118.        dist = dist - 1
  119.     end
  120. if right == 1 then    
  121. turtle.turnRight()
  122. turtle.forward()
  123. turtle.turnRight()
  124. turtle.forward()
  125. dist = lenth
  126. plwidth = plwidth - 1
  127. right = 0
  128. else
  129. turtle.turnLeft()
  130. turtle.forward()
  131. turtle.turnLeft()
  132. turtle.forward()
  133. dist = lenth
  134. plwidth = plwidth - 1
  135. right = 1
  136. end
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145. shell.run("goto", "359", "88", "629")
  146.  
  147.     i = 1
  148.     while i ~= 17 do
  149.    
  150.     turtle.select(i)
  151.     turtle.dropDown()
  152.     i = i + 1
  153.     end
  154.  
  155. sleep(60)
  156. end
  157. end
  158. end
  159. end                    
  160. end                    
  161.                    
  162.                    
  163. end
  164. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement