Enchantment Control
Overview
This mod provides the ability to restrict the appearance of specific enchantments from various game sources. This is especially relevant for modded enchantments that can disrupt game balance. Unlike traditional solutions that completely block the registration of unwanted enchantments, our approach is more flexible and secure.
Problems with Obtaining Enchantments
Enchantments can appear in the game in several ways:
- Enchanting table: most mods can control this process
- Creating enchanted books at the table: also controllable by mods
- Finds in chests and fishing: regular items are processed correctly, but enchanted books may contain blocked enchantments as the game applies them automatically
- Trading with villagers: this is the most complex problem - trade offers cannot be controlled outside the game, even with mods
Solution
Enchantment Control solves the last two problems:
Loot blacklist - any enchantments added to this list will not appear in treasure chests or when fishing
Trade blacklist - enchantments from this list cannot be obtained through trading with villagers
To specify enchantments, use their registry names, for example minecraft:fortune
Technical requirements: Mixin Bootstrap is required for the mod to work.