Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local num=8
- local lim=100
- local count=0
- local selectnum=0
- num = num-1
- turtle.select(1)
- while 1==1 do
- turtle.up()
- for j=1,4 do
- for i=1,num do
- if turtle.getItemCount() == 0 then
- selectNum = turtle.getSelectedSlot()
- if selectNum == 16 then
- selectNum = 0
- end
- turtle.select(selectNum+1)
- end
- turtle.placeDown()
- turtle.forward()
- if i * 2 == num + 1 then
- if j == 1 or j == 2 then
- turtle.up()
- elseif j == 3 or j == 4 then
- turtle.down()
- end
- end
- if i == num then
- turtle.turnRight()
- end
- end
- end
- selectNum = turtle.getSelectedSlot()
- if selectNum == 16 then
- selectNum = 0
- end
- turtle.select(selectNum+1)
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.turnRight()
- end
Advertisement
Add Comment
Please, Sign In to add comment