奖励配置
QueDP 提供两种奖励配置文件:rewards.yml(直接发放奖励)和 chest_rewards.yml(箱子UI选择奖励)。
rewards.yml
Section titled “rewards.yml”rewards: 通关奖励: items: - type: item id: DIAMOND amount: 5 - type: mythic_item # MythicMobs 物品 id: legendary_sword amount: 1 money: 1000 # 金钱,需要 Vault(键名 money 或 金钱) exp: 500 # 经验(键名 exp 或 经验) commands: # 控制台命令,%player% 替换为玩家名 - "give %player% golden_apple 3"rewards: 随机宝箱: type: random options: 普通: weight: 70 items: - type: item id: IRON_INGOT amount: 10 稀有: weight: 25 items: - type: item id: DIAMOND amount: 3 传说: weight: 5 items: - type: mythic_item id: epic_weapon amount: 1 money: 5000| 类型 | 说明 |
|---|---|
item / minecraft | 原版 Minecraft 物品(Material 名称) |
mythic_item / mm_item | MythicMobs 自定义物品 |
chest_rewards.yml
Section titled “chest_rewards.yml”箱子奖励以 GUI 界面的形式让玩家选择奖励。
chests: 普通宝箱: title: "&6&l✦ 普通宝箱 ✦" rows: 3 # GUI 行数(1-6,默认 3) mode: single # single = 只能选一个(默认 single) max_select: 1 # multiple 模式下可选数量上限(默认 1,single/all 忽略) background: BLACK_STAINED_GLASS_PANE # 背景填充材质(可选) options: - slot: 11 icon: DIAMOND name: "&b钻石奖励" lore: - "&7获得 5 颗钻石" reward: 钻石奖励 # 关联 rewards.yml 中的奖励名 - slot: 13 icon: GOLD_INGOT name: "&6金币奖励" lore: - "&7获得 1000 金币" reward: 金币奖励 - slot: 15 icon: EXPERIENCE_BOTTLE name: "&a经验奖励" lore: - "&7获得 500 经验" reward: 经验奖励| 模式 | 说明 |
|---|---|
single | 只能选择一个选项(默认) |
multiple | 可以选择多个,数量受 max_select 限制 |
all | 获得所有选项 |
| 字段 | 中文键 | 默认值 | 说明 |
|---|---|---|---|
slot | 槽位 | 0 | 物品所在槽位(0-53) |
icon | 图标 | CHEST | 显示的物品图标(Material 名称,无效时回退为 CHEST) |
name | 名称 | &7奖励 | 显示名称(支持颜色代码 &) |
lore | 描述 | 空 | 描述文本列表 |
reward | 奖励 | 空 | 关联 rewards.yml 中的奖励名 |