Moff’s AddonAPI-DynLoad
A library mod that provides an API for dynamically loading objects in addon mods based on the mods loaded by Forge.
介绍
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"
}
],
...
}
常见问题
Moff’s AddonAPI-DynLoad 支持哪些 Minecraft 版本?
Moff’s AddonAPI-DynLoad 支持 Minecraft Java 版 1.20.1–1.21.1,共 2 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。
Moff’s AddonAPI-DynLoad 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
mofumofumoffy 的其他作品
查看全部 →Moff’s AddonAPI-DynLoad
A library mod that provides an API for dynamically loading objects in addon mods based on the mods loaded by Forge.
TiCEX – Tinkers Construct EX
A Tinkers' Construct addon for rebuilding iconic modded gear into customizable tools, armor, and absurd cross-mod synergies.
TiCEX – Tinkers Construct EX
A Tinkers' Construct addon for rebuilding iconic modded gear into customizable tools, armor, and absurd cross-mod synergies.
Tinkers’ ManaitaMTK
A bridge between ManaitaMTK and TiC, enhancing Manaita's gameplay with TiC's modifiers.
评论
登录后评论和评分