Skip to content
RedstoneParadox edited this page Dec 13, 2019 · 3 revisions

Paradox Config adds several conditions for testing options within a LibCD .mcmeta file: pconfig:option and pconfig:contains

pconfig:option

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": "<="
}

pconfig:contains

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!" ]
}
Clone this wiki locally