Moff’s AddonAPI-DynLoad Mod FAQ
10 questions players actually ask, answered.
How do I start making an addon for this mod?
Create a module class that extends AddonModule, then create a module provider by extending AddonModuleProvider and registering your modules in the registerRawModules() method. Once registered, the mod will load your addon features only when the required mods are present.
What happens if a mod my addon depends on is missing?
The AddonAPI-DynLoad Mod will skip only the features tied to that missing mod and let the game start normally. Your addon won't crash the game—only the incompatible parts are left out.
How do I make recipes only load when another mod is installed?
Use recipe conditions in your addon config file to check if required modules are present before the recipe loads. The mod provides built-in condition checks that prevent recipes from being added if their target mod isn't active.
Can I check if a mod is loaded from inside my code?
Yes, use the template Mixin plugin included with the mod to check mod loading status at runtime. This lets you conditionally execute code based on whether specific mods are present in the game.
Where do I put compatibility settings in my addon config?
Add a compat section to your addon config file for each target mod you want to support. This section lets you define which features, recipes, or modules should load based on that mod's presence.
Do I need to create separate addons for each mod combination?
No, that's the whole point of this mod. Create one addon with multiple modules, and the AddonAPI-DynLoad system automatically enables only the modules for mods that are actually installed.
Will my addon slow down game startup?
The mod only loads modules that match your active mod list, so it's efficient. Skipped modules don't consume resources, and the dynamic loading system is designed to have minimal impact on startup time.
What if I want to add content that works with multiple mods at once?
Create a single module that depends on multiple target mods, and use the compat section to specify all required mods. The module will only load when all of its dependencies are present.
How do I test my addon if I don't have all the mods it supports installed?
The mod is designed to handle missing dependencies gracefully, so you can test with any combination of mods. Load your addon with some mods present and others missing to verify that only the correct features load.
Can I use this mod to add optional features to an existing addon?
Yes, you can extend an existing addon with new modules that target different mods. The AddonAPI-DynLoad system will integrate your new modules into the existing addon without conflicts.