> For the complete documentation index, see [llms.txt](https://docs.superiormc.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.superiormc.cn/auxilor-plugins/zi-ding-yi-xiao-guo/suo-you-xiao-guo/potion_effect.md).

# potion\_effect

## `potion_effect`

**触发效果**[**​**](https://plugins.auxilor.io/effects/all-effects/potion_effect#triggered-effect)

给予玩家或者目标（取决于你的配置）临时的药水效果。

## 示例配置

```yaml
- id: potion_effect
  args:
    effect: confusion # 给予的药水效果，药水效果列表见 https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/potion/PotionEffectType.html
    level: 2 # 药水等级
    duration: 40 # 持续时长，以tick为单位
    apply_to_player: false # 是否给予玩家而不是目标
```
