Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function forceDown()
- while(turtle.down()==false) do
- turtle.digDown()
- end
- end
- function forceFront()
- while(turtle.forward()==false) do
- turtle.dig()
- end
- end
- function forceUp()
- while(turtle.up()==false) do
- turtle.digUp()
- end
- end
- print("Now Mining until fuel runs out")
- while true do
- for i=1,100000 do
- while(turtle.detect()==true) do
- forceFront()
- end
- turtle.turnRight()
- if turtle.detect == false do
- turtle.turnRight()
- if turtle.detect == false do
- turtle.turnRight()
- if turtle.detect == false do
- if turtle.detectUp == true do
- forceUp()
- end
- else
- if turtle.detectDown == true do
- forceDown()
- end
- else
- for i=1,10 do
- forceFront()
- end
- end
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement