Fly's Config Lib
Fly 的 Minecraft 模组共享配置库,提供 JSON 配置管理、注册表辅助功能以及 NBT 模式匹配。
特性
- 从 JSON 文件加载和保存模组设置
- 如果不存在配置文件,则自动创建默认配置文件
- 检测磁盘上的配置文件是否被修改,并在不重启的情况下重新加载
- 在重置为默认值之前,使用时间戳备份损坏/腐败的配置文件
- 通过游戏内 ID 查找物品、方块和实体
- 缓存注册表查找结果,使重复查找不会降低速度
- 通过 NBT 数据匹配物品(附魔、自定义名称、已书写书籍的作者等)
- 部分 NBT 匹配 — 只有你指定的标签需要匹配,其余将被忽略
- 精确 NBT 匹配 — 物品必须具有完全指定的标签,不能多也不能少
- 列表 NBT 匹配 — 检查物品是否具有至少一个指定的附魔/标签
- 严格列表匹配 — 检查物品是否具有所有指定的附魔/标签
- 数值 NBT 值无论内部类型如何均可匹配
- 使用精确字符串或正则表达式将配置键映射到值
- 通过捕获组提取匹配字符串的部分内容,并将其重用在对映射的值中
Fly's Config Lib
A shared configuration library for Fly's Minecraft mods providing JSON config management, registry helpers, and NBT pattern matching.
Features
- Load and save mod settings from a JSON file
- Automatically creates a default config file if none exists
- Detects when the config file is edited on disk and reloads it without restarting
- Backs up broken/corrupted config files with a timestamp before resetting to defaults
- Look up items, blocks, and entities by their in-game I
- Caches registry lookups so repeated lookups don't slow things down
- Match items by their NBT data (enchantments, custom names, written book authors, etc.)
- Partial NBT matching — only the tags you specify need to match, the rest are ignored
- Exact NBT matching — the item must have exactly the tags specified, nothing more
- List NBT matching — check if an item has at least one of the specified enchantments/tags
- Strict list matching — check if an item has all of the specified enchantments/tags
- Numeric NBT values match regardless of internal type
- Map config keys to values using either exact strings or regex patterns
- Extract parts of a matched string via capture groups and reuse them in the mapped value
版本游戏版本平台发布时间本站下载
正式版
1.2.0
Fly's config lib 1.2.0
1.21.111.21.10 Fabric 3 个月前 ·
0
1.21.11
1.21.10
1.21.9
1.21.8, 1.21.7, 1.21.6, 1.21.5, 1.21.4, 1.21.3, 1.21.2, 1.21.1
Fabric
3 个月前
0
下载 Fly's config lib
版本:1.2.0
游戏版本:1.21.11、1.21.10、1.21.9 等
平台:Fabric
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
正式版
1.2.0
Fly's config lib 1.2.0
1.20.61.20.5 Fabric 3 个月前 ·
1
1.20.6
1.20.5
1.20.4
1.20.3, 1.20.2, 1.20.1
Fabric
3 个月前
1
下载 Fly's config lib
版本:1.2.0
游戏版本:1.20.6、1.20.5、1.20.4 等
平台:Fabric
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
正式版
1.2.0
Fly's config lib 1.2.0
1.21.111.21.10 NeoForge 3 个月前 ·
0
1.21.11
1.21.10
1.21.9
1.21.8, 1.21.7, 1.21.6, 1.21.5, 1.21.4, 1.21.3, 1.21.2, 1.21.1
NeoForge
3 个月前
0
下载 Fly's config lib
版本:1.2.0
游戏版本:1.21.11、1.21.10、1.21.9 等
平台:NeoForge
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
正式版
1.2.0
Fly's config lib 1.2.0
1.21.111.21.10 Forge 3 个月前 ·
1
1.21.11
1.21.10
1.21.9
1.21.8, 1.21.7, 1.21.6, 1.21.5, 1.21.4, 1.21.3, 1.21.2, 1.21.1
Forge
3 个月前
1
下载 Fly's config lib
版本:1.2.0
游戏版本:1.21.11、1.21.10、1.21.9 等
平台:Forge
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
正式版
1.2.0
Fly's config lib 1.2.0
1.20.61.20.5 Forge 3 个月前 ·
0
1.20.6
1.20.5
1.20.4
1.20.3, 1.20.2, 1.20.1
Forge
3 个月前
0
下载 Fly's config lib
版本:1.2.0
游戏版本:1.20.6、1.20.5、1.20.4 等
平台:Forge
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
正式版
1.1.0
Fly's config lib 1.1.0
1.20.61.20.5 Forge 8 个月前 ·
1
1.20.6
1.20.5
1.20.4
1.20.3, 1.20.2, 1.20.1, 1.20
Forge
8 个月前
1
下载 Fly's config lib
版本:1.1.0
游戏版本:1.20.6、1.20.5、1.20.4 等
平台:Forge
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
Woot Revived
pharuxtan
一个用于收集生物掉落物的多区块模组。
生物科技
349
模组
玉Jade ?
Snownee
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
实用前置
339
模组
物品管理器Just Enough Items (JEI)
mezz
查看物品与配方
前置实用
239
模组
KubeJS
Lat
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
前置实用
239
模组
AAA Particles
ChloePrime
适用于 MC 1.18+ 的 Effekseer 加载器
前置装饰
186
模组
WTHIT
deirn
那是什么?一个 Waila/Hwyla 的分支。
前置实用
165
评论 0
登录后参与评分
还没有评论,来抢沙发吧