# 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
```


---

# 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-xiao-guo/drop_weighted_random_item.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.
