Item Stack
An Object which defines a new item stack.
Fields
Field | Type | Default | Description |
---|---|---|---|
item |
Identifier | ID of a registered item. | |
amount |
Integer | 1 |
Size of the stack. |
tag |
String | optional | NBT data of the item. |
Examples
"stack": {
"item": "minecraft:coal",
"amount": 24
}
An item stack of 24 coal.
"stack": {
"item": "minecraft:golden_helmet",
"tag": "{Enchantments: [{id: \"minecraft:projectile_protection\", lvl: 2s}]}"
}
An item stack of a golden helmet with Projectile Protection II.