Advertisement
jBlume

Turtle Pick Up Beta

Feb 12th, 2019
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.88 KB | None | 0 0
  1. --fuel and item check
  2. if turtle.getFuelLevel()<60 then
  3.     turtle.select(1)
  4.     turtle.refuel(10)
  5. end
  6.  if turtle.getItemCount(2)<1 then
  7.     print "place:Slot1-Fuel, Slot2-Turtle Ender Chest, Slot3-5 Chests, Slot4-Stone, Slot5-Dirt Slot6-To Sorting Ender Chest and restart"
  8.     turtle.reboot()
  9. end
  10.  
  11. --cycle for collecting turtle and chest
  12. for d=1,5 do
  13.     turtle.down()
  14.     turtle.down()
  15.  
  16. --empty chest
  17.     turtle.select(6)
  18.     turtle.placeUp()
  19.     for e=1,27 do
  20.         turtle.suckDown()
  21.         turtle.dropUp()
  22.     end
  23.     turtle.select(2)
  24.     turtle.digUp()
  25.     turtle.select(3)
  26.     turtle.digDown()
  27.  
  28. --empty turtle
  29.     turtle.down()
  30.     turtle.select(4)
  31.     turtle.suck()
  32.     turtle.select(5)
  33.     turtle.suck()
  34.  
  35. --pick up turtle into ender chest
  36.     turtle.select(2)
  37.     turtle.placeUp()
  38.     turtle.dig()
  39.     turtle.dropUp()
  40.     turtle.digUp()
  41. end
  42. print "Collection operation has been completed, Master. Restart or Pick up at your convenience."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement