Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tank = peripheral.wrap("top")
- while true do
- if tank.getMetadata().tanks[1].capacity <= tank.getMetadata().tanks[1].amount then
- turtle.digUp()
- for i = 1, 16 do
- turtle.suckUp()
- end
- found = false
- while found == false do
- for i = 1, 16 do
- turtle.select(i)
- if turtle.getItemCount() > 0 then
- if turtle.getItemDetail().name == "buildcraftfactory:tank" then
- turtle.placeUp()
- found = true
- end
- turtle.drop()
- end
- end
- end
- for i = 1, 16 do
- turtle.select(i)
- if turtle.getItemCount() > 0 then
- if turtle.getItemDetail().name == "buildcraftfactory:tank" then
- turtle.placeUp()
- else
- turtle.drop()
- end
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment