ModsFinder

Knight Lib

by Xylonity

Knight Lib is a multiloader utility library that supplies shared systems other mods would otherwise write from scratch, including networking, configuration and animation.

FabricForgeNeoForgeClient and serverGNU General Public License v3.0 onlyOpen source1.19 – 1.21.1

What it does

Knight Lib provides common code for mods on Fabric, Forge and NeoForge. Its networking helpers let a mod define its own server-to-client and client-to-server packet channels with a simple send and receive API. An event bus abstracts loader-specific calls so mod code can be written once in a shared package. Its Auto Config system reads TOML files, generates an in-game settings screen, supports hot reloading, and offers compatibility with the configuration screens available on Fabric.

Other systems cover entities and effects. Automaton AI offers a finite state machine for complex entity behavior, and OBB hitboxes attach oriented bounding boxes to model bones. The animation and rendering engine extends the vanilla pipeline with easings, Molang and the Bedrock geo format. Several components are disabled by default, and a mod that wants them must enable them in its own implementation.

Required by Companions! and Clockwork, Knight Lib is published for seven release versions, 1.19 – 1.21.1, and runs on client and server. The code is under the GNU General Public License v3.0 only, so the project is open source.

Key features

  1. Per-mod packet channels

    Each mod can open its own server-to-client and client-to-server packet channels through a simple send and receive API.

  2. Auto-generated config screens

    TOML config files produce an in-game settings screen automatically and reload when edited while the game runs.

  3. Entity state machines

    Automaton AI provides a finite state machine for complex entity behavior, with states and transitions defined per entity.

  4. Bone-linked hitboxes

    Oriented bounding boxes follow individual model bones, so hitboxes move with animated parts of an entity.

  5. Persistent entity data

    Attachments store persistent data on any entity and sync it to clients automatically, and Entity Data gives quick access to that data.

Compatibility

Latest build for each game version and loader.

1.21.12.0.51.2.02.0.5
1.212.0.51.2.02.0.5
1.20.12.0.52.0.5Not available
1.202.0.52.0.5Not available
1.19.2Not available1.2.0Not available
1.19.1Not available1.2.0Not available
1.19Not available1.2.0Not available
ReleaseBetaAlphaNot available

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

Required by 2 mods

Use cases

Mod developers

Developers reuse networking, configuration and event code instead of rebuilding it for each loader.

Boss encounters

Custom boss bars, music providers and camera shake can be combined to script a boss fight.

Who it’s for: Mod developers who build on Fabric, Forge or NeoForge, and players who install a mod that depends on Knight Lib.

How it compares

Full comparison

Cutscene API is also open source under the MIT License and runs on Fabric, Forge, NeoForge and Quilt for 1.20 – 1.21.4, with client and server environment. Common Network offers similar packet helpers under the MIT License for 1.16.5 – 26.3 on the same four loaders. Solo Bridges is a Forge and NeoForge option, not open source, for 1.16.5 – 1.21.4.

ModLoadersGame versionsEnvironmentUpdated
Knight LibFabric, Forge and NeoForge1.19 – 1.21.1Client and server2026-10-15
Cutscene APIFabric, Forge, NeoForge and Quilt1.20 – 1.21.4Client and server2025-03-20
Common NetworkFabric, Forge, NeoForge and Quilt1.16.5 – 26.3Client and server2026-09-19
Solo BridgesForge and NeoForge1.16.5 – 1.21.4Client and server2025-12-10

Questions

Does Companions! need Knight Lib installed?

Yes. Companions! requires Knight Lib, so the library must be present on the same loader alongside it.

Which loaders does Knight Lib support?

Knight Lib is published for Fabric, Forge and NeoForge, with the latest files for 2.0.5 on 1.21.1 and 1.20.1.

Must Knight Lib be installed on the server?

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

In the catalog

Knight Lib 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 Xylonity

All projects

Similar mods

What the author says

KnightLib is a multiloader utility library designed to eliminate code duplication and provide clean implementations of systems that every mod tends to reinvent from scratch. ● This library is fully compatible with Forge, NeoForge (1.21.1+), and Fabric, built on Jared's multiloader template.
Xylonity, on the Modrinth page

Official listing

Owner
Xylonity
Published
2024-09-21
Updated on Modrinth
2026-10-15
Facts verified
2026-10-15

Tags