XunLib
by Xun
XunLib is a shared library by Xun that other mod developers can use for common tasks, registration and configuration.
What it does
XunLib is mainly a shared library. Its own mods use it, and other mod developers are welcome to use it for utilities such as translations and registries. The code is built around the needs of the author's mods first, so it may not cover every case an outside project needs. The library runs on client and server, so the server and every player need it. Fabric API is required on Fabric, and XunLib is published for Fabric, Forge and NeoForge.
Among its parts are a common registration system that wraps the NeoForge and Fabric registry APIs, a settings system that opens its own screen in the game, a few GUI components, and tool and armor sets. Many smaller utilities are included as well. XunLib is released under the MIT License and is open source, with public source code, an issue tracker and a wiki. Builds cover 1.21 – 1.21.1, and the latest files target 1.21.1.
Key features
Registration wrapper
A registration system wraps around the NeoForge and Fabric registries, so one code path can register content on both loaders.
Config screen
A config system ships with a built-in screen, letting other mods expose their options to players in the game.
GUI components
A small set of interface components is included for mods that need common screens and widgets.
Tool and armor sets
Ready-made tool and armor sets are available as building blocks for other mods that want them.
Common utilities
Translation helpers and other small utilities cover tasks that many mods repeat, so each developer does not write them again.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Optional 1
Required by 1 mod
Use cases
Who it’s for: Mod developers who want shared utilities, and players who already use one of the Xun mods that require XunLib. Players who only want gameplay content will not find it in XunLib alone.
How it compares
C-erva Core is a Fabric-only library for Minecraft 1.21.11, under the MIT License, and it is not open source. InterdimensionalLib is open source under the MIT License and covers 1.21 – 1.21.1 on Fabric and Quilt, so it overlaps with XunLib in its version range but adds Quilt support that XunLib lacks. CyanLib is open source under the GNU General Public License v2.0 only and works on either side, and neither needs it, which differs from the client and server environment of XunLib.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| XunLib | Fabric, Forge and NeoForge | 1.21 – 1.21.1 | Client and server | 2026-10-12 |
| C-erva Core | Fabric | 1.21.11 | Client and server | 2026-06-19 |
| InterdimensionalLib | Fabric and Quilt | 1.21 – 1.21.1 | Client and server | 2026-05-10 |
| CyanLib | Fabric | 1.17 – 26.3 | Client or server, optional | 2026-09-23 |
Questions
Does XunLib need Fabric API?
Must XunLib be installed on the server?
Which loader file should be chosen for XunLib?
In the catalog
XunLib is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 32,366 mods support Minecraft 1.21.1.
More from Xun
Similar mods
What the author says
It’s mainly a shared library for my own mods, but other mod devs are welcome to use it if they find something useful. Just keep in mind it’s built around what I actually need first. For detailed API documentation, examples, and configuration guides, see the XunLib Wiki (in work).
Official listing
- Modrinth page
- modrinth.com/mod/xunlib
- Owner
- Xun
- Published
- 2025-04-21
- Updated on Modrinth
- 2026-10-12
- Facts verified
- 2026-10-15
