Moff's AddonAPI-DynLoad
ModrinthA library mod that provides an API for dynamically loading objects in addon mods based on the mods loaded by Forge.
186.6k завантажень оновлено 26d ago
остання v2.1.0 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
- Forge for Minecraft 1.20.1
Main Features
- Dynamically loads registered modules according to the ModList.
- Adds a
compatsection to addon configs, which can be configured per target mod. - Provides a recipe condition that determines whether to load a recipe based on the
compatconfig. - Includes a template Mixin plugin for detecting mod load status.
Creating Modules
- Create a module class by extending
AddonModule. - Create a module provider by extending
AddonModuleProviderand callingaddRawModules()within theregisterRawModules()method. - 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"
}
],
...
}
Версії
Release
2.1.0
- 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…
Release
2.0.0
## Features
- Changed AddonModule to an interface
- Output loaded modules to the log
- Added a utility method to determine whether a module is loaded
- Changed…
Release
1.2.0
- Update: forge47.4.0(can also use 47.3.x)
- Fixed: the server side was calling client side process.

Коментарі 0
Поки немає коментарів. Будь першим, хто поділиться думкою.