That worked perfectly, thanks! The only slight annoyance is now I need to keep a set of all item ids of items with recipes, but that's hardly anything to deal with. Although, is there any way to match get_property with a wildcard in some way, out of curiosity?
Edit: Wait, I'm an idiot, no I...