> 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/drop_weighted_random_item.md).

# drop\_weighted\_random\_item

## `drop_weighted_random_item`

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

在触发器属性中的位置按权重随机掉落一个物品。

## 示例配置

```yaml
- id: drop_weighted_random_item
  args:
    items: # 随机物品列表
      - items: # 各个子物品下可以单独为其设置权重值
          - diamond 2
          - ancient_debris 2
        weight: 2
      - item: ancient_debris # Or just a single item
        weight: 5
```
