Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- repeat
- sleep(1)
- until turtle.getItemCount(1) ~= 0
- turtle.turnLeft()
- repeat
- for i=1,16 do
- turtle.select(i)
- repeat
- until turtle.drop() or turtle.getItemCount(i) == 0
- end
- until turtle.getItemCount(1) == 0
- turtle.select(1)
- turtle.turnRight()
- controller = peripheral.wrap("left")
- repeat
- sleep(1)
- done = true
- for i=0,controller.getSizeInventory() do
- pcall(function() if controller.getStackInSlot(i) then
- done = false
- end end)
- end
- until done
- repeat
- rs.setOutput("front",true)
- sleep(.5)
- rs.setOutput("front",false)
- turtle.down()
- repeat
- until turtle.suck()
- turtle.up()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.drop()
- turtle.turnLeft()
- turtle.turnLeft()
- drain = peripheral.wrap("front")
- until not drain.getTanks("front")
- end
Advertisement
Add Comment
Please, Sign In to add comment