Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local maxLength = 9
- turtle.forward()
- local index2 = 0
- while (index2 < maxLength)
- do
- local index = 1
- while (index < maxLength)
- do
- turtle.digDown()
- turtle.select(1)
- turtle.placeDown()
- turtle.forward()
- index = index + 1
- end
- if (index2 ~= maxLength - 1)
- then
- turtle.digDown()
- turtle.select(1)
- turtle.placeDown()
- if (index2 % 2 == 0)
- then
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- else
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- end
- end
- index2 = index2 + 1
- end
- turtle.digDown()
- turtle.select(1)
- turtle.placeDown()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement