Skip to content

Examples

SettingDust edited this page Sep 19, 2023 · 1 revision
  • Control a set of mods

    • If you gonna to control the mods that id is sodium, lithium, iris with one controller like a boolean

    • config/modsets/rules/my_first_rule.json

      {  
        "$schema": "https://github.com/SettingDust/ModSets/raw/main/rules.schema.json",  
        "text": {  
          "text": "My first rule set",  
          "bold": true,  
          "color": "green"  
        },  
        "description": "Awwww",  
        "rules": [  
          {  
            "text": "My First Mod Set",  
            "description": "Disable them!",  
            "controller": {  
              "type": "boolean",  
              "mod": "my_first_mod_set"  
            }  
          }
        ]  
      }
    • config/modsets/modsets.json

      {  
        "my_first_mod_set": {  
          "text": "My First Mod Set",  
          "description": "How about it?",  
          "mods": [  
            "sodium",  
            "lithium",  
            "iris"  
          ]  
        }  
      }
    • With this two file. You can looking into the config screen of ModSets.

    • Your configured mod set

      • Pasted image 20230919115024
    • You rule controller

      • Pasted image 20230919115039
    • Then, after you disable the controller. The mods in the mod set my_first_mod_set will be disabled when next launching.

      • config/modsets/disabled_mods.json
      [  
          "sodium",  
          "lithium",  
          "iris"  
      ]
Clone this wiki locally