Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function mydig()
- if turtle.detect() then
- turtle.dig()
- end
- end
- for z=0,5 do
- for x=0,5 do
- dirx=0
- for y=0,5 do
- mydig()
- turtle.forward()
- end
- if (x < 4) then
- if (dirx == 0) then
- turtle.turnRight()
- mydig()
- turtle.forward()
- turtle.turnRight()
- dirx=1
- else
- turtle.turnLeft()
- mydig()
- turtle.forward()
- turtle.turnLeft()
- dirx=0
- end
- end
- end
- turtle.turnRight()
- turtle.turnRight()
- turtle.digDown()
- turtle.down()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement