Home›Java›Mods›Moff's AddonAPI-DynLoad Mod (1.21.1, 1.20.1) – Prevent Startup Crashes
Moff's AddonAPI-DynLoad Mod (1.21.1, 1.20.1) – Prevent Startup Crashes
ModsJava

Moff's AddonAPI-DynLoad Mod (1.21.1, 1.20.1) – Prevent Startup Crashes

by Moon

Moff's AddonAPI-DynLoad Mod loads addon features based on the active mods in your game. If a target mod is missing from the game, the mod leaves out only…

⬇ Download

Moff’s AddonAPI-DynLoad Mod loads addon features based on the active mods in your game. If a target mod is missing from the game, the mod leaves out only the parts tied to that missing mod so your game still starts safely. It gives addon projects a clean system to manage optional cross-mod content without causing startup crashes.

Moff's AddonAPI-DynLoad Mod

Features:

How to Use:

  1. Create a module class by extending AddonModule.
  2. Create a module provider by extending AddonModuleProvider and calling addRawModules() inside the registerRawModules() method.
  3. Call AddonModuleRegistry.INSTANCE.LoadModule() in your addon constructor.
  4. Add the module condition to data pack recipes when linking items to optional mods:
{
  "type": "YOUR_RECIPE_TYPE",
  "conditions": [
    {
      "type": "addonlib:mods_available",
      "required_raw_module": "YOUR_RAW_ADDON_MODULE_NAME"
    }
  ]
}

Moff’s AddonAPI-DynLoad Mod Download Links

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

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

Explore more