
KnightLib 是一个多加载器实用工具库,旨在消除代码重复,并提供每个模组都倾向于从零开始重新发明的系统的干净实现。
● 该库完全兼容 Forge、NeoForge(1.21.1+)和 Fabric,基于 Jared 的多加载器模板。
● 此模组包含少量默认禁用的内容。任何希望使用这些内容(物品、方块、图标等)的模组都必须首先在其实现中启用它们。
如有任何问题、问题、贡献、关于内容/模组的新想法等,您可以加入我们的 官方 Discord 并在相应的频道中留言。
包含内容
网络通信 (Networking)
每个模组的 S2C/C2S 数据包通道,配备简单的发送/接收 API
自动配置 (Auto Config)
TOML 配置文件,带有自动生成游戏内 GUI、热重载以及 Configured/ModMenu(Fabric)兼容性
事件总线 (Event Bus)
一个通用事件系统,抽象了对各自加载器的调用,以便所有内容都可以在公共包中进行管理。
Automaton AI
用于复杂实体 AI 行为的有限状态机系统。
OBB 碰撞箱 (OBB Hitboxes)
链接到单个模型骨骼的方向包围盒 (OBB),以更动态地管理碰撞箱。
镜头晃动 (Camera Shake)
API 用于为特定玩家管理镜头晃动,具有多个级别的配置选项。
自定义Boss条 (Custom Boss Bars)
允许为所需的实体指定并实时配置自定义 Boss 条。
过场动画 (Cutscenes)
游戏内过场动画编辑器,可自动导出所需的 JAVA 代码以在任意位置使用(仅在开发模式下可用)。
音乐提供者 (Music Provider)
在自定义条件(如 Boss 音乐处理)下循环和配置实体的音乐轨道。
后期着色器 (Post Shaders)
用于后期处理着色器的实用工具,包括多目标(实验性)渲染通道。
动画与渲染 (Animation & Rendering)
包含一个动画和渲染引擎,支持缓动函数、Molang 以及 Bedrock(geo/geckolib)格式等,作为原版管线的一个扩展工作。
生物群系生成 (Biome Spawns)
易于使用的 API,用于按生物群系注册实体生成。
战利品表 (Loot Tables)
用于修改战利品表的辅助工具(适用于实体、宝箱等)。
持久音效 (Persistent Sounds)
与实体、物品和方块绑定的循环音效,无需担心音效重叠问题。
实体数据 (Entity Data)
API,用于快速访问实体的持久化数据。
附件 (Attachments)
API,用于将持久化数据附加(因此得名)到任何实体,信息会自动同步(S2C)。
注册系统 (Registrar System)
增强的通用注册辅助工具,用于方块、物品、实体、特性等。
额外工具 (Extra Utilities)
数学、颜色、缓动函数等方面的额外实用工具。
开发者指南
请参阅 GitHub 上的项目 Wiki 中的安装说明。
要报告错误或建议功能,或提出任何一般性问题,请加入我们的 Discord 服务器 或通过 Issue 进行报告!

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.
● This mod includes a small amount of content that is disabled by default. Any mod wishing to use the content (items, blocks, icons, etc.) must first enable it in its implementation.
For any questions, problems, contributions, new ideas about content/mods, and more, you can join our official Discord and comment in the appropriate channels.
What's included
Networking
Per mod S2C/C2S packet channels with a simple send/receive API
Auto Config
TOML config with auto generated ingame GUI, hotreload, and Configured/ModMenu (fabric) compatiblity
Event Bus
A common event system that abstracts calls to their respective loaders, so that everything can be managed in common package.
Automaton AI
Finite state machine system for complex entity AI behavior.
OBB Hitboxes
Oriented Bounding Boxes (OBBs) linked to individual model bones, to manage hitboxes more dynamically.
Camera Shake
API to manage camera shake for specific players, with several levels of configuration.
Custom Boss Bars
Allows to specify and configure custom boss bars (in real time) for the entities you want.
Cutscenes
In-game cutscene editor that automatically exports the desired JAVA code to use it wherever you want (only available in dev mode).
Music Provider
Loops and configures music tracks for entities under custom conditions, such as boss music handling.
Post Shaders
Utilities for post-processing shaders, including multi-target (experimental) passes.
Animation & Rendering
Includes an animation and rendering engine, with support for easings, molang and the bedrock (geo/geckolib) format, among other things, working as an extension of the vanilla pipeline.
Biome Spawns
Easy to use API for registering entity spawns per biome.
Loot Tables
Helpers for modifying loot tables in general (entities, chests, etc.).
Persistent Sounds
Looping sounds tied to entities, items and blocks, without worrying about overlapping sounds.
Entity Data
API for quickly accessing the persistent data of an entity.
Attachments
API for attaching (hence the name) persistent data to any entity, where the information is synched automatically (S2C).
Registrar System
Enhanced common registration helpers for blocks, items, entities, features, etc.
Extra Utilities
Additional utilities for math, colors, easings, etc.
For Developers
See the installation instructions on the project wiki on GitHub.
To report bugs or suggest features, or ask any questions in general, join our Discord server or report them via issues!
下载 Knight Lib
下载 Knight Lib
下载 Knight Lib
下载 Knight Lib
下载 Knight Lib
下载 Knight Lib
下载 Knight Lib
下载 Knight Lib
下载 Knight Lib
下载 Knight Lib
- 修复了 Sodium 在 knightlib 动画纹理第一帧时出现冻结的问题
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧