Advertisement
BruceWplays

Craft Pumpkin Pie

Jul 3rd, 2022 (edited)
1,206
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. while true do
  9. if turtle.getItemCount(4) ~= 0
  10. then do
  11. turtle.turnLeft()
  12. shell.run("goto", "303", "67", "330")
  13. shell.run("goto", "303", "67", "329")
  14. shell.run("goto", "301", "66", "328")
  15. turtle.select(4)
  16. turtle.drop()
  17. end
  18. else do
  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. if turtle.getItemCount(1) == 0
  37. then do
  38. turtle.select(1)
  39. shell.run("goto", "303", "69", "347")
  40. shell.run("goto", "303", "69", "348")
  41. print("grab!")
  42.  
  43.   while turtle.getItemCount(1) == 0 do  
  44.     turtle.suck()                                  
  45.                                    
  46.   if turtle.getItemCount(1) == 0 then
  47.                                    
  48.                                  
  49.   sleep(wait_time)
  50.   end
  51. end
  52. end
  53. else
  54.  
  55. if turtle.getItemCount(2) == 0
  56. then do
  57. shell.run("goto", "303", "66", "333")
  58. shell.run("goto", "303", "66", "331")
  59. turtle.select(2)
  60.  
  61.                                    
  62.                                    
  63.     while turtle.getItemCount(2) == 0 do
  64.      turtle.suck()                                  
  65.   if turtle.getItemCount(2) == 0 then
  66.                                    
  67.   sleep(wait_time)
  68.   end
  69. end                                  
  70. end
  71. else
  72.  
  73. if turtle.getItemCount(3) == 0
  74. then do
  75.  
  76.  
  77. turtle.turnLeft()
  78. shell.run("goto", "307", "65", "329")
  79. shell.run("goto", "307", "65", "328")
  80. shell.run("goto", "305", "65", "327")
  81. turtle.select(3)
  82.  
  83.   while turtle.getItemCount(3) == 0 do  
  84.       turtle.suck()                                      
  85.   if turtle.getItemCount(3) == 0 then
  86.                                    
  87.   sleep(wait_time)
  88.   end
  89. end
  90. end
  91. else
  92.  
  93. if turtle.getItemCount(1) and turtle.getItemCount(2) and turtle.getItemCount(3) ~= 0
  94. then do
  95. turtle.select(4)
  96. turtle.craft()
  97.  
  98. end
  99. else
  100. os.reboot()
  101. end
  102. end
  103. end
  104. end
  105. end
  106. end
  107. end
  108. end
  109. end
  110. end
  111.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement