Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- turtle.refuel()
- width = 3
- height = 3
- levels = 3
- turn = 0
- for l = 0, levels, 1 do
- for i = 0, width, 1 do
- for j = 0, width, 1 do
- while turtle.detect() do
- turtle.dig()
- end
- turtle.forward()
- end
- if turn == 0 then
- turtle.turnRight()
- while turtle.detect() do
- turtle.dig()
- end
- turtle.forward()
- turtle.turnRight()
- turn = 1
- else
- turtle.turnLeft()
- while turtle.detect() do
- turtle.dig()
- end
- turtle.forward()
- turtle.turnLeft()
- turn = 0
- end
- turtle.turnRight()
- turtle.turnRight()
- if turn == 0 then
- turn = 1
- else
- turn = 0
- end
- end
- turtle.digDown()
- turtle.down()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement