mojira.dev
MCPE-237609

Unable to remove entity nametags after they are set

When a nametag is set on an entity in Minecraft Bedrock Edition, there is no proper in-game or scripting method to completely remove it afterward.

Setting the name to an empty string ("") does hide it visually, but the nametag still exists as a property of the entity and cannot be truly cleared or deleted.

This makes it impossible to fully "remove" nametags once applied, especially when using name tags or scripts in add-ons.

Comments 1

Empty string does have the desired behavior. Entities with no custom name return the empty string from nameTag. Setting nameTag to the empty string does remove an existing name tag, as nothing is displayed when looking at the mob, and the entity's original name shows up in /say.

If you’re aware of any observable difference between an entity freshly spawned with no name tag, and one where nameTag was set to the empty string with scripting, please reply, because I cannot find any.

Sarmood

(Unassigned)

Unconfirmed

Android

26.10

Retrieved