rungholt

jannie2

Feb 19th, 2021 (edited)
1,032
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.79 KB | None | 0 0
  1. if not fs.exists('goto') then
  2.     shell.run('pastebin get HS3Vv8z8 goto')
  3. end
  4.  
  5. while turtle.getFuelLevel() <= 200 do
  6.     turtle.select(16)
  7.     turtle.refuel(1)
  8. end
  9.  
  10. local function findSlot()
  11.     for i = 1, 15 do
  12.         if turtle.getItemCount(i) == 0 then
  13.             turtle.select(i)
  14.             return
  15.         end
  16.     end
  17. end
  18.  
  19. shell.run("goto 4 81 180") -- Melon Chest GPS
  20.     findSlot()
  21.     turtle.suckDown()
  22.  
  23. shell.run("goto 10 81 181") -- Carrot Chest GPS
  24.     findSlot()
  25.     turtle.suckDown()
  26.  
  27. shell.run("goto 10 81 184") -- Potato Chest GPS
  28.     findSlot()
  29.     turtle.suckDown()
  30.  
  31. shell.run("goto 13 81 184") -- Wheat Chest GPS
  32.     findSlot()
  33.     turtle.suckDown()
  34.  
  35. shell.run("goto 4 80 186") -- Home Chest GPS
  36. for i = 1,15 do
  37.     turtle.select(i)
  38.     turtle.dropDown()
  39. end
Advertisement
Add Comment
Please, Sign In to add comment