Skip to main content

turtle. detect ( )

if turtle.detect() then
turtle.dig()
Dig()
else
if turtle.detectUp() then
turtle.digUp()
else
turtle.forward()
end
end