libnine
by Phanta
libnine is a Forge library for 1.12.2 that provides shared boilerplate code used by other content mods.
What it does
Content mods that depend on libnine get a collection of common building blocks from one place. The library bundles code that several projects by its author had each needed, instead of repeating it in every mod. Its parts include NBT serialization generated from annotated fields, a set of prefab capability implementations, a generic recipe registry, and a GUI component system with the matching sync code. Parametric item models that depend on item stack state are covered as well.
libnine runs on client and server, so both sides need it when a dependent mod is installed. Files are published for Forge only, for 1.12.2 alone. The latest Forge file is 1.2.2, dated 2025-07-20, and the first release dates from 2023-10-25. The project is open source under the MIT License, with public source code and an issue tracker. Two catalog mods, Tinkers' Evolution and ALGANE, list it as a requirement.
Key features
NBT serialization from annotations
Fields marked with annotations are turned into NBT byte stream serializers automatically, so mods avoid writing that code by hand.
Capability implementations
A set of ready-made capability implementations covers common cases that content mods otherwise code themselves.
Generic recipe registry
One registry handles recipes for different kinds of machines and crafting setups, under a single system.
GUI components with sync code
Interface components come with the code that keeps their state synchronized between server and client.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Required by 2 mods
Use cases
Who it’s for: Mod developers working on 1.12.2 Forge content who want shared utilities instead of their own copies. Players reach libnine only through the mods that depend on it.
Questions
Which mods require libnine?
Does libnine need to be installed on both sides?
Is libnine available for other Minecraft versions?
In the catalog
libnine is one of 3,514 Library mods on ModsFinder, and one of 1,576 Library mods for Forge. 2,920 mods support Minecraft 1.12.2.
More from Phanta
Similar mods
Official listing
- Modrinth page
- modrinth.com/mod/libnine
- Owner
- Phanta
- Published
- 2023-10-25
- Updated on Modrinth
- 2025-07-20
- Facts verified
- 2026-10-15
