YetAnotherConfigLib
又一个配置库,不然呢,你还期待什么?
这个模组到底为什么存在?
这个模组的诞生是为了填补 Fabric 模组开发领域在这方面的空白。现有的主流配置库无法满足我的期望:
- Cloth Config API:它已经停止更新了。 Cloth 的开发者已经明确表示,他们很可能不会再添加新功能了。他们不想再碰它了。(来源)
- SpruceUI:它不是为配置而设计的。 因此它的设计显得杂乱。更多细节见此问题。
- OwoLib:它侧重于内容。 除了配置之外它还做了许多其他事情,这让它的体积增加了。
如你所见,遗憾的是它们都存在各自的缺陷,而这正是 YetAnotherConfigLib 的用武之地。
YACL 好在哪里?
YACL 拥有后见之明。在开发这个全新配置库的过程中,我可以确保它做对每一件事:
- 简单的 API。 YACL 从 Sodium 的内部配置库中汲取了灵感。
- 风格与 Minecraft 融为一体。 YACL 的 GUI 设计旨在完美融入游戏。
功能
YACL 拥有大量配置功能:
- 自定义控件小部件
- 如果默认控件集不满足你的需求,可以创建你自己的独特“控制器”
- 丰富的描述
- 可点击、可悬停的文本,由原版 Text 组件系统驱动
- WebP(包括动态)图片预览
- 可自定义的富渲染区块,用于替换图片
- 同一类型支持多种控制器:
- 数字可使用滑块或输入框
- 字符串可使用下拉菜单、循环切换器或原始文本输入框
- 布尔值可使用复选框或 ON/OFF 文本显示
- ……还有更多!
- 功能齐全的颜色选择器
- 支持键盘操作的完全无障碍访问(针对 Controlify 使用进行了优化)
- 通过标签页(分类)和可折叠分组实现高度条理化
- 内置序列化/反序列化技术,让你跳过容易出错的配置代码
- 提供完整的 Kotlin DSL 替代方案
使用方法
Wiki 包含关于如何使用 YACL 的完整文档。
截图

许可证
本模组采用 GNU 宽通用公共许可证 v3.0。
YetAnotherConfigLib
Yet Another Config Lib, like, what were you expecting?
Why does this mod even exist?
This mod was made to fill a hole in this area of Fabric modding. The existing main config libraries don't achieve what I want from them:
- Cloth Config API: It's stale. The developer of cloth has clarified that they are likely not going to add any more features. They don't want to touch it. (citation)
- SpruceUI: It isn't designed for configuration. In this essence the design feels cluttered. Further details available in this issue.
- OwoLib: It's content focused. It does a lot of other things as well as config, adding to the size.
As you can see, there's sadly a drawback with all of them and this is where YetAnotherConfigLib comes in.
How is YACL better?
YACL has the favour of hindsight. Whilst developing this fresh library, I can make sure that it does everything right:
- Easy API. YACL takes inspiration from Sodium's internal configuration library.
- It's styled to fit in Minecraft. YACL's GUI is designed to fit right in.
Features
YACL has a ton of configuration features:
- Custom control widgets
- Create your own unique "controller" if the default set does not suit your needs
- Rich descriptions
- Clickable & hoverable text, powered by vanilla's Text component system
- WebP (including animated) image previews
- Custom rich-renderable section to replace image
- Multiple controllers for the same type:
- Sliders or fields for numbers
- Dropdowns, cyclers, or raw text fields for strings
- Tickboxes or ON/OFF text display for booleans
- ...and more!
- Fully-featured color picker
- Accessible with full compatibility for keyboard control (optimised for Controlify usage)
- High organisation with tabs (categories) and collapsable groups
- Built-in serialization/deserialization techniques so you can skip the error-prone config code
- Full alternative Kotlin DSL
Usage
The wiki contains a full documentation on how to use YACL.
Screenshots

License
This mod is under the GNU Lesser General Public License, v3.0.
下载 另一个配置库 (YACL)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 另一个配置库 (YACL)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 另一个配置库 (YACL)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 另一个配置库 (YACL)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 另一个配置库 (YACL)
下载 另一个配置库 (YACL)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 另一个配置库 (YACL)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 另一个配置库 (YACL)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 另一个配置库 (YACL)
下载 另一个配置库 (YACL)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
YetAnotherConfigLib 3.9.10
3.9.10 支持目标
| Fabric | NeoForge | Forge | |
|---|---|---|---|
| 26.1 | ❌ | ❌ | ❌ |
| 26.2 | ❌ | ❌ | ❌ |
| 26.3 | ❌ | ❌ | ❌ |
| 26.4 | ✅ | ❌ | ❌ |
更新内容
- 移植至 26.4-snapshot-7
YetAnotherConfigLib 3.9.9
3.9.9 目标版本
| Fabric | NeoForge | Forge | |
|---|---|---|---|
| 26.1 | ❌ | ❌ | ❌ |
| 26.2 | ❌ | ❌ | ❌ |
| 26.3 | ❌ | ❌ | ❌ |
| 26.4 | ✅ | ❌ | ❌ |
更改
- 移植到 26.4-snapshot-3
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧