Hiding Ingredients - mezz/JustEnoughItems GitHub Wiki
[!NOTE] Version note: This page covers hiding ingredients for Minecraft 1.12.2.
Other ingredient pages:
- Minecraft 1.16.5, 1.18.2, 1.19.2, and 1.20.1: Adding/Hiding Items, Item Subtypes
- Minecraft 1.21, 1.21.1, 1.21.11, 26.1.2, and 26.2: Ingredients and Visibility
Hiding Ingredients
To hide ingredients from JEI, you have to first create a plugin.
In the register method of your plugin, it is passed the IModRegistry.
From there, you can get the ingredient blacklist:
IIngredientBlacklist blacklist = modRegistry.getJeiHelpers().getIngredientBlacklist()
Any ingredient added with IIngredientBlacklist#addIngredientToBlacklist will not be shown to the player in the ingredient list.
Blacklisted ingredients will still show up in recipes.