Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- turtle.select(16)
- a=1
- b=0
- c=1
- function log()
- turtle.dig()
- turtle.forward()
- a=a+1
- while b == 0 do
- if turtle.compare(16)==true then
- turtle.dig()
- turtle.forward()
- c=c+1
- end
- if turtle.compare(16)==false then
- if turtle.compareUp(16)== true then
- turtle.digUp()
- turtle.up()
- a=a+1
- else
- b=1
- end
- end
- end
- for i = 1, c do
- turtle.back()
- end
- for i = 1, a do
- turtle.down()
- end
- end
- log()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement