Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function start()
- a,b = turtle.inspectDown()
- if b.metadata ~= 0 then
- for i = 1,16 do
- turtle.back()
- end
- turtle.select(1)
- end
- function stuff()
- c,d = turtle.inspectDown()
- id = d.metadata
- if id == 13 then
- turtle.digDown()
- os.sleep(0.1)
- turtle.dropDown()
- end
- end
- function drop()
- for i = 1,5 do
- turtle.select(i)
- x = turtle.getItemCount(i)
- z = x-1
- turtle.dropDown(z)
- end
- end
- while true do
- for i = 1,6 do
- s = i-1
- turtle.select(s)
- stuff()
- turtle.forward()
- end
- for i = 1,6 do
- turtle.back()
- end
- drop()
- os.sleep(300)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement