Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local t = { ... }
- local n = 1
- local p = 0
- turtle.select(n)
- local mx = t[1]
- turtle.forward()
- turtle.up()
- for i = 1,mx do
- print(n)
- while turtle.getItemCount(n) < 3 do
- n = n + 1
- if n > 16 then
- n = 1
- end
- turtle.select(n)
- end
- turtle.placeDown()
- turtle.turnLeft()
- turtle.place()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.place()
- turtle.turnLeft()
- turtle.forward()
- p = p + 1
- end
- for i = 1,p do
- turtle.back()
- end
- turtle.up()
- for i = 1,mx do
- print(n)
- while turtle.getItemCount(n) < 3 do
- n = n + 1
- if n > 16 then
- n = 1
- end
- turtle.select(n)
- end
- turtle.placeUp()
- turtle.turnLeft()
- turtle.place()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.place()
- turtle.turnLeft()
- turtle.forward()
- p = p + 1
- end
- for i = 1,p do
- turtle.back()
- end
- turtle.back()
- turtle.back()
- turtle.down()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement