mojira.dev
MC-201722

Summon command ignores stacking restrictions

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

  1. Run the command

    /summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:lava_bucket",Count:64b}}

    → ❌ You get invalid stacked items

  1. 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}]}
  2. Right-click the armor stand item
    → ❌ You get invalid stacked items above 64.

Linked issues

Attachments

Comments 8

Can confirm in 20w51a.

Can confirm in 21w03a.

Can confirm in 21w08b. Video attached.

Can confirm in 1.12.2 but other command

Can confirm in 21w14a.

Can confirm in 1.17.1.

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.

poweredbow

Asteraoth

(Unassigned)

Confirmed

Commands

/summon, item-stack, stack

1.16.3, 1.16.4, 20w46a, 20w48a, 20w51a, ..., 1.18.2, 1.19, 1.19.4, 23w16a, 1.20.4

24w09a

Retrieved