Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local w = 28
- local r = 30
- local i = 1
- local s = 1
- x = 0
- print(x)
- repeat
- x = x + 1
- repeat
- if (turtle.getItemCount(s) == 0)
- then
- s = s + 1
- turtle.select(s)
- end
- turtle.placeDown()
- turtle.forward()
- i = i + 1
- until i == w
- if (x % 2 == 0) then
- turtle.turnLeft()
- turtle.placeDown()
- turtle.forward()
- turtle.turnLeft()
- i = 1
- else
- turtle.turnRight()
- turtle.placeDown()
- turtle.forward()
- turtle.turnRight()
- i = 1
- end
- print(x)
- until x == r
- turtle.dropDown()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement