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

/data remove not completely remove empty compound tag from entity item when picked up

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 19w13b, Minecraft 19w14b, Minecraft 1.14 Pre-Release 1, Minecraft 1.14 Pre-Release 2, Minecraft 1.14 Pre-Release 3, Minecraft 1.14 Pre-Release 4, Minecraft 1.14, Minecraft 1.14.1 Pre-Release 1, Minecraft 1.14.1 Pre-Release 2, Minecraft 1.14.1, Minecraft 1.14.2 Pre-Release 1, Minecraft 1.14.2 Pre-Release 2, Minecraft 1.14.2 Pre-Release 3, Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 2, Minecraft 1.14.3 Pre-Release 3, Minecraft 1.14.4 Pre-Release 6, 19w39a, 19w41a, 19w45a, 19w46b, 1.15 Pre-release 3, 1.15, 1.15.2, 20w06a, 20w17a, 1.16 Pre-release 2, 1.16 Pre-release 7, 1.16.1, 20w28a, 20w48a, 20w51a, 21w05a, 21w11a, 1.18.1, 1.18.2 Pre-release 2, 1.18.2, 1.19.4, 23w12a, 23w13a, 1.20.2, 23w44a
    • Confirmed
    • Commands

      How to reproduce

      1. Summoning item with custom tag inside an item, for example:
        /summon item ~ ~ ~ {Item:{id:"gold_ingot",Count:1b,tag:{SpawnXP:5}}}
        
      2. Run in a repeating command block or function:
        execute as @e[type=item,nbt={Age:3s,Item:{tag:{SpawnXP:5}}}] at @s run data remove entity @s Item.tag.SpawnXP
        
      3. Make sure you have normal item of gold ingot in your inventory. (16 items for testing)
      4. Then picked up your item that has custom tag
        The item doesn't stack together.

      Video demonstrating the issue: https://www.youtube.com/watch?v=cGcBXvHKKLQ

        1. 2020-12-02_13.03.56-1.png
          2020-12-02_13.03.56-1.png
          670 kB
        2. 2020-12-02_13.03.36.png
          2020-12-02_13.03.36.png
          1.75 MB
        3. 2020-12-02_13.03.24-1.png
          2020-12-02_13.03.24-1.png
          1.74 MB
        4. 2019-03-30_02.41.33.png
          2019-03-30_02.41.33.png
          291 kB
        5. 2019-03-30_02.41.26.png
          2019-03-30_02.41.26.png
          422 kB

            Unassigned Unassigned
            Steve_MCCommander SteveKunG
            Votes:
            14 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              CHK: