Essential Extras [Minecraft 1.16.5 to 1.18.2] - mezz/JustEnoughItems GitHub Wiki
[!NOTE] Version note: This page covers item descriptions for Minecraft 1.16.5, 1.18.2, 1.19.2, and 1.20.1. Use the API Javadocs for exact class and method names on the version you target.
Related pages for the remaining README-listed versions:
- Minecraft 1.12.2: Recipe Category Crafting Items, Recipe Transfer Handlers, Recipe Click Areas
- Minecraft 1.21, 1.21.1, 1.21.11, 26.1.2, and 26.2: Ingredients and Visibility, Recipes Overview
Item Descriptions
JEI supports adding descriptions for items so players can easily learn what an items does. To add a description, inside of your plugin's registerRecipes() function, call IRecipeRegistration.addIngredientInfo(ItemStack item, IIngredientType type, Component... description). Note that in this case, type is the type of ingredient. If you haven't added your own type, this should either be VanillaTypes.ITEM_STACK or ForgeTypes.FLUID.