Mojira Archive
MC-78862

Setting CustomName to a blank string doesn't remove the custom name

Rename a mob (I used a villager) to lets say, Bob.

Try to remove the name by using

{CustomName:""}

It won't change the name.
Edit:
I've been told that setting the name to " " will remove the name, but not the nameplate.
This should be corrected regardless, since I assume it is not working as intended.

White-space trimming should be turned off, and rendering the name plate should check for both CustomName tag existing, and it not being blank.

The only way to correct this is to kill the mob, and spawn in a new one, which is very inconvenient if you've spent a while trying to fuss with other tags to make your mob display right.

Fixed

Mike Dueck

2015-03-20, 05:20 PM

2017-03-20, 12:45 PM

2017-03-20, 12:45 PM

3

4

Community Consensus

Minecraft 1.8.3, Minecraft 1.8.4

Minecraft 1.11.2