ModsFinder

QuLib is a library of vector math utilities, Kotlin extensions and random helpers that other Fabric and Forge mods can build on.

FabricForgeNeoForgeClient and serverMIT LicenseOpen source1.18.2 – 1.20.4

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

  1. Vector math library

    Vector operations and conversions between the math types used in Minecraft and Joml.

  2. Raycast utilities

    Helper methods for raycasts, letting other mods trace along a line through the world.

  3. Kotlin extensions

    Kotlin extension functions for Joml and Minecraft math classes, so Kotlin code reads more directly.

  4. Aim spread calculations

    Utilities for computing aim spread, useful for weapon and projectile mods.

Compatibility

Latest build for each game version and loader.

1.20.42.1.212.1.212.1.21
1.20.32.1.212.1.212.1.21
1.20.22.1.212.1.212.1.21
1.20.12.1.212.1.212.1.21
1.202.1.212.1.212.1.21
1.19.42.1.212.1.212.1.21
1.18.2Not available1.18.2-2.0.21Not available
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 Language KotlinThis is a mod that enables usage of the Kotlin programming language for Fabric mods.
Required

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

Full comparison

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.

ModLoadersGame versionsEnvironmentUpdated
QuLibFabric, Forge and NeoForge1.18.2 – 1.20.4Client and server2025-03-10
KinecraftFabric, Forge, NeoForge and Quilt1.16.5 – 1.21.5Client or server, optional2025-11-09
CodeChicken LibForge and NeoForge1.9 – 1.21.1Client or server, optional2026-07-23

Questions

Does QuLib need Fabric Language Kotlin?

Yes, the Fabric build requires Fabric Language Kotlin. The Forge build requires Kotlin for Forge instead.

Must QuLib be installed on the server?

A server running it needs every connecting player to have it too.

Which mods depend on QuLib?

OpenCombatUtility (OpenCU) requires it, so QuLib must be present for that mod to load.

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

All projects

Similar mods

What the author says

Available for both Fabric and Forge requiring Fabric Language Kotlin and Kotlin For Forge respectively
LubieKakao1212, on the Modrinth page

Official listing

Owner
LubieKakao1212
Published
2023-02-08
Updated on Modrinth
2025-03-10
Facts verified
2026-10-15

Tags