Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function transfer(t,t2,t3)
- turtle.select(4)
- turtle.transferTo(t, t2)
- end
- function overflow(sN)
- if turtle.getItemCount(sN) >= 1 then
- complete = false
- amt = turtle.getItemCount(sN)
- cSlots = {1, 2, 3, 5, 6, 7, 9, 10, 11}
- for i = 1, #cSlots do
- if turtle.getItemCount(cSlots[i]) <= 64 - amt then
- transfer(cSlots[i],amt,sN)
- complete = true
- break
- end
- end
- if not complete then
- turtle.select(sN)
- turtle.dropDown(64)
- end
- return true
- else
- return false
- end
- end
- while true do
- sleep(0.1)
- --turtle.select(4)
- icSlots = {4,8,12,13,14,15,16}
- for b = 1, #icSlots do
- if not overflow(icSlots[b]) then
- break
- end
- end
- if turtle.getItemCount(11) >= 32 then
- turtle.select(16)
- turtle.craft(32)
- turtle.drop(32)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment