minecraft:stacked_by_data for you with a switch.Get GodCraftOverview
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
| Field | Type | Default | Description |
|---|---|---|---|
value | boolean | false | Set 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
}
}