Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Function to attempt to move forward, dig if blocked, and repeat until successful
- function moveForward()
- while not turtle.forward() do
- if turtle.detect() then
- turtle.dig()
- else
- print("Something is blocking the way.")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement