local whitelist = {1, 2, 3, 5, 6, 7, 9, 10, 11} local function scrapCount() local count = 0 for i = 1, #whitelist do count = count + turtle.getItemCount(whitelist[i]) end return count end local spreadScrap() local count = scrapCount() local eachSlot = math.floor(count / #whitelist) for i = 1, #whitelist - 1 do turtle.select(whitelist[i + 1]) turtle.transferTo(whitelist[1], eachSlot) end end while true do if scrapCount() > 9 then spreadScrap() turtle.craft() turtle.dropDown() end turtle.select(1) turtle.suck() sleep(2) end