Item Stack

Data Type

An object which defines a stack of items.

Fields

Field Type Default Description
id Identifier The ID of the registered item.
count Integer 1 The size of the item stack.
components Components optional The components of the item stack.

Examples

"stack": {
    "id": "minecraft:coal",
    "count": 24
}

This example defines a stack of 24 Coal items.

"stack": {
    "id": "minecraft:golden_helmet",
    "components": {
        "minecraft:enchantments": {
            "minecraft:projectile_protection": 2
        }
    }
}

This example defines a stack of 1 Golden Helmet with Projectile Protection II enchantment.