Detecting item properties using only an item modifier

Like, I remember I tried match_tool condition but it doesn't work because I believe it's exclusive use is for loot tables, and you could use entity_properties but that'd only work if you already know where the item would be, which isn't always the case. Summary: I want to do certain modifiers on an item no matter it's slot depending on some of it's properties without the use of any external commands, just the item modifer file itself. Possible?
Continue to help post