跳转到内容

奖励配置

QueDP 提供两种奖励配置文件:rewards.yml(直接发放奖励)和 chest_rewards.yml(箱子UI选择奖励)。

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_itemMythicMobs 自定义物品

箱子奖励以 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 中的奖励名