跳到正文

Effective Armors

作者:vomiter

A data-driven armor effect system for modpack makers. Easily add potion effects to armor pieces or full sets (Forge & NeoForge).

收藏

介绍

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

This mod provides modpack makers an easy way to add specific potion effects on certain armors or armor sets. You may allow players to gain a lv3 strength effect when they are wearing a full set of diamond armors. The mod is optionally compatible with Curios Api, allowing items equipped in curios slots to be treated as a part of an armor set.

The mod is data driven, so you just need to put valid json files at data/<namespace>/effectivearmors/armor_effects/<path>.json. If you are using KubeJS, you may also put it directly under kubejs folder, so that the file path would be like kubejs\data\kubjes\effectivearmors\armor_effects\effect_1.json.

The file should be structured like this.

{
  "armor": [
    "minecraft:diamond_helmet",
    "minecraft:diamond_chestplate",
    "minecraft:diamond_leggings",
    "minecraft:diamond_boots"
  ],
  "effects": [
    { "id": "minecraft:strength", "amplifier": 2, "ambient": false, "show_particles": false, "show_icon": true }
  ],
  "match_all": true
}

You may put 1-4 items in the armor list. "match_all": true means to check if all items are equipped; you may also set it to false so that one piece of the armor set would be enough to apply the effect. You may also put multiple effect instance in the effects list and they will be applied at the same time.

It also supports tag. You may use # at the start of any armor entry string and it will be parsed as a tag ingredient. You may also use 3x ... to declare the number. So the following formats works as well.

  "armor": [
    "#effectivearmors:test_helmets",
    "minecraft:iron_chestplate",
    "minecraft:golden_leggings"
  ]
  "armor": [
    "4x #effectivearmors:golden"
  ]

常见问题

Effective Armors 支持哪些 Minecraft 版本?

Effective Armors 支持 Minecraft Java 版 1.20.1–1.21.11,共 17 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Effective Armors 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

vomiter 的其他作品

查看全部 →