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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.8.3, Minecraft 1.8.4
    • Fix Version/s: Minecraft 1.11.2
    • Labels:
      None
    • Environment:
      Windows 10 TP
      JRE bundled with Minecraft
    • Confirmation Status:
      Community Consensus

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            TrashCaster Mike Dueck
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              CHK: