mojira.dev
MC-221628

Entities don’t stop glowing after losing the glowing effect

The bug

When any entity (including the player) gets the glowing effect and you remove it, it will not stop glowing. Seems like the entity now also gets the Glowing NBT tag when getting the effect, which wasn’t a thing in previous versions and they don’t lose that NBT tag when the effect runs out, causing them to glow forever. For non-player entities you can get rid of the glow, using /data. Since /data cannot modify data of players, that doesn’t work to get rid of it for players.

You can however get rid of it by killing yourself or by leaving the end using the portal. Discovered while testing MC-164874.

How to reproduce:

  1. Give any entity the glowing effect using spectral arrow or a command

  2. Remove it or wait
    ❌ The entity still glows. You can get rid of it using /kill

Linked issues

MC-221678 Effects such as glowing don't visually go away even when clearing them with /effect clear @e Resolved MC-221764 Glowing effect stays after duration runs out Resolved MC-221911 Glowing effect permanent Resolved MC-222059 Glowing Effect lasts forever Resolved MC-222181 no effect glowing Resolved

Attachments

Comments 8

I've noticed it's true

i attached a photo of it happening to me (notice how i don't have the glowing effect but i am glowing)

i shot myself with a spectral arrow 5 in-game days prior

Apparently applying the glowing effect sets the Glowing tag to true on entities, which obviously isn't desired. (Even on the player, which cannot be reset!)

This is horrible for hardcore servers with the end disabled.

  1. Hardcore so permadeath.

  2. No End so can't reset that way.

Bug still persists on entities loaded from 21w15a even when world is updated to 21w16a.

All new entities, spawned or given the glowing effect in 21w16a, are fixed.

/data merge, remove, etc. does not clear the effect, as the effect is technically not applied to the mob according to the game (after attempting to /effect clear in both 21w15a and 21w16a), only the rendering is effected.

However, in the entity folder for the world save, the game still recognizes that the glow effect is applied to 21w15a mobs, and even creating a brand new 21w16a world save with the Caves&Cliffs datapack, and pasting over the entity folder from a previous 21w15a world save to the new world, will not fix the bug for the older entities, even after attempting /data and /effect commands.

Did you try using /data to set Glowing back to 0b? For players you could either /kill or open their files with NBTExplorer and set their Glowing to 0b as well.

It would seem weird to me if Mojang had to implement data conversion code between snapshots as well. (Bugs happen all the time) so I wouldn't count on them adding a fix for affected entities.

@unknown I was not able to reproduce what you mentioned. I created a world in 21w15a, I gave one mob the glowing effect and waited until it runs out. And I gave one mob the glowing affect and didn’t wait until it runs out. When I upgraded the world to 21w16a, both entities still kept the glowing NBT tag even after the effect ran out. However I am able to fix this without any issue by removing the glowing NBT tag using a command. I don’t think it is possible or necessary to fix that. Just run

/execute as @e run data merge entity @s {Glowing:0b}

and you should have fixed the issue for all of the entities that you kept from the previous snapshot.

bugsbugsbugs

mgatland

Confirmed

Important

Rendering

21w13a, 21w14a, 21w15a

21w16a

Retrieved