1. Wiki
  2. /Items
  3. /minecraft:stacked_by_data

minecraft:stacked_by_data

Don't want to write this by hand? GodCraft sets minecraft:stacked_by_data for you with a switch.Get GodCraft

Overview

minecraft:stacked_by_data is an item component: it goes in the components object of a custom item. Decides whether items with the same id but different data values are treated as different, so they do not stack or merge on the ground.

Fields

FieldTypeDefaultDescription
valuebooleanfalseSet to true to keep items with different data values in separate stacks.

Example

Inside the components object of BP/items/<name>.json (values are the defaults or placeholders):

BP/items/<name>.json
{
  "minecraft:stacked_by_data": {
    "value": false
  }
}

Items: Behavior pack

We use cookies to improve your experience and analyse site traffic. Learn more