Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
Knight Lib

Knight Lib

A library that serves as a bridge between mods.

136.9k
31
Game Mechanics
Library
Utility

Compatibility

Minecraft: Java Edition

1.21.x
1.20–1.20.1
1.19–1.19.2

Platforms

Fabric
Forge
NeoForge

Supported environments

Client and server

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Links

Report issues View source Visit wiki Join Discord server
Donate on Ko-fi

Creators

Xylonity
Xylonity Member
themodderg
themodderg Artist

Details

Licensed GPL-3.0-only
Published 10 months ago
Updated 6 months ago
DescriptionChangelogVersions



This is a shared code library that exposes multiple items without dedicated implementations, thus mods can freely use (or ignore) them for custom features. The library is based on a multiloader template, thus making it fully compatible with loader-specific MDKs and other multiloader templates.

 

What is Knight Lib for? 

Knight Lib is designed for use in any project, either as the foundation for your own mod or as a required dependency for any of my mods. Its primary goals are to eliminate code duplication and provide unified, easy-to-use implementations of common utilities, ensuring compatibility across all mod loaders. 

Within the core components, this library includes:
- A custom tick scheduler without data persistance.
- An Auto Config system available for Fabric and (Neo)Forge, with hotreload support (for Forge it's compatible with mods that add gui config, such as 'Configured'). The config is instantly read upon executing the mod that implements it, thus supporting configurability that was not possible before. It also contains multiple styles to decorate the TOML file.
- A custom boss bar builder to dynamically create and manage either simple or complex boss bars for registered bosses.
- A highly customizable camera shake manager for player cameras, designed for effortless usage.
- A music provider for entities, primarily meant for "Boss" entities. Easy-to-use utility, loops a music instance under certain conditionals.


More functionalities will be added over time, so any suggestion is welcome.


Discord
Geckolib

To report bugs or suggest features, join our Discord server!

 
Developer Information

 If you’re a developer and want to integrate this library into your development environment, see the installation instructions on the project wiki on GitHub.

Modrinth is open source.

main@4b75cb8

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.