> 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-tiao-jian/has_item.md).

# has\_item

## `has_item`

需要（作为触发对象的）玩家的背包中的物品含有物品列表中的元素。如果（作为触发对象的）实体不是玩家，则实体所穿装备和所持物品是否含有物品列表中的元素。

## 示例配置

```yaml
- id: has_item
  args:
    items: # 允许的物品列表，支持物品语句
      - talismans:archery_2 sparkly
      - netherite_ingot 
```
