Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i = 1,16 do
- if turtle.getItemCount(i) > 0 and turtle.getItemCount(i) < 64 then
- turtle.select(i)
- for j = i+1,16 do
- if turtle.compareTo(j) then
- turtle.select(j)
- turtle.transferTo(i)
- turtle.select(i)
- end
- end
- end
- end
- for i = 1,16 do
- if turtle.getItemCount(i) > 0 then
- for j = 1,i do
- if turtle.getItemCount(j) == 0 then
- turtle.select(i)
- turtle.transferTo(j)
- break
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement