it's a little off topic, but you should be able to simply use ender IO with filters, using meta data, to filter between damaged and undamaged items. Might get a bit convoluted doing it this way, but should be doable. otherwise, AE can do that by using a sub-net with fuzzy import/export busses...