給予物品
mc_giveGive specified items to a player or entity in Minecraft using a target selector, enabling agents to obtain resources for building and world manipulation.
Instructions
給對象指定數量的物品。要讓 Agent 有東西可放,先 give 給玩家再交給 Agent。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| item | Yes | 方塊 ID,例如 stone 或 minecraft:oak_planks | |
| amount | No | ||
| target | No | 目標選擇器(@a/@p/@s/@e/@r,可帶 [])或玩家名稱 | @s |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | Yes | ||
| elapsedMs | Yes | ||
| statusCode | Yes | ||
| commandLine | Yes | ||
| statusMessage | Yes |