MerlinLib Mod (26.3, 1.20.1) – Core Library For Enchantment And Potion Mods
MerlinLib Mod gives other mods three core registration lines for enchantments, mob effects, and potions, along with a ready-to-use testing toolkit. Through a single API entry point, this library bundles ten shared systems that content mods need, including eight enchantment event types, vanilla loot injection, join notices, server lifecycle tracking, mob behaviour hooks, interface animations, and colour helpers. It handles both code-based setup and startup registration from JSON files, and keeps client switches accessible inside an in-game screen that opens from the mod list. This mod must stay present on both the client and the server because its settings screen, join notice page, and registration tools all ship inside one jar file.
![]()
Features:
- Unified API Entry Point: Routes every capability through a single access class,
com.huziyang520.merlinlib.api.MerlinApi, keeping code access consistent for dependent mods. - Three Core Registration Lines: Registers custom enchantments, mob effects, and potions in one shared library instead of repeating boilerplate across separate mods.
- Built-In Testing Toolkit: Ships a ready-to-use testing toolkit right on top of the enchantment, effect, and potion registration lines.
- Single-Jar Dual-Side Packaging: Packs the registration API, the in-game settings screen, and the join notice page into one file that installs on both the client and the server.
- Registers custom enchantments directly from code or loads definitions written in JSON files automatically during startup.
- Registers new mob effects and lets you recolour or turn off existing mob effects right from the settings files.
- Registers new potions, including normal, long, and strong variants generated from a single effect.
- Provides eight enchantment event types that handle equipment scanning automatically and match triggers by enchantment ID.
- Injects enchanted books and custom items straight into vanilla loot chests and mob drop tables.
- Displays chat join notices when players arrive in a world, complete with a per-mod toggle managed by the library.
- Tracks server lifecycle events for starting, started, stopping, and player join, keeping the starting and started moments strictly separate.
- Hooks into mob behaviour to veto a mob’s chosen target or make the mob keep its distance, covering both regular mobs and brain-based mobs such as the piglin family.
- Shares the opening curves and intro animations used by the library’s own screens so other mods can drive their own interfaces with the same motion.
- Includes colour parsing, colour gradients, grant counters, and smelting lookup helpers for common mod tasks.
Configuration:
config/MerlinLib/*.json: Holds JSON definitions for custom content such as enchantments and effect adjustments, registered automatically at startup.config/MerlinLib/client.toml: Stores client-side switches, including per-mod toggles for chat join notices.
How to Use:
- Keep the library jar installed on both the client and the server so the registration API, settings screen, and join notice page all load together.
- Place JSON definition files inside
config/MerlinLib/to register custom enchantments or adjust existing mob effects automatically at startup. - Open the in-game mod list and enter this library’s settings screen to change client switches such as per-mod join notices.
- Save your changes in the settings screen to apply them immediately, or edit
config/MerlinLib/client.tomldirectly. - Add the jar as a dependency in a dependent mod and call
com.huziyang520.merlinlib.api.MerlinApito reach every registration line and hook.
How to Install:
New to Minecraft? Follow our step-by-step guide to install Mods on your PC.View Guide
MerlinLib Mod Download Links
For Minecraft 26.3
For Minecraft
26.2,
26.1.2,
26.1.1
All Versions Covered
26.2
26.1.2
26.1.1
26.1
For Minecraft 1.21.1, 1.21
For Minecraft 1.20.1, 1.20
Which performance or optimization mod do you rely on the most?
74 responses · See the full results →
0




























This post has no comments yet. Be the first — your comment will appear here.