Sprache

Moff's AddonAPI-DynLoad

Moff's AddonAPI-DynLoad

Modrinth

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

186.6k Downloads aktualisiert 26d ago
neueste v2.1.0 Modrinth
Forge 1.20.1 – 1.20.1 Library

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

Versionen

Release
2.1.0
forge · 1.20.1 · 26d ago
- 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…
1.3k
Release
2.0.0
forge · 1.20.1 · 3mo ago
## Features - Changed AddonModule to an interface - Output loaded modules to the log - Added a utility method to determine whether a module is loaded - Changed…
4.7k
Alpha
2.0.0-SNAPSHOT
forge · 1.20.1 · 5mo ago
Usability improvements (please wait a little longer for details)
2.2k
Release
1.2.0
forge · 1.20.1 · 14mo ago
- Update: forge47.4.0(can also use 47.3.x) - Fixed: the server side was calling client side process.
178.2k
Release
1.1.0
forge · 1.20.1 · 14mo ago
**NOTE: HAVE A BUG IN SERVER SIDE!** - transferred from github - add compat conditions
123

Kommentare 0

Noch keine Kommentare. Sei der Erste, der seine Meinung teilt.

Herunterladen Moff's AddonAPI-DynLoad

Dateien werden direkt von der Originalquelle bereitgestellt. Modgrid hostet oder verändert sie nicht.