mojira.dev
MC-128225

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

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.

Linked issues

Attachments

Comments 44

Does reloading the world (leave and enter) fix it?

No, its nbt still has CustomName value
It still exist in 18w15a

You can update the affected versions yourself, no need to comment.

Confirmed for Minecraft 1.13-pre7

34 more comments

Still exists in 1.20.5-rc2.

Sadly, this is still the case in Release 1.20.5.

Still exists in 1.20.6-rc1. Is this even a critical bug?

jellywayne

Lunarian

slicedlime

Confirmed

Platform

Important

Commands

commands, nbt

Minecraft 18w14b, Minecraft 18w15a, Minecraft 18w16a, Minecraft 18w22c, Minecraft 1.13-pre1, ..., 24w21b, 1.21, 1.21.1, 1.21.2, 1.21.3

1.21.4 Pre-Release 1

Retrieved