跳到正文

One Enough Enchantment

Dynamically control the weight of enchantments or even completely remove enchantments.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

One Enough Enchantment

This mod allows you to dynamically control the weight of enchantments or even completely remove enchantments from the game.

Weight Control

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:

  • Greatly increase the probability of the Knockback enchantment appearing.
  • Completely remove the Sharpness enchantment from the game.
  • Other enchantments remain unaffected and use their default weights.

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);
});

Removing Enchantments

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:

  • For enchantments with weight 0, associated recipes (such as anvil recipes) are removed. This means the corresponding enchanted books cannot be used, but enchantments can still be applied via commands.
  • In JEI, the corresponding recipes (e.g., anvil recipes) will not be queryable.

Configuration option deepDelete:

  • For enchantments with weight 0, even if you force-enchant an item via commands, the enchantment data cannot be parsed (though the NBT is preserved). It can be restored by adjusting the weight back.
  • In JEI or the creative inventory, the corresponding enchanted books are removed and cannot be queried at all.

Other

  • Theoretically, this mod can be installed only on the server side.
  • Use the /oee all command to view information about all enchantments, including enchantment ID, localized name, and weight.
  • If you remove many COMMON-rarity enchantments, the enchantment table at low levels might not show any enchantments. This is due to the vanilla mechanism and is not a bug in this mod.

常见问题

One Enough Enchantment 支持哪些 Minecraft 版本?

One Enough Enchantment 支持 Minecraft Java 版 1.18–1.21.1,共 15 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

One Enough Enchantment 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

MerrySnow 的其他作品

查看全部 →