Recipe Category Crafting Items - mezz/JustEnoughItems GitHub Wiki
[!NOTE] Version note: This page covers recipe category crafting items for Minecraft 1.12.2.
For newer README-listed versions, this feature is handled through recipe catalysts or crafting stations:
- Minecraft 1.16.5, 1.18.2, 1.19.2, and 1.20.1: Recipes Overview, Creating Your Plugin
- Minecraft 1.21, 1.21.1, 1.21.11, 26.1.2, and 26.2: Recipes Overview, Recipe Categories
Recipe What?
Recipe Category Crafting Items are items that are used for crafting things from a specific Recipe Category.
Examples include the:
- Crafting Table for crafting recipes.
- Furnace for smelting and fuel recipes.
- Brewing Stand for brewing recipes.
images/recipe-category-crafting-item.png
JEI shows these items at the top of their category. This helps players find the items they need in order to craft a category of recipes. They can click the item directly to see its recipe.
Implementation
After you create a plugin, you are passed the IModRegistry in your plugin's register method.
From there, add your recipe category crafting item with modRegistry.addRecipeCategoryCraftingItem.
Warning: As of JEI 4.5.0, modRegistry.addRecipeCategoryCraftingItem is now deprecated and has been replaced by modRegistry.addRecipeCatalyst.