Positioned Item Stack (Data Type)

An Object which defines a new item stack alongside a position in an inventory.

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

Fields

FieldTypeDefaultDescription
itemIdentifierID of a registered item.
amountInteger1Size of the stack.
tagNBToptionalNBT data of the item.
slotIntegeroptionalInventory 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.