MerlinLib
If you have ever written a content mod for Minecraft, you know the grind: registering an enchantment here, a potion variant there, then wiring up loot tables, join messages, and mob behaviour hooks that every project eventually needs. MerlinLib exists to take that repetitive scaffolding off your plate. It is a library mod built for mod authors, gathering the registration lines and utility systems that content mods keep reinventing into a single, well-organized entry point.
What MerlinLib Actually Provides
Everything in the library is reached through one class: com.huziyang520.merlinlib.api.MerlinApi. That single entry point keeps your imports tidy and your code readable. Here is the core of what you get.
Registration: Enchantments, Effects, and Potions
The three main registration lines cover the content most mods need. You can register an enchantment directly from code, or describe it in a JSON file under config/MerlinLib/*.json and let the library handle registration at startup. Mob effects work the same way, and you can even recolour or disable existing effects through configuration. Potions round it out, including the familiar normal, long, and strong variants of a single effect.
Events and Hooks
- Enchantment events: Eight event types with the equipment scan already done for you, matched by enchantment id.
- Loot injection: Drop enchanted books or custom items into vanilla chests and mob drops without rewriting loot tables.
- Join notices: Show a chat message when a player arrives, with per-mod toggles handled automatically.
- Server lifecycle: Starting, started, stopping, and player join events, with the two start moments kept strictly distinct.
- Mob behaviour hooks: Veto a mob's target or make it keep its distance, covering ordinary mobs and brain-based mobs like the piglin family.
There are also smaller conveniences that add up: interface animation curves and intro animations any mod can drive its own screens with, colour parsing and gradients, grant counters, and smelting lookups. For players who prefer a frictionless setup, the foxygame.net launcher installs MerlinLib in a single click and keeps it updated automatically alongside the rest of your add-on catalog.
Supported Versions and Loaders
MerlinLib is designed for modern Minecraft releases and follows the loader conventions of the platform it targets, so you should confirm the exact Minecraft version and mod loader listed on the project page before adding it to a pack. Because the library is also a client-side mod, its configuration screen and join notice page ship inside the same jar. That means even a mod that only wants the registration API still installs just one file, but it must be present on both the client and the server.
How to Install MerlinLib
Installation is straightforward for developers and players alike. Place the jar in your mods folder on both sides, then add it as a dependency in your project and call MerlinApi. When you download MerlinLib, check that the build matches your Minecraft version and loader. Configuration lives in config/MerlinLib/*.json for content and config/MerlinLib/client.toml for client switches; the in-game configuration screen opens from the mod list and applies changes on save.
For players running modpacks, the foxygame.net launcher also handles version compatibility checks, so the MerlinLib build you get always matches the Minecraft version you are launching.
Why It Belongs in Your Toolkit
MerlinLib is released under CC0 1.0 Universal, meaning you can use it freely in any project without licensing headaches. If you are a mod author tired of rewriting the same registration boilerplate, or a pack maker looking for a dependable foundation, MerlinLib for Minecraft offers a clean, documented API that grows with your content. Grab the latest build, drop it in, and spend your time on the fun parts of modding instead of the plumbing.
--- **Update Nov 30, 2026:** Added 19 files for version 26.3, 26.2, 26.1.2, 26.1.1, 26.1, 1.21.1, 1.20.1 (NeoForge, Fabric, Forge).