minecraft:max_stack_size
The max_stack_size component specifies how many of the item can be stacked together.
Properties
Can be written as a single value: integer (1 to 64).
| Property | Type | Default | What it does |
|---|---|---|---|
value | Integer1 to 64 | 1 | Specifies how many of the item that can be stacked. |
Example from the game files
This is how vanilla honey_bottle uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:max_stack_size": 16
}Used by 29
Vanilla items with minecraft:max_stack_size in their definition:
beetroot_soupblack_bundleblue_bundlebrown_bundlebundlecopper_spearcyan_bundlediamond_speargolden_speargray_bundlegreen_bundlehoney_bottleiron_spearlight_blue_bundlelight_gray_bundlelime_bundlemagenta_bundlemushroom_stewnetherite_spearorange_bundlepink_bundlepurple_bundlerabbit_stewred_bundlestone_spearsuspicious_stewwhite_bundlewooden_spearyellow_bundleSet it without writing JSON
The item maker writes this component for you from a form and puts it in a ready-to-import .mcaddon.