跳到正文

Armors API

An API for matching a full set of armor

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

This mod enables full armor set identification via custom IDs and allows certain abilities to require specific armor sets.

Originally created to configure dedicated armor sets for the Shadow Mist mod, the API is now publicly available for other modders and modpack developers.

The configured equipment is read from the config/armors_api/<id>.json configuration file.

JSON Example:

{
  "id": "shadow_armors",
  "armors_list": {
    "helmet": [
      "shadowlands:enhanced_shadowmetal_helmet"
    ],
    "chestplate": [
      "shadowlands:enhanced_shadowmetal_chestplate"
    ],
    "leggings": [
      "shadowlands:enhanced_shadowmetal_leggings"
    ],
    "boots": [
      "shadowlands:enhanced_shadowmetal_boots"
    ]
  }
}

Commands:

  • /armors_api add <id> all – Adds all currently equipped armor pieces to the specified set.
  • /armors_api add <id> <helmet|chestplate|leggings|boots> – Adds the currently equipped <helmet|chestplate|leggings|boots> to the specified set.
  • /armors_api reload – Reloads the configuration file.
  • /armors_api list – Lists all registered armor sets.
  • /armors_api check <id> – Checks whether the player is currently wearing the specified armor set.
  • /armors_api remove all – Removes all registered armor sets.
  • /armors_api remove <id> – Removes the armor set data for the specified ID (supports removing all or individual slots: <helmet|chestplate|leggings|boots>).

The mod provides a developer API and also supports KubeJS integration.

常见问题

Armors API 支持哪些 Minecraft 版本?

Armors API 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

Armors API 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

StarmapleFantasy 的其他作品

查看全部 →