Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ Go ]]--
- function checkBlocks()
- if turtle.detectUp() then
- turtle.digUP()
- end
- if turtle.dectectDown() then
- return true
- end
- elseif not turtle.detectDown() then
- turtle.select(1)
- sleep(0.375)
- turtle.placeDown()
- end
- end
- function moveForward()
- checkBlocks()
- turtle.forward()
- sleep(0.375)
- if not turtle.forward() then
- turtle.dig()
- turtle.forward()
- end
- end
- function tunnel()
- input = read()
- print("tunneling "..input.." blocks deep...")
- for moved = 1, tonumber(input) do
- moveForward()
- end
- moved = 0
- print("Finished!!")
- sleep(3)
- end
- print("How many spaces? ")
- tunnel()
- -- i know i suck at this...
Advertisement
Add Comment
Please, Sign In to add comment