Moff's AddonAPI-DynLoad
ModA library mod that provides an API for dynamically loading objects in addon mods based on the mods loaded by Forge.
Description
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"
}
],
...
}
Compatibility
Mod Loaders
Game Versions
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
Create Blue Skies Compat
Adds compatibility recipes & items between Create and Blue Skies
ProjectE Aether Addon
Adds new content that bridges ProjectE and Aether 2.
Round's Invisible Frames
Easily toggle invisibility on your item frames by sneaking.
Only Hammers And Excavators
A simple mod that adds various type of hammers & excavators, that mine 3x1 area
HoloInventory
HoloInventory
Custom Stars [Fabric]
Configurable star size, count, and color