Carbon Config 是一个配置库,最初为 IC2Classic 开发,现已实现开源。
Carbon Config 的理念在于提供一种更灵活、更简单、更稳定、更简洁且功能丰富的配置实现方案。
Carbon Config 由两个模块组成:
- Config 模块,一个独立的 Java 库
- GUI 模块,一个 Minecraft 模组
GUI 模块开箱即用,同时支持 CarbonConfig 和 Forge Config。
详细的功能列表请参见 此处
以下是部分功能介绍:
-
复合配置(Compounds):
数据可以通过复合结构进行可视化展示,而非原始字符串。

-
建议(Suggestions):
可以为“默认值”提供建议,以提升用户体验的流畅度。

-
多人游戏支持:
你可以编辑任何服务端配置,而不仅仅是“仅限服务器”的配置。

-
客户端到服务端配置:
在多人游戏中,玩家可以拥有自己的独立设置,并且可以轻松区分。
-
延迟加载配置:
如果配置加载较早但条目是“后期注册”的,这并非问题,因为配置会在注册时进行解析。
-
注册表可视化:
如果是物品/方块/流体/药水/附魔/颜色,它们会在 GUI 中获得特殊的可视化展示。
-
背景皮肤系统:
如果不喜欢当前的背景?只需从提供的精选选项中选择更换即可。总有一款适合你!

-
Minecraft 游戏规则支持:
你可以编辑当前世界/服务器的游戏规则,或者现有世界的规则,而无需打开它们。这也终于赋予了 Fabric 版本实际用途。

Carbon Config is a Config Library first Developed for IC2Classic and now made a Open Source implementation.
The idea behind Carbon Config is to have more customizable, simpler, more stable, cleaner and feature rich implementation of a config.
Carbon Config is built out of 2 Modules.
- The Config module, which is a standalone Java Library
- The GUI module, which is a Minecraft mod
The GUI supports both CarbonConfigs and Forge Configs right out of the gate.
A detailed Feature list can be found here
To list a few of its features:
-
Compounds:
Data can be visualized via Compounds instead of raw Strings.

-
Suggestions:
Suggestions can be provided to the user in form of "default values" to make the user experience much more smooth.

-
Multiplayer Support:
You can edit "Any" Server sided config too, not just "server only configs"

-
Client to Server Configs:
Players can have their own settings in a Multiplayer instance and they can be easily distinguished.
-
Late Loading Configs:
If the config loads early but entries are "registered" late, that isn't a problem since the configs get parsed as they are registered.
-
Registry Visualization:
If it is Items/Block/Fluids/Potions/Enchantments/Colors get all visualized specially in the GUI.
-
Background Skin System:
If you don't like the current background? Simply change it to one of the curated choices provided. There should be something for everyone!

-
Minecraft gamerule support:
You can edit game rules of your current world/server or existing Worlds without having to open them. Which finally gives a use to the fabric version

评论 0
登录后参与评分
还没有评论,来抢沙发吧