Item Filters Mod 1.18.1/1.16.5/1.12.2 is a library that mods use, for example, FTB Quests, Modular Pipes, and QNet. It has already added a single item called Item Filter.

How to control Item Filters
It is a library mod that is available for other mods to utilize. It has introduced a filter that allows advanced filtering/item selection to work. It’s simple for you to add your filters with the API. Here is the method that you can manage functions.
To use it in quests, please cheat in any filter and right-click to change it. Or, it’s possible to deploy the present one and sneak-right-click to edit the type. In item task, opt for the object from inventory. The icon will appear when scrolling the list of obtainable stuff. Remember to reset the task title!
Existing filters:
NOT – inverts child filter (not apple)
OR – fit once any child filter matches (apple or carrot)
AND – suitable if every child filter matches (diamond sword and enchanted)
XOR – practical if filters A and B harmonize with
Ore Dictionary Name – matches when the item has the ore name
Creative Tab – suits if the target is in that place
Mod – appropriate if the item comes from a mod
NOT, OR, AND, with XOR will not contain GUIs.
To begin the current Item Filters mod, please install Minecraft Forge!
Screenshots