Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function forward()
- if(turtle.forward() == false) then
- if(turtle.detect()) then
- turtle.dig()
- forward()
- elseif(turtle.detect() == false) then
- print("OMFG")
- turtle.attack()
- forward()
- end
- else
- turtle.forward()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement