One Enough Enchantment

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

Редакция NLZONE · 2 мин чтения · 1 просмотр
One Enough Enchantment
Скачать One Enough Enchantment1.18 – 1.21.1 · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

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

  • Тип: мод
  • Загрузчик: forge, neoforge
  • Версии Minecraft: 1.18 – 1.21.1
  • Скачиваний на Modrinth: 10 316

Подробно

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:

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

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.

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.

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.

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 en

Как установить

Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.

Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.

Редакция NLZONE

Пишем о серверах, модах и играх, в которые играем сами. Нашли ошибку — напишите нам, исправим.

Комментарии 0

Комментарии к этому материалу отключены.

Читайте также