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

'/data remove' can't remove the NBT "CustomName"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.21.4 Pre-Release 1
    • Minecraft 18w14b, Minecraft 18w15a, Minecraft 18w16a, Minecraft 18w22c, Minecraft 1.13-pre1, Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13, Minecraft 18w30b, Minecraft 18w31a, Minecraft 1.13.1-pre1, Minecraft 1.13.1-pre2, Minecraft 1.13.1, 1.16 Pre-release 2, 1.16.4, 20w49a, 21w05b, 21w06a, 1.17.1, 1.18.1, 1.18.2, 22w13a, 22w18a, 1.19, 1.19.1 Pre-release 4, 1.19.1 Release Candidate 2, 1.19.1, 1.19.2 Release Candidate 1, 1.19.2, 1.19.3, 1.19.4, 1.20.1, 1.20.2, 23w43b, 1.20.4, 23w51b, 24w05b, 24w06a, 24w07a, 24w09a, 24w13a, 1.20.5 Pre-Release 4, 1.20.5 Release Candidate 2, 1.20.5, 1.20.6 Release Candidate 1, 1.20.6, 24w20a, 24w21b, 1.21, 1.21.1, 1.21.2, 1.21.3
    • Confirmed
    • Commands
    • Important
    • Platform

      The bug

      The /data remove command can't remove the NBT CustomName.

      How to reproduce

      1. Type this command:
        /summon spider ~ ~ ~ {CustomName:"{\"text\":\"Grumm\"}"}
        

        You can see its name by looking at it

      2. Type this command:
        /data remove entity @e[type=spider,limit=1,sort=nearest] CustomName
        

        Its name should be removed, but it isn't

      Expected behavior

      The name of the entity should be able to be removed using the /data remove command.

        1. MC-128225.mp4
          4.54 MB
        2. MC-128225.png
          MC-128225.png
          1.02 MB

            slicedlime [Mojang] slicedlime
            Lunarian Lunarian
            Votes:
            57 Vote for this issue
            Watchers:
            35 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: