Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local delay = 15
- local match = false
- while true do
- match = false
- if turtle.detectUp() then
- for x=1,16,1 do
- if turtle.getItemCount(x) > 0 then
- turtle.select(x)
- if turtle.compareUp() then
- match = true
- end
- end
- end
- end
- if not match then
- turtle.digUp()
- end
- os.sleep(delay)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement