The minecraft:max_stack_size
item component allows this item to stack differently.
Its value, an integer, ranges from 1
to 99
inclusive.
If this item component is not specified, it will make the item stack to 64
instead.
The maximum stack size may be overridden for a specific item stack by using the minecraft:max_stack_size data component.