QuLib
QuLib is a library of vector math utilities, Kotlin extensions and random helpers that other Fabric and Forge mods can build on.
What it does
QuLib collects utilities for vector math, bridging the vector types used by Minecraft's code with the Joml library. It includes raycast helpers, Kotlin extensions for Joml and Minecraft math classes, random number extensions, and utilities for calculating aim spread. An expression evaluation library is included as well.
The library also serializes data to NBT through Joml types, so mods that store vectors in saved data can reuse the same conversion code. Builds exist for Fabric, Forge and NeoForge, and the environment is client and server, so the server and every player need it. The Fabric build requires Fabric Language Kotlin, and the Forge build requires Kotlin for Forge. Files cover 1.18.2 – 1.20.4 across seven release versions, with 2.1.21 as the latest file for 1.20.4. OpenCombatUtility (OpenCU) is one of the mods that depends on it.
QuLib is open source under the MIT License and its source code and issue tracker are public. It was first published on 2023-02-08 and last updated on 2025-03-10.
Key features
Vector math library
Vector operations and conversions between the math types used in Minecraft and Joml.
Raycast utilities
Helper methods for raycasts, letting other mods trace along a line through the world.
Kotlin extensions
Kotlin extension functions for Joml and Minecraft math classes, so Kotlin code reads more directly.
Aim spread calculations
Utilities for computing aim spread, useful for weapon and projectile mods.
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
Required by 1 mod
Use cases
Mod development
Developers of Kotlin-based mods can call the vector and random helpers instead of writing their own.
Weapon and aim mods
Mods that need raycasts and spread values can use the aim utilities as a base.
Who it’s for: Mod developers who work with vector math, raycasts or Kotlin in Minecraft, and server owners who run mods that depend on QuLib.
How it compares
Kinecraft is a library that also runs on Fabric, Forge, NeoForge and Quilt, for 1.16.5 – 1.21.5, and is open source under the MIT License. CodeChicken Lib covers Forge and NeoForge for 1.9 – 1.21.1 under the GNU Lesser General Public License v2.1 or later. QuLib's narrower range of 1.18.2 – 1.20.4 covers fewer versions than either of them.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| QuLib | Fabric, Forge and NeoForge | 1.18.2 – 1.20.4 | Client and server | 2025-03-10 |
| Kinecraft | Fabric, Forge, NeoForge and Quilt | 1.16.5 – 1.21.5 | Client or server, optional | 2025-11-09 |
| CodeChicken Lib | Forge and NeoForge | 1.9 – 1.21.1 | Client or server, optional | 2026-07-23 |
Questions
Does QuLib need Fabric Language Kotlin?
Must QuLib be installed on the server?
Which mods depend on QuLib?
In the catalog
QuLib is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 13,907 mods support Minecraft 1.20.4.
More from LubieKakao1212
Similar mods
What the author says
Available for both Fabric and Forge requiring Fabric Language Kotlin and Kotlin For Forge respectively
Official listing
- Modrinth page
- modrinth.com/mod/qulib
- Owner
- LubieKakao1212
- Published
- 2023-02-08
- Updated on Modrinth
- 2025-03-10
- Facts verified
- 2026-10-15
