This mod allows you to dynamically control the weight of enchantments or even completely remove enchantments from the game.
For the vanilla enchantment weight mechanics, refer to:
https://minecraft.wiki/w/Enchanting\_mechanics
In short, weight determines the frequency of enchantment appearance. In vanilla Minecraft, weight is controlled by four fixed rarities: COMMON (weight 10), UNCOMMON (5), RARE (2), and VERY_RARE (1).
After version 1.21, enchantments became data-driven, and weights can be modified, but this is still not convenient enough.
This mod provides an in-game method to dynamically control enchantment weights and allows setting the weight to 0 to completely remove an enchantment.
In the configuration file, you can input formatted rules in the "rules" field to control the refresh weight. For example, entering ["minecraft:knockback=100", "minecraft:sharpness=0"] will:
The mod also integrates with KubeJS events for dynamic weight modification, which can be combined with game stages or other settings.
OEEEvent.modifyWeight(event => {
event.getWeight("minecraft:sharpness");
event.setWeight("minecraft:knockback", 0);
});
By default, enchantments with weight set to 0 by this mod will not appear in the game in any form.
The following configuration options are enabled by default. You can disable them selectively if you want to retain some functionality.
Configuration option dropRecipe:
Configuration option deepDelete:
/oee all command to view information about all enchantments, including enchantment ID, localized name, and weight.