Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --fuel and item check
- if turtle.getFuelLevel()<60 then
- turtle.select(1)
- turtle.refuel(10)
- end
- if turtle.getItemCount(2)<1 then
- print "place:Slot1-Fuel, Slot2-Turtle Ender Chest, Slot3-5 Chests, Slot4-Stone, Slot5-Dirt Slot6-To Sorting Ender Chest and restart"
- turtle.reboot()
- end
- --cycle for collecting turtle and chest
- for d=1,5 do
- turtle.down()
- turtle.down()
- --empty chest
- turtle.select(6)
- turtle.placeUp()
- for e=1,27 do
- turtle.suckDown()
- turtle.dropUp()
- end
- turtle.select(2)
- turtle.digUp()
- turtle.select(3)
- turtle.digDown()
- --empty turtle
- turtle.down()
- turtle.select(4)
- turtle.suck()
- turtle.select(5)
- turtle.suck()
- --pick up turtle into ender chest
- turtle.select(2)
- turtle.placeUp()
- turtle.dig()
- turtle.dropUp()
- turtle.digUp()
- end
- print "Collection operation has been completed, Master. Restart or Pick up at your convenience."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement