> For the complete documentation index, see [llms.txt](https://enchantedmobs.superiormc.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://enchantedmobs.superiormc.cn/ultimatequest-zhong-wen-wen-dang/pei-zhi/pools.md).

# 目标池

目标池用于按权重抽选可复用目标。周期任务或卷轴可以从池中抽取若干目标，让玩家得到不同组合，无需为每种组合单独编写配置。

## 配置

`pools/<id>.yml` 将已启用目标模板 ID 映射到正整数权重：

```yaml
enabled: true
quests:
  miner: 10
  coal: 10
  iron: 8
  gold: 5
  redstone: 7
  diamond: 2
```

总和必须在有符号 64 位整数范围内，此处不接受 0/小数权重。周期/卷轴使用 `source: {pool: mining, count: 2}`。count 默认 1，必须为 1–45 整数且不超过候选数。按权重不重复抽取，目标数量取各模板配置。

周期生成独立委托，卷轴合并抽取/固定目标为一个任务。未知引用、非法权重或候选不足拒绝加载，重登不重抽已保存结果。奖励池使用另一套[格式](/ultimatequest-zhong-wen-wen-dang/pei-zhi/rewards.md)。
