Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-201722

Summon command ignores stacking restrictions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w09a
    • 1.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
    • Confirmed
    • Commands

      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.

        1. 2020-10-08_14.22.02.png
          2020-10-08_14.22.02.png
          672 kB
        2. 2020-10-08_14.22.15.png
          2020-10-08_14.22.15.png
          645 kB
        3. 2020-10-08_14.26.43.png
          2020-10-08_14.26.43.png
          731 kB
        4. 2020-10-08_14.26.54.png
          2020-10-08_14.26.54.png
          532 kB
        5. MC-201722.mp4
          2.96 MB

            Unassigned Unassigned
            Asteraoth [Mod] Asteraoth
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: