Download Enchantment Library — Minecraft Mods — MetaMods

Enchantment Library

Active

Downloads

0

Last update

4 months ago

Versions

1.12.2
Client and server
Forge
Storage
Utils

Enchantment Library

For version 1.12.2 only


Mod Description

This modification introduces a special block called Enchantment Library into the game, designed for storing enchantments in unlimited quantities.

When you place an enchanted book into the library, its enchantments are converted into special points. The cost of each enchantment is calculated using the formula 2^(level-1), where level means the level of the added enchantment.

You can extract any stored enchantments from the library at any level, provided you have enough points and have previously added an enchantment of at least that level. For example, if you added two books with "Unbreaking II" and try to extract "Unbreaking III", it won't work if you've never added a book with "Unbreaking III" or higher before.

Due to data storage specifics, the maximum number of points that can be accumulated is limited to 2^(MAX_SHORT-1) 2 MAX_LONG (multiplication by 2 is related to unsigned point storage, which allows using the sign bit). However, the maximum level supported for storage, addition, and extraction corresponds to MAX_SHORT (which is also the vanilla version limitation).

The enchantment library also provides the maximum extraction level for each enchantment as enchanted books for automation (hoppers, AE2, etc.). Addition supports ANY enchanted book (containing enchantments). If a book has multiple enchantments, all of them will be stored (this function can be disabled in settings).

Extracting books through the interface is possible for any level from 1 to the maximum available for extraction. When clicking with an enchanted book in hand on a different enchantment, that enchantment will be added to the book (this function can also be disabled in settings).

The modification also adds settings for:

  • formatting enchantment level numbers in tooltips (can be changed to regular numbers or extend Roman numerals to 3999 and then use regular numbers)
  • enchanted book stack size

All these options can be completely disabled if the functionality is not required or causes issues with other modifications.

Project members
kurrycat

kurrycat

Developer

Created: 21 Nov 2024

ID: 65815