A while back I made an automated factory, which worked by pulling each block into a storage container specific to that block, checking how full it was with a sensor block, and then either turning on a factory set to make that block or placing its contents back into the primary storage container...