HomeJavaModsMoff's AddonAPI-DynLoad
Moff's AddonAPI-DynLoad
ModsJava

Moff's AddonAPI-DynLoad

by mofumofumoffy · on Modrinth

A library mod that provides an API for dynamically loading objects in addon mods based on the mods loaded by Forge.

⬇ Download on Modrinth

AddonAPI

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.

Supported Version

Main Features

Creating Modules

  1. Create a module class by extending AddonModule.
  2. Create a module provider by extending AddonModuleProvider and calling addRawModules() within the registerRawModules() method.
  3. Call AddonModuleRegistry.INSTANCE.LoadModule() in the constructor of your addon.

Using compat Settings

In data pack recipes, use the following format:

{
  "type": "YOUR_RECIPE_TYPE",
  "conditions": [
      {
        "type": "addonlib:mods_available",
        "required_raw_module": "YOUR_RAW_ADDON_MODULE_NAME"
      }
    ],
    ...
}
Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more