-
Notifications
You must be signed in to change notification settings - Fork 2
LibCD
Paradox Config adds several conditions for testing options within a LibCD .mcmeta
file: pconfig:option
and pconfig:contains
Used to compare an option to a specified value.
config: The modid of the config and the path to the specific file in the mod's config folder. option: The full key of the config option. value: The value to compare the option to (option == value). predicate: The comparison operator to use; defaults to "==" if omitted. Possible values: "==", "!=", "<", ">", "<=", ">="
"pconfig:option": {
"config": "foo:bar.json",
"option": "baz.biz",
"value": 10.0,
"predicate": "<="
}
Used to test if a collection-option contains all of the specified values.
config: The modid of the config and the path to the specific file in the mod's config folder. option: The full key of the config option. contains: The array of objects to test if the option contains.
"pconfig:contains": {
"config": "foo:bar.json",
"option": "greetings.english",
"contains": [ "Hello!", "Howdy!", "Greetings!" ]
}