minecraft:stacked_by_data

The stacked_by_data component determines whether the same items with different aux values can stack. Also defines whether the item entities can merge while floating in the world.

Properties

Can be written as a single value: boolean.

PropertyTypeDefaultWhat it does
valueBooleanfalseDetermines whether the same item with different aux values can stack. Also defines whether the item entities can merge while floating in the world.

Example from the game files

This is how vanilla appleEnchanted uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:stacked_by_data": true
}

Used by 8

Vanilla items with minecraft:stacked_by_data in their definition:

appleEnchantedclownfishcooked_fishcooked_salmonfishgolden_applepufferfishsalmon

Related components