Jei Enchantment Info Wiki › Guides › Use Enchantment Info for Mod Development
Use Enchantment Info for Mod Development
Displaying Custom Enchantments
If you're developing a mod with custom enchantments, this mod provides an easy way to document them:
1. Define your enchantment in your mod's code
2. Add a language entry following the format: "enchantment.[YOUR_MOD_ID].[ENCHANTMENT_NAME].description": "[DESCRIPTION]"
3. Players can then press R over your enchanted books to see the description
Benefits
This approach keeps enchantment documentation accessible in-game without requiring external wikis or tooltips. Players using JEI can instantly learn what your enchantments do by hovering and pressing R.
Make descriptions clear and concise, explaining the enchantment's primary effect and any important limitations or interactions.