Moff's AddonAPI-DynLoad 图标

Moff's AddonAPI-DynLoad

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 2.1.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/addonapi
资源信息

Minecraft 版本: 1.20.1

平台: forge

标签: 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"
      }
    ],
    ...
}
📥 下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Redstone Essentials

价格:0 墨喵币
下载量:0

查看详情
The Backrooms

价格:0 墨喵币
下载量:0

查看详情
[TACZ] DeltaForce Melee Pack

价格:0 墨喵币
下载量:0

查看详情
Waguri pack

价格:0 墨喵币
下载量:0

查看详情