# 效果伤害机制

## 效果伤害机制

> 可自定义 **燃烧 中毒 凋零** 伤害公式,同时支持 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"
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET 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?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
