> For the complete documentation index, see [llms.txt](https://ersha.gitbook.io/attributeplus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ersha.gitbook.io/attributeplus/ji-chu-jiao-cheng/shu-xing-jie-shao-bu-fen-shuo-ming/cha-jian-ji-zhi/xiao-guo-shang-hai-ji-zhi.md).

# 效果伤害机制

## 效果伤害机制

> 可自定义 **燃烧 中毒 凋零** 伤害公式,同时支持 PlaceholderAPI 变量计算\
> 新的 **燃烧抗性 中毒抗性 凋零抗性** 属性标签及变量 (标签可以自定义)

效果伤害机制配置 (attribute.yml)

```yaml
#下方属性标签变量为 ap_withers ap_fires ap_posions
EffectDamage:
  enable: false
  Wither:
    # 属性标签,这个标签是支持 最小值 - 最大值 随机的
    key: "凋零抗性"
    # 1.7.10 只可以调整倍率
    # 格式格式下面那个格式,没办法修改
    rate: 30
    # 除 1.7.10 外的服务器版本可以使用自定义公式
    # 默认公式为造成玩家当前生命力的百分之多少
    # 默认 {health} / {maxHealth} / {attr} 占位符,支持 PlaceholderAPI 变量
    # 当 "凋零抗性: 10-50" 时{attr}将是随机值,如果是 "凋零抗性: 10" 那{attr}就是固定值
    plan: "{health}*(30-{attr})/100"
  Fire:
    key: "燃烧防御"
    rate: 10
    plan: "({health}*10)-{attr}/100"
  Poison:
    key: "中毒抗性"
    rate: 20
    plan: "{health}*(20-{attr})/100"
```
