Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function digIt()
- while turtle.detect() do
- turtle.dig()
- end
- while turtle.detectDown() or turtle.detectUp() do
- turtle.digUp()
- turtle.digDown()
- end
- turtle.forward()
- end
- term.write("Branch length: ")
- run = read()
- for i = 1, run do
- digIt()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement