Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local x, y, z = gps.locate()
- Counter = 0
- while turtle.detectDown() and y > 4 do
- turtle.digDown()
- turtle.down()
- Counter = Counter + 1
- local x, y, z = gps.locate()
- end
- if y < 5 then
- for n = 1, Counter do
- turtle.up()
- end
- else
- for n = 1, 4 do
- turtle.dig()
- turtle.forward()
- end
- while turtle.detect() do
- for n = 1, 3 do
- turtle.digUp()
- turtle.digDown()
- turtle.up()
- turtle.dig()
- turtle.forward()
- end
- turtle.turnRight()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement