ModsFinder

XunLib

by Xun

XunLib is a shared library by Xun that other mod developers can use for common tasks, registration and configuration.

FabricForgeNeoForgeClient and serverMIT LicenseOpen source1.21 – 1.21.1

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

  1. Registration wrapper

    A registration system wraps around the NeoForge and Fabric registries, so one code path can register content on both loaders.

  2. Config screen

    A config system ships with a built-in screen, letting other mods expose their options to players in the game.

  3. GUI components

    A small set of interface components is included for mods that need common screens and widgets.

  4. Tool and armor sets

    Ready-made tool and armor sets are available as building blocks for other mods that want them.

  5. 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.

1.21.11.21.1-3.2.0+fabric1.21-1.6.21.21.1-3.2.0+neoforge
1.211.21-2.1.51.21-1.6.21.21-2.1.5
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Requirements

Dependencies declared by the latest file for each loader.

Required 1

Fabric APILightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain.
Required

Optional 1

?
Name not publishedSummary not published
Optional

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

Full comparison

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.

ModLoadersGame versionsEnvironmentUpdated
XunLibFabric, Forge and NeoForge1.21 – 1.21.1Client and server2026-10-12
C-erva CoreFabric1.21.11Client and server2026-06-19
InterdimensionalLibFabric and Quilt1.21 – 1.21.1Client and server2026-05-10
CyanLibFabric1.17 – 26.3Client or server, optional2026-09-23

Questions

Does XunLib need Fabric API?

Yes. Fabric API is a required dependency on Fabric. XunLib is also published for Forge and NeoForge, which do not need it.

Must XunLib be installed on the server?

Yes. The server and every player need the mod installed.

Which loader file should be chosen for XunLib?

Pick the file that matches the loader in use: Fabric, Forge or NeoForge. The latest Forge file is 1.21-1.6.2 for 1.21.1, and the Fabric and NeoForge files are 3.2.0 for 1.21.1.

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

All projects

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).
Xun, on the Modrinth page

Official listing

Owner
Xun
Published
2025-04-21
Updated on Modrinth
2026-10-12
Facts verified
2026-10-15

Tags