Guest User

craft

a guest
Jul 3rd, 2022
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.20 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. sleep(5)
  10. if turtle.getItemCount(4) ~= 0
  11. then do
  12. turtle.turnLeft()
  13. shell.run("goto", "303", "67", "330")
  14. shell.run("goto", "303", "67", "329")
  15. shell.run("goto", "301", "66", "328")
  16. turtle.select(4)
  17. turtle.drop()
  18. end
  19. else do
  20.  
  21. if
  22. turtle.getItemCount(1) == 0
  23. then do
  24. turtle.select(1)
  25. shell.run("goto", "303", "69", "347")
  26. shell.run("goto", "303", "69", "348")
  27. print("grab!")
  28. turtle.suck()
  29.  
  30. end
  31. else
  32.  
  33. if turtle.getItemCount(2) == 0
  34. then do
  35. shell.run("goto", "303", "66", "333")
  36. shell.run("goto", "303", "66", "331")
  37. turtle.select(2)
  38. turtle.suck()
  39. end
  40. else
  41.  
  42. if turtle.getItemCount(3) == 0
  43. then do
  44.  
  45.  
  46. turtle.turnLeft()
  47. shell.run("goto", "307", "65", "329")
  48. shell.run("goto", "307", "65", "328")
  49. shell.run("goto", "305", "65", "327")
  50. turtle.select(3)
  51. turtle.suck()
  52. if turtle.getItemCount(3) == 0 then
  53. sleep(85)
  54. end
  55. end
  56. else
  57.  
  58. if turtle.getItemCount(1) and turtle.getItemCount(2) and turtle.getItemCount(3) ~= 0
  59. then do
  60. turtle.select(4)
  61. turtle.craft()
  62.  
  63. end
  64. else
  65. os.reboot()
  66. end
  67. end
  68. end
  69. end
  70. end
  71. end
  72. end
  73. end
  74. end
  75. end
  76.  
Advertisement
Add Comment
Please, Sign In to add comment