Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function outerRing()
- x = 1
- if turtle.getItemCount(x) == 0 then
- repeat turtle.select(x+1)
- x = x + 1
- if x == 16 then
- x = 1
- y = 2
- end
- if y == 2 then
- os.reboot()
- end
- until turtle.getItemCount(x) > 0
- end
- turtle.placeDown()
- end
- function innerRing()
- x = 1
- if turtle.getItemCount(x) == 0 then
- repeat turtle.select(x+1)
- x = x + 1
- if x == 16 then
- x = 1
- y = 2
- end
- if y == 2 then
- os.reboot()
- end
- until turtle.getItemCount(x) > 0
- end
- turtle.placeDown()
- end
- function place()
- turtle.select(1)
- x = 1
- if turtle.getItemCount(x) == 0 then
- repeat turtle.select(x+1)
- x = x + 1
- if x == 16 then
- x = 1
- y = 2
- end
- if y == 2 then
- os.reboot()
- end
- until turtle.getItemCount(x) > 0
- end
- turtle.placeUp()
- turtle.placeDown()
- end
- for k = 1,4 do
- for i = 1,39 do
- innerRing()
- turtle.forward()
- end
- turtle.turnRight()
- end
- turtle.turnRight()
- turtle.forward()
- turtle.down()
- turtle.turnLeft()
- for k = 1,4 do
- for i = 1,40 do
- place()
- turtle.forward()
- end
- turtle.turnRight()
- end
- for k = 1,4 do
- for i = 1,41 do
- place()
- turtle.forward()
- end
- turtle.turnRight()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement