# damage\_cause

## `damage_cause`

筛选（触发器属性中的）事件是伤害类型触发器，且伤害来源是列表中的元素。

\*伤害来源列表见 <https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityDamageEvent.DamageCause.html>

\*常见的伤害来源：

* BLOCK\_EXPLOSION：方块爆炸造成的伤害。
* CONTACT：接触仙人掌、石笋、浆果等造成的伤害。
* CRAMMING：与过多实体碰撞在一起时造成的伤害。
* DRAGON\_BREATH：龙息造成的伤害。
* DROWNING：溺水造成的伤害。
* DRYOUT：水里的生物在陆地上缺氧时造成的伤害。
* ENTITY\_ATTACK：实体攻击造成的伤害。
* ENTITY\_EXPLOSION：实体爆炸造成的伤害。（如苦力怕）
* ENTITY\_SWEEP\_ATTACK：实体横扫攻击造成的伤害。
* FALL：摔落造成的伤害。
* FALLING\_BLOCK：受重力下降的方块击中造成的伤害。（如铁砧）
* FIRE：着火造成的伤害。
* FIRE\_TICK：碰到火造成的伤害。
* FLY\_INTO\_WALL：鞘翅飞行碰到墙时造成的伤害。
* FREEZE：冰冻造成的伤害。
* HOT\_FLOOR：踩在岩浆块上造成的伤害。
* LAVA：熔岩造成的伤害。
* LIGHTNING：累计造成的伤害。
* MAGIC：药水效果和魔法造成的伤害。
* MELTING：雪傀儡在雨天造成的伤害。
* POISON：中毒药水造成的伤害。
* PROJECTILE：箭与三叉戟造成的伤害。
* SONIC\_BOOM：坚守者远程攻击造成的伤害。
* STARVATION：饱食度为0时饥饿造成的伤害。
* THORNS：荆棘附魔造成的伤害。
* VOID：虚空造成的伤害。
* WITHER：凋零造成的伤害。

## 示例配置

```yaml
filters:
  damage_cause:
    - poison
    - wither
```


---

# 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://docs.superiormc.cn/auxilor-plugins/zi-ding-yi-xiao-guo/suo-you-shai-xuan/damage_cause.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.
