Library
MythicEnchantsLibrary
An enchant bank for MythicEnchants. Players deposit enchanted books into a vault, which stores the levels — not the physical books — against their account. From there they open an Applicator, place any eligible item, and pull stored levels onto it.
Features
- Levels aren't tied to one item. Deposit a book once, apply the levels to whatever item you actually want them on, whenever you want.
- Both GUIs are config-driven. Layout is an ASCII grid with a symbol legend in YAML — icons, colors, names, lore, even MythicMobs items as buttons. Reskinning either GUI doesn't need Java.
- The applicator filters to what's valid. Place an item in and the enchant list shows only what that item can actually take. The level slider is clamped to what's banked and to the enchant's max level.
- Transactions roll back cleanly. Deposits and withdrawals go through the database transactionally. If applying an enchant fails partway through (e.g. a datapack isn't active), whatever was consumed from the vault is refunded.
- Not just a command.
openlibraryis a MythicMobs mechanic, so the vault or applicator can be opened from an NPC, a right-clicked item, a quest reward, or any other skill trigger. - No manual database setup. SQLite works out of the box; MySQL is supported too. The driver and connection pool download themselves on first run into an isolated classloader, so nothing is bundled into the jar or collides with another plugin's copy of the same libraries.
- Optional display-only mode. Turns the addon into a read-only enchant catalog — every enchant shown at max level, nothing stored or spent. Useful as a reference tool even without the banking economy.
Commands
/mench library open the vault
/mench library vault same as above
/mench library apply open the applicator directly
Permission: mench.library
Mechanic
Skills:
- openlibrary{mode=vault} @self ~onInteract
- openlibrary{mode=apply} @self ~onInteract
mode (alias m) accepts vault (default) or apply.
How the vault works
Drag an enchanted book into the deposit slot and its levels get credited to the player, per enchant. The main view pages through everything they've banked, shown as stacked enchanted books — stack size is the level count, up to the configured cap. A button jumps straight to the applicator.
How the applicator works
Place any item in the center slot. The enchant list updates to show only what's applicable to that specific item. Pick one, use the level buttons to choose a target level — bounded by what the item already has plus what's banked, and by the enchant's own max level — then confirm. Only the difference in levels is spent, not the full total.
Per-enchant control
Keep an enchant out of the library entirely:
my_enchant:
Display: "Superstar"
Options:
ExcludeFromLibrary: true