Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function dropIfFull()
- for i=1,16 do
- turtle.select(i)
- local itemDetail = turtle.getItemDetail()
- if itemDetail then
- turtle.dropUp()
- end
- end
- end
- function digIfNeeded()
- local success, data = turtle.inspect()
- if success then
- turtle.dig()
- end
- turtle.turnRight()
- turtle.suck()
- turtle.suckDown()
- end
- steps = 1
- while true do
- dropIfFull()
- digIfNeeded()
- steps = steps + 1
- if steps == 5 then
- os.sleep(30)
- steps = 1
- end
- end
Add Comment
Please, Sign In to add comment