User Tools

Site Tools


items:item_groups:item_group_entry_providers:stack

Table of Contents

stack

The stack entry provider type adds exactly one item stack to the item group. It creates an item stack with the specified item and an optional set of data components. Item stacks with differing data components are not considered the same, despite having the same item. This means that you can add multiple item stacks of the same items to an item group. This entry provider can also be inlined by only specifying the item.

Fields

Name Description Type Default Value
item The item to use for the item stack. An item
components The components for the item. An optional removeable data component map {}

Example

"minecraft:stick"
{
  "type": "stack",
  "item": "minecraft:firework_rocket",
  "components": {
    "minecraft:fireworks": {
      "flight_duration": 1
    }
  }
}
items/item_groups/item_group_entry_providers/stack.txt · Last modified: 2024/05/01 15:07 by errorcraft