Mojira Archive
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.

Fixed

[Mod] Asteraoth

poweredbow

2020-10-08, 09:29 AM

2024-05-01, 05:21 AM

2024-05-01, 05:21 AM

4

3

Confirmed

Commands

/summon, item-stack, stack

1.16.3 - 1.20.41.16.3, 1.16.4, 20w46a, 20w48a, 20w51a, 21w03a, 21w08b, 21w14a, 1.17.1, 1.18.2, 1.19, 1.19.4, 23w16a, 1.20.4

24w09a