name "mobfactory cleanup" every ticks do input fe:: from interface output fe:: to enchant_extractor end every 20 ticks do input from interface output minecraft:book to each enchant_extractor each side forget -- filter the mob farm barrel input from buffer_barrel output with #c:tools, with #c:armors to disenchant_barrel output without #c:tools or #c:armors to buffer_import_barrel forget --- remove gems from mob farm barrel input from buffer_import_barrel output apotheosis:gem to gem_barrel forget -- send items to disenchant input from enchant_barrel output to each enchant_extractor each side forget -- take enchants book to library input from enchant_extractor each side output minecraft:enchanted_book to libraryofalexandria output except minecraft:enchanted_book to noenchant_barrel forget -- take scraps from salvaging apotheosis table input from apotheosis_salvage slots 0-5 output to interface forget -- take filtered non apotheosis gear to salvagers input from filtered_barrel output to salvagers forget --- empty salvagers to interface input from salvagers output to interface forget --- empty buffer_import_barrel input from buffer_import_barrel output to interface end