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

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 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
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      Commands

      Description

      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

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            Steve_MCCommander SteveKunG
            Votes:
            9 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              CHK: