![Mod Sets](https://media.forgecdn.net/avatars/thumbnails/850/912/256/256/638252747333079853.png)
[崩溃] "type": "type"
Phoupraw opened this issue · 9 comments
config/modsets/rules/example.json
:
{
"text": {
"text": "My first rule set",
"bold": true,
"color": "green"
},
"description": "Awwww",
"rules": [
{
"text": "text",
"description": "tooltip",
"controller": {
"type": "type"
}
}
]
}
crash: minecraft-exported-crash-info-2023-07-25T12-33-49.zip
config/modsets/rules/mods_group_example.json
:
{
"text": "The mods group",
"description": "Text Text",
"controller": {
"type": "mods_group",
"collapsed": false,
"mods": [
]
}
}
你的配置不对,type 不能是 type,这个只是示例,不是可以直接使用的
具体的示例是在下方的单个 controller 里的
You config is wrong. Type should not be "type" for controller. The example of rules isn't for running directly.
The actual controller example below showing the correct type.
Or you can take the working example from https://github.com/SettingDust/ModSets/blob/main/example_rules.json
controller 是 rule 的属性,而不是根属性,请参考 https://github.com/SettingDust/ModSets/blob/main/example_rules.json?rgh-link-date=2023-07-25T04%3A44%3A10Z 编写
controller is prop of rule instead of root. Refer to https://github.com/SettingDust/ModSets/blob/main/example_rules.json?rgh-link-date=2023-07-25T04%3A44%3A10Z
*Need json schema for rule json
{
"text": {
"text": "My first rule set",
"bold": true,
"color": "green"
},
"description": "Awwww",
"rules": [
{
"text": "The mods group",
"description": "Text Text",
"controller": {
"type": "mods_group",
"collapsed": false,
"mods": [
]
}
}
]
}
我复制了 https://github.com/SettingDust/ModSets/blob/main/example_rules.json 到config/modsets/rules/mods_group_example.json
,结果
latest.log