Positioned Item Stack

Data Type

An Object which defines a new item stack alongside a position in an inventory. Basically an Item Stack with a slot field.

Fields

Field Type Default Description
item Identifier ID of a registered item.
amount Integer 1 Size of the stack.
tag NBT optional NBT data of the item.
slot Integer optional Inventory slot position of the stack. If not specified, will be the first free slot in the inventory. See Positioned Item Stack Slots for possible values.

Examples

"stack": {
    "item": "minecraft:shield",
    "slot": 40
}

An item stack of a shield positioned in the off-hand slot of the player inventory.