Guest User

sugur

a guest
Sep 8th, 2022
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.03 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","Rj9UiYUJ","goto")
  6. end
  7.  
  8. else do
  9. while true do
  10.  
  11. if turtle.getItemCount(2) ~= 0
  12. then do
  13. turtle.select(2)
  14. turtle.turnLeft()
  15. shell.run("goto", "300", "66", "331")
  16. shell.run("goto", "302", "66", "330")
  17. while turtle.getItemCount(2) ~= 0 do
  18. turtle.drop()
  19. turtle.turnRight()
  20. end
  21. end
  22. else do
  23.  
  24. if turtle.getItemCount(1) ~= 0
  25. then do
  26. turtle.turnLeft()
  27. shell.run("goto", "300", "67", "331")
  28. shell.run("goto", "300", "67", "333")
  29. turtle.select(2)
  30. turtle.craft()
  31. end
  32. else do
  33.  
  34. turtle.select(1)
  35.  
  36. if turtle.getItemCount(1) == 0
  37. then do
  38.  
  39. shell.run("goto", "301", "67", "331")
  40. --sleep(2)
  41. shell.run("goto", "300", "67", "333")
  42. turtle.suck()
  43. turtle.turnLeft()
  44. end
  45. if turtle.getItemCount(1) == 0
  46. then do
  47. print("nothing")
  48. sleep(10)
  49. end
  50. print("grab")
  51. end
  52.  
  53. else do
  54. end
  55.  
  56. shell.run("goto", "300", "67", "331")
  57. shell.run("goto", "300", "67", "333")
  58.  
  59. os.reboot()
  60. end
  61. end
  62. end
  63. end
  64. end
  65. end
  66. end
  67. end
  68. end
  69.  
Advertisement
Add Comment
Please, Sign In to add comment