All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Moff's AddonAPI-DynLoad

Moff's AddonAPI-DynLoad

by mofumofumoffy • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

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

  • Forge for Minecraft 1.20.1

Main Features

  • Dynamically loads registered modules according to the ModList.
  • Adds a compat section to addon configs, which can be configured per target mod.
  • Provides a recipe condition that determines whether to load a recipe based on the compat config.
  • Includes a template Mixin plugin for detecting mod load status.

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"
      }
    ],
    ...
}

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.1
Neoforge
1d ago 1
1.20.1
Forge
1d ago 1
1.20.1
Forge
1d ago 1
1.20.1
Forge
1d ago 1
1.20.1
Forge
1d ago 1
1.20.1
Forge
1d ago 1
## Features
The functionality of AddonAPI 2.1.0 for Forge 1.20.1 has been ported to NeoForge 1.21.1.
## Changes
  • AddonModule has been separated into CommonAddonModule (server-side) and ClientAddonModule (client-side).
  • When calling, please use AddonModuleRegistry.INSTANCE.loadCommonModule/loadClientModule appropriately.
  • RawAddonModule is now a Builder expression; please create it using RawAddonModule.builder(...). ... .build().
  • Added priority for loading modules. This allows modules such as JEI to be loaded with a delay.
  • Ensured compatibility with 2.0.0-SNAPSHOT.
  • Fixed one minor bug.
## Features
  • Changed AddonModule to an interface
  • Output loaded modules to the log
  • Added a utility method to determine whether a module is loaded
  • Changed the way ModsAvailableCondition is used
Usability improvements (please wait a little longer for details)
[1.2.0] AddonAPI 1.2.0 by mofumofumoffy on Oct 18, 2026
Download
  • Update: forge47.4.0(can also use 47.3.x)
  • Fixed: the server side was calling client side process.
[1.1.0] AddonAPI 1.1.0 by mofumofumoffy on Oct 18, 2026
Download
  • NOTE: HAVE A BUG IN SERVER SIDE!**

  • transferred from github
  • add compat conditions
Moff's AddonAPI-DynLoad Icon
Download Moff's AddonAPI-DynLoad
Select game version
Select platform