
ModsJava
XunLib
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
Overview
XunLib is a lightweight yet powerful utility library designed to simplify mod development by handling repetitive tasks and offering robust, reusable systems. From inventory management to spatial tools, it provides flexible APIs to minimize boilerplate.
Features
Inventory Utilities
- Insert/extract items, validate stacks, and check container states.
- Armor slot validation for materials/types.
- Convert grid positions to slot indices.
Fuzzy Item Matching
- Compare items by count, enchantments, or custom properties.
- Configurable ignore rules (e.g., ignore durability or Data components).
Smart Effect Application
- Intelligently extend/upgrade existing effects or apply new ones.
Color & Spatial Tools
- Convert between RGB/HSL/HSV and blend colors dynamically.
- Generate shapes (discs, spheres, hollow cubes) and check spatial bounds.
Registration System
- Adding custom items, blocks, and entities in the common module to ease multi-loader development.
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.21, 1.21.1
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Verified by MCModsHub
- Ships as xunlib-neoforge-1.21-2.1.5.jar — drop this file into the mods folder
- Download size: 100 KB
- Download link checked 31 Aug 2026 — working
These come from our own check of the pack file, not from the source page.