Advertisement
BruceWplays

Craft Pumpkin Pie V2

Sep 6th, 2022 (edited)
672
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for l=1,10 do
  2. if fs.exists("goto") == false
  3. then do
  4. print("downloading goto")
  5. shell.run("pastebin","get","Rj9UiYUJ","goto")
  6. end
  7. else do
  8. if fs.exists("rebootafter15mins") == false
  9. then do
  10. print("downloading rebooter")
  11. shell.run("pastebin","get","uCziMjxu","rebootafter15mins")
  12. end
  13. shell.run("rebootafter15mins")                
  14. while true do
  15.                
  16.  
  17.  
  18.  
  19.  
  20.                                
  21. ---------------------                        
  22. ---------------------                        
  23. ---------------------
  24. --CHANGE HERE START--
  25. ---------------------
  26. ---------------------                        
  27. ---------------------                        
  28. wait_time = 45                        
  29. -------------------                        
  30. -------------------
  31. --CHANGE HERE END--
  32. -------------------        
  33. -------------------                        
  34.    
  35.                            
  36.  function wait(n)
  37.         turtle.select(4)
  38.         turtle.suckUp()                                  
  39.         sleep(n)
  40.  end                          
  41.                            
  42.                        
  43. if turtle.getItemCount(1) == 0
  44. then do
  45. turtle.select(1)
  46. shell.run("goto", "303", "69", "347")
  47. shell.run("goto", "303", "69", "348")
  48. print("grab!")
  49.  
  50.   while turtle.getItemCount(1) == 0 do  
  51.     turtle.suck()                                  
  52.                                    
  53.   if turtle.getItemCount(1) == 0 then
  54.                                    
  55. wait(wait_time)
  56.   end
  57. end
  58. end
  59. else
  60.  
  61. if turtle.getItemCount(2) == 0
  62. then do
  63. shell.run("goto", "303", "66", "333")
  64. shell.run("goto", "303", "66", "331")
  65. turtle.select(2)
  66.  
  67.                                    
  68.                                    
  69.     while turtle.getItemCount(2) == 0 do
  70.      turtle.suck()                                  
  71.   if turtle.getItemCount(2) == 0 then
  72.                                    
  73.   wait(wait_time)
  74.   end
  75. end                                  
  76. end
  77. else
  78.  
  79. if turtle.getItemCount(3) == 0
  80. then do
  81.  
  82.  
  83. turtle.turnLeft()
  84. shell.run("goto", "307", "65", "329")
  85. shell.run("goto", "307", "65", "328")
  86. shell.run("goto", "305", "65", "327")
  87. turtle.select(3)
  88.  
  89.   while turtle.getItemCount(3) == 0 do  
  90.       turtle.suck()                                      
  91.   if turtle.getItemCount(3) == 0 then
  92.                                    
  93.  wait(wait_time)
  94.   end
  95. end
  96. end
  97. else
  98.  
  99. if turtle.getItemCount(4) == 0 then
  100. if turtle.getItemCount(1) and turtle.getItemCount(2) and turtle.getItemCount(3) ~= 0 then do
  101.  
  102. turtle.select(4)
  103. turtle.craft()
  104.  
  105. end
  106.                                         else
  107. end                                        
  108. else
  109. if turtle.getItemCount(4) < 50 then do
  110. turtle.select(4)
  111. turtle.dropUp()
  112. turtle.select(1)
  113. end                                        
  114. else                                        
  115. if turtle.getItemCount(4) >= 50 then do
  116.    turtle.select(4)                            
  117. turtle.suckUp()
  118. turtle.turnLeft()
  119. shell.run("goto", "303", "67", "330")
  120. shell.run("goto", "303", "67", "329")
  121. shell.run("goto", "301", "66", "328")
  122. turtle.select(4)
  123. turtle.drop()
  124. end
  125.                                        
  126. os.reboot()
  127. end
  128. end
  129. end
  130. end
  131. end
  132. end
  133. end
  134. end
  135. end
  136. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement