关于 Knight Lib 模组

KnightLib 是一个多加载器实用库,旨在消除代码重复,并为每个模组都倾向于从头重新实现的系统提供简洁的实现。
● 该库完全兼容 Forge、NeoForge(1.21.1+)和 Fabric,基于 Jared 的多加载器模板构建。
● 该模组包含少量默认禁用内容。任何希望使用这些内容的模组,都必须在其实现中启用它。因此,换句话说,除非外部模组明确指定,否则该模组本身不会做任何事情。
如有任何问题、疑问、贡献、关于内容/模组的新想法等,你可以加入我们的官方 Discord 并在相应频道中留言。
包含内容
网络 每个模组的 S2C/C2S 数据包通道,带有简单的发送/接收 API
自动配置 TOML 配置,带有自动生成的游戏内 GUI、热重载,以及 Configured/ModMenu(fabric)兼容性
事件总线 一个通用事件系统,抽象了对各自加载器的调用,因此一切都可以在 common 包中管理。
Automaton AI 用于复杂实体 AI 行为的有限状态机系统。
OBB 碰撞箱 与各个模型骨骼关联的定向包围盒(OBB),以更动态地管理碰撞箱。
相机抖动 用于管理特定玩家相机抖动的 API,带有多个配置级别。
自定义 Boss 栏 允许为你想要的实体指定并(实时)配置自定义 Boss 栏。
过场动画 游戏内过场动画编辑器,会自动导出所需的 JAVA 代码,以便你在任何地方使用它(仅在开发模式下可用)。
音乐提供器 在自定义条件下为实体循环播放并配置音乐曲目,例如 Boss 音乐处理。
后处理着色器 用于后处理着色器的实用工具,包括多目标(实验性)通道。
动画与渲染 包含动画和渲染引擎,支持缓动、molang 和基岩版(geo/geckolib)格式等,作为原版管线的扩展运行。
生物群系生成 易于使用的 API,用于按生物群系注册实体生成。
战利品表 用于修改战利品表(实体、箱子等)的辅助工具。
持久音效 与实体、物品和方块绑定的循环音效,无需担心音效重叠。
实体数据 用于快速访问实体持久数据的 API。
附件 用于将持久数据附加(因此得名)到任何实体的 API,其中信息会自动同步(S2C)。
注册系统 增强的通用注册辅助工具,用于方块、物品、实体、地物等。
额外实用工具 用于数学、颜色、缓动等的额外实用工具。
面向开发者
请参阅 GitHub 上项目 wiki 中的安装说明。

要报告错误或建议功能,或提出任何一般性问题,请加入我们的 Discord 服务器或通过 issues 报告!
如何安装 Knight Lib
With Millida Launcher
Install Millida Launcher
The launcher is free: download it at millida.net/launcher and sign in with any nickname.
Click “Install” on this page
The launcher opens and installs the mod for Minecraft 1.20–1.21.1 on Fabric, Forge or NeoForge automatically.
Launch the game
A profile with it appears in the launcher: click “Play”.
Manually
Install Fabric, Forge or NeoForge
The loader must match the game version of the mod file, for example Minecraft 1.21.1. After installing it, a separate profile appears in your launcher.
Download the file for your version
In the version list above, pick the file knightlib-neoforge-1.21.1-2.0.3.jar (1.0 MB) for your game version and loader.
Put it in the mods folder
The folder is inside .minecraft (Windows: %appdata%\.minecraft\mods). If it does not exist, create it.
Launch the loader profile
Open “Mods” in the main menu: Knight Lib should be in the list.
Minecraft 1.21.1 runs on Java 21: with a different Java version the game may close right after launch.
版本
含依赖项
| Minecraft | 加载器 | 文件 | 日期 | 操作 |
|---|---|---|---|---|
| 1.21 | NeoForge | [NEOFORGE] Knight Lib 2.0.3-1.21.11 MB 12 | ||
| 1.21 | Fabric | [FABRIC] Knight Lib 2.0.3-1.21.11.2 MB 2 | ||
| 1.20.1 | Forge | [FORGE] Knight Lib 2.0.3-1.20.11 MB 21 |
常见问题
Which Minecraft versions does Knight Lib work on?
There are files for 1.21.1, 1.21, 1.20.1, 1.20. The newest is 1.21.1.
Is Knight Lib for Forge or Fabric?
There are files for Fabric: 1.21–1.21.1, for Forge: 1.20–1.20.1 and for NeoForge: 1.21–1.21.1.
Does Knight Lib need other mods?
The author lists no required dependencies: the Fabric, Forge or NeoForge loader is enough.
Which Java does Knight Lib need?
Minecraft 1.21.1 runs on Java 21. If the game closes right after launch, the usual cause is the wrong Java version in the profile settings.
Where can I download Knight Lib safely?
On this page: the file knightlib-neoforge-1.21.1-2.0.3.jar (1.0 MB) is stored on Millida’s server, with no link shorteners. SHA-1 checksum: 8408f403c2bd56abbe1a2cd29c6b75bc518b3c4c.
评价
成为第一个评价 Knight Lib 的人

