Via Datapacks
Items can easily be excluded from RRV using the c:hidden_from_recipe_viewers common tag adopted by Fabric and NeoForge in 1.21. Using this tag ensures that all recipe viewers that respect the tag (JEI, REI, EMI, EIV, RRV, etc.) will not display your item without needing dedicated integration.
RRV respects this tag for blocks, items, fluids, enchantments, and potions.
Via Resource Packs
The Item View can be easily modified by adding JSON files to assets/<namespace>/rrv/index. The format is as follows:
replace: An optional boolean stating whether the index should be entirely replaced with this new index.values: An optional array containing eitherItemorItemStacks to add to the index.- Specifying
afterwhen adding an item stack will place it after a specific item in the index. - Specifying
beforewhen adding an item stack will place it after a specific item in the index.
- Specifying
remove: An optional array containing eitherItemorItemStacks to be removed to the index. Specifying an item will remove allItemStacks of that type.
{"replace": true,"values": [{"components": {"minecraft:stored_enchantments": {"minecraft:aqua_affinity": 1}},"count": 1,"id": "minecraft:enchanted_book"},{"id": "minecraft:water","after": "minecraft:grass_block"},{"id": "minecraft:water","before": "minecraft:grass_block"},"minecraft:water","minecraft:stone"]}
Via Code
Mods that prefer having dedicated RRV integration (wanting to hide more complicated ItemStacks, or changing the index at runtime without a virtual resource/data pack) can also make use of various methods in ItemView to include and exclude items as well.
Including Items
ItemView.addStackSensitiveadds item stacks to the index.
Excluding Items
ItemView.excludeItemandItemView.excludeItemsexclude instances ofItem.ItemView.excludeEnchantmentexclude resource keys representing anEnchantment.ItemView.excludePotionandItemView.excludePotionsexclude holders representing aPotion