> 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/rewards/items-commands.md).

# 物品、命令与消息奖励

普通任务、委托、卷轴和阶段使用相同奖励格式，公共字段见[概览](/ultimatequest-zhong-wen-wen-dang/pei-zhi/rewards.md)。

## `item`

构建并发放配置物品。

| 字段     | 默认值 | 说明             |
| ------ | --- | -------------- |
| `item` | 必填  | ItemFormat 节点。 |

```yaml
rewards:
  supplies:
    type: item
    item:
      material: BREAD
      amount: 8
    display:
      name: '&eBread x8'
```

必须构建为非空气且数量为正的物品，背包溢出时掉落。ItemFormat amount 为整数或 min\~max，不接受任意公式。

## `console_command`

通过控制台奖励路径执行命令。

| 字段        | 默认值 | 说明         |
| --------- | --- | ---------- |
| `command` | 必填  | 不带斜线的非空命令。 |

```yaml
rewards:
  scroll:
    type: console_command
    command: uq scroll give {player} novice
```

奖励变量为 {player}、{uuid}、{quest}，命令失败前可能已发物品，应先复核再决定重试。

## `message`

发送配置反馈消息。

| 字段        | 默认值 | 说明     |
| --------- | --- | ------ |
| `message` | 必填  | 消息字符串。 |

```yaml
rewards:
  thanks:
    type: message
    message: '&aThank you, {player}!'
```

这是 message 奖励，不是任意动作列表，title/sound 是动作而不是合法奖励类型。
