Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local num=4
- local lim=100
- local count=0
- local selectnum=0
- local mode=0
- local maxnum=12
- 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 == num then
- turtle.turnRight()
- end
- end
- end
- if num >= maxnum then
- mode = 1
- elseif num <= 4 then
- mode = 0
- end
- if mode == 0 then
- num = num + 2
- turtle.back()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- else
- num = num - 2
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement