The Best Resource for Minecraft
The Best Resource for Minecraft

JEI Enchantment Info Mod Wiki

A utility mod for Just Enough Items (JEI) that displays detailed descriptive information for enchantments directly within the JEI interface using language file entries.

5 sections · 573 words

Overview#

JEI Enchantment Info is a specialized utility mod designed to enhance the player's understanding of Minecraft's enchantment system. By bridging the gap between Just Enough Items (JEI) and enchantment metadata, this mod allows players to view comprehensive descriptions of what an enchantment does without leaving the game.

Unlike content mods that add new items or mobs, this mod functions as a technical bridge. It scans the game's language files for specific description keys and presents them in a dedicated 'Information' tab within the JEI overlay. This is particularly valuable in large modpacks where dozens of custom enchantments may be present, each with unique and sometimes complex mechanics.

JEI Enchantment Info interface showing enchantment description

Mechanics#

The mod operates through a dynamic detection system that looks for specific translation keys in the game's .json language files. It does not hard-code descriptions; instead, it acts as a renderer for any mod that provides the appropriate lang entries.

Detection Logic

When a player queries an enchantment, the mod searches for a registry name match followed by a specific suffix. If a match is found, the text associated with that key is pulled into the JEI info panel.

  • Trigger: The mod is triggered when the player uses the 'Show Recipes' or 'Show Uses' keybind on an enchanted book.
  • Filtering: The mod specifically targets books containing a single enchantment to ensure the information provided is accurate and relevant to the specific effect being queried.

Enchanted book info tab in JEI

Usage Instructions#

To use the mod, players must have Just Enough Items (JEI) installed and active. The process for viewing enchantment info is integrated into standard JEI controls.

  1. Locate an Enchantment: Find an enchanted book in your inventory, a chest, or the JEI item list.
  2. Hover and Query: Hover your mouse cursor over the book.
  3. Press Keybind: Press the 'R' key (default for Recipes) or the 'U' key (default for Uses).
  4. Select Info Tab: In the JEI interface that appears, click on the 'i' (Information) icon among the tabs at the top. The description for the enchantment will be displayed in the main panel.
Action Keybind (Default) Result
View Info R Opens the Recipe/Info interface
View Usage U Opens the Usage/Info interface
Scroll Text Mouse Wheel Scrolls through long descriptions

Technical Integration#

For mod developers and resource pack creators, adding support for JEI Enchantment Info is straightforward. The mod follows a standardized naming convention for language entries.

Lang Entry Format

The mod looks for keys following this specific structure: enchantment.[MOD_ID].[ENCHANTMENT_REGISTRY_NAME].[SUFFIX]

  • MOD_ID: The internal ID of the mod adding the enchantment (e.g., minecraft or cyclic).
  • ENCHANTMENT_REGISTRY_NAME: The internal name of the enchantment (e.g., fire_protection).
  • SUFFIX: Either .desc or .description.

Examples

Registry Key Description Value
enchantment.minecraft.sharpness.desc "Increases melee damage against all mobs."
enchantment.jeienchantmentinfo.fire_protection.description "Reduces fire damage and burn time."
enchantment.discernment.discernment.desc "Prevents hurting peaceful or whitelisted entities."

Example of enchantment info entry in JEI

Compatibility#

JEI Enchantment Info is designed to be universally compatible with any mod that adds enchantments, provided those mods (or a separate resource pack) include the necessary language file entries.

  • Mod Compatibility: Works seamlessly with major enchantment mods such as Apotheosis, Cyclic, Astral Sorcery, and many others.
  • Resource Packs: Players can add descriptions for any mod's enchantments by creating a custom resource pack and adding the appropriate .json lang keys.
  • Requirements: This mod is a client-side utility and requires Just Enough Items (JEI) to function. It is available for Forge on versions 1.16.5 and 1.18.2.