MonitoringMinecraft MonitoringMinecraft
MineLauncher
Мод Forge

Moff's AddonAPI-DynLoad

Библиотечный мод для Майнкрафт: API для динамической загрузки объектов в аддонах на Forge.

177к скачиваний 0 подписчиков

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"
      }
    ],
    ...
}
Смотри также

Похожие подборки моды — по версиям Майнкрафта, загрузчикам и жанрам.

MineLauncher
Лаунчер Майнкрафт без лицензии — все версии
Бесплатный лаунчер для ПК — все версии 26.1.2, 1.21.11, 1.16.5, 1.21.4. Fabric, NeoForge, Forge, шейдеры и моды в один клик.
Без лицензии Fabric, NeoForge, Forge Шейдеры и моды Все версии Майнкрафта Для слабых ПК Сервера в лаунчере
Скачать бесплатно
Windows · Бесплатно · Без лицензии