Back to 9Minecraft
Wiki 9Minecraft Wiki 9Minecraft
Moffs Addonapi Dynload Wiki › Guides › Set Up Compatibility Sections in Your Addon Config

Set Up Compatibility Sections in Your Addon Config

Add a Compat Section

The mod automatically adds a compat section to your addon's configuration file. This section lets you define which modules should load for each target mod.

Structure Your Config

Your addon config will include entries like:

`

compat {

target_mod_id {

enabled = true

modules = ["module_name_1", "module_name_2"]

}

}

`

Enable or Disable Per-Mod Content

Set enabled = true to activate features for a specific mod, or false to skip them. List the module names that should load only when that mod is present.

Override Defaults

Players can edit these settings to customize which cross-mod features they want. If a target mod is missing, its entire compat section is ignored, and your game starts without errors.

Test Your Setup

After configuring, remove or add mods and restart. Verify that only the intended modules load for each scenario.