The bug
When using the summon command, it will ignore items stacking restrictions, unlike /give and /item (MC-117005). It will cap at 64 when summoning item entities but goes beyond 64 when an entity holds an item in its hand.
How to Reproduce
Run the command
/summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:lava_bucket",Count:64b}}
→ ❌ You get invalid stacked items
Run either of those commands
/summon minecraft:armor_stand ~ ~ ~ {HandItems:[{id:diamond_sword,Count:127b}]} /summon minecraft:armor_stand ~ ~ ~ {HandItems:[{id:lava_bucket,Count:64b}]}
Right-click the armor stand item
→ ❌ You get invalid stacked items above 64.
Linked issues
is duplicated by 1
Attachments
Comments 8
Pretty sure this is going to get a won't fix/works as intended. The other commands listed have the count value in a separate parameter, here it's hidden in save-data format. Item entities are not the only place, by far; armor items, hand items, container contents, item entity's shulker box/bundle contents, container's shulker box/bundle contents, and those are only the ones that pop to mind. The stacking restrictions have vanished and appeared on the give command several times, and each time it was resolved as WAI, so it's a "we don't really care about this" situation to begin with.
Can confirm