本项目深受 ThatOrThis 启发
此模组用于在游戏中管理模组加载,适用于 Minecraft Fabric/Quilt/Forge。
对整合包开发者非常有用
规则文件应为 config/modsets/rules 目录下的 JSON 文件。
添加规则并通过 Mod Menu 进入配置界面
完整示例:https://github.com/SettingDust/ModSets/blob/main/example_rules.json
模组集是在 config/modsets/modsets.json 中定义的条目,为字符串到模组ID集合的映射。
具体来说,mods 文件夹中的子文件夹名称将作为其中模组的模组集。而模组ID将作为仅包含自身的模组集。
注意,通过配置定义的模组集会覆盖同名的文件夹/模组ID。
示例:
{
// 这里的 `sodium` 将指向这两个模组。
// 如果禁用此模组集,列表中的模组若存在则不会加载
"sodium": {
"text": "Sodium",
"description": "性能:+++++",
"mods": [
"sodium",
"indium"
]
}
}

每个规则包含一个文本和描述,用于显示你想要的信息。
以及一个用于 YACL 用户界面的控制器
示例:
{
"text": {
"text": "我的第一个规则集",
"bold": true,
"color": "green"
},
"description": "哇哦",
"rules": [
{
"text": "文本",
"description": "描述",
"controller": {
"type": "type" // 注意,这不是有效的控制器类型。请从下面的控制器中获取类型
}
}
]
}
用于在屏幕上显示文本
示例:
{
"text": "标签",
"description": "文本 文本",
"controller": {
"type": "label"
}
}
用于切换单个模组集的开启/关闭
示例:
{
"text": "布尔值",
"description": "文本 文本",
"controller": {
"type": "boolean",
"id": "sodium"
}
}
用于在列表中的模组集之间切换。
适用于存在冲突模组的情况,例如 sodium 和 optifabric。或切换整合包难度时
示例:
{
"text": "循环",
"description": "文本 文本",
"controller": {
"type": "cycling",
"ids": [
// 不要为空
"sodium",
"optifabric"
]
}
}
为模组集中的每个模组分配一个简单的布尔值控制器选项。
示例:
{
"text": "模组组",
"description": "文本 文本",
"controller": {
"type": "mods_group",
// 默认为 true
"collapsed": false,
"ids": [
// 不要为空
"sodium",
"optifabric"
]
}
}
将规则分组,以便可以折叠规则
示例:
{
"text": "规则组",
"description": "文本 文本",
"controller": {
"type": "rules_group",
// 默认为 true
"collapsed": true,
"rules": [ // 不要为空
{
"text": "文本",
"description": "描述",
"controller": {
"type": "label"
}
},
{
"text": "文本",
"description": "描述",
"controller": {
"type": "boolean",
"id": "sodium"
}
}
]
}
}
注意:每个文本和描述都是原始 JSON 文本。
使用 https://www.minecraftjson.com/ 生成文本。
友情链接: 网易我的世界 | 泰拉瑞亚 | ocent云计算 | 米饭Minecraft插件文档 | 友链合作
历史访问人数:198,067 | 历史访问人次:303,469
今日访问人数:4,788 | 今日访问人次:5,220
昨日访问人数:30,537 | 昨日访问人次:36,142
Copyright © 2019-2026 我的世界服务器列表站. All rights reserved.
❤ Powered by GermMC 京ICP备17023959号-6