A library mod that provides an API for dynamically loading objects in addon mods based on the mods loaded by Forge.
AddonAPI is a library mod that provides an API for dynamically loading objects in addon mods based on the mods loaded by Forge. If a target mod is not loaded, only the extension elements related to that mod are excluded, allowing Minecraft to launch safely.
compat section to addon configs, which can be configured per target mod.compat config.AddonModule.AddonModuleProvider and calling addRawModules() within the registerRawModules() method.AddonModuleRegistry.INSTANCE.LoadModule() in the constructor of your addon.compat SettingsIn data pack recipes, use the following format:
{
"type": "YOUR_RECIPE_TYPE",
"conditions": [
{
"type": "addonlib:mods_available",
"required_raw_module": "YOUR_RAW_ADDON_MODULE_NAME"
}
],
...
}
Conversation