mojira.dev
MC-88181

Entity NBT isn't always synchronized with clients immediately, rendering the entity incorrect for a brief moment

An alternative description is provided in MC-72774.
Code analysis by @unknown here in this comment, he narrowed down the apparent issue of this bug.


Using the new EntityTag feature for custom spawn eggs, I created spawn eggs summoning a Squid with the invisibility potion effect, but while I was demonstrating the "Tags" tag by placing the spawn eggs against a barrierblock, one Squid popped into my face ;_;

Give-command for a custom squid spawn egg:

/give @s minecraft:squid_spawn_egg{EntityTag:{Glowing:1b,NoAI:1b,CustomName:'{"text":"Invisible","color":"dark_blue","bold":true,"italic":true,"underlined":true}',active_effects:[{id:invisibility,amplifier:1b,duration:1200,show_particles:1b}]}}

It seems that the effect is not always (or generally?) applied immediately.

In current snapshot 20w12a it is visible each single time I use the spawn egg; that has not been always the case, e.g. back in 2015.

The Squid appears for about 1 tick.

[media]

This seems to generally apply to every changes that you'd summon an entity with, e.g. also Rotation value:

/summon mooshroom ~ ~1.5 ~ {CustomName:"RandomUUIDCow",CustomNameVisible:1,Rotation:[270f,0f],NoAI:1,Silent:1}

The summoned Mooshroom needed 2 ticks to get into the 270°-positioning.

The default position an entity "looks" - including the player in a newly generated world - is always South, and also that Mooshroom in this example looks at South first before it gets turned into the desired position.

As that's the confirmed case now, the title should be changed, but I'll leave this to the experienced mods to find a title which can describe the totality of the problem }=)

Linked issues

Attachments

Comments 40

Nasm Nasmus

Sounds like MC-72774

Meri Diana

Thank you Nasm, it seems to be related, indeed!
Not sure if "EntityTag" and custom spawn eggs also should be consideres as own issue, as it's a new tag for entities/spawn eggs, but in the end it might be just the summon after all, or rather that they don't always have their specific attributes assigned to them in the very first tick of their existence.
I'll update my bugpost }=)

kumasasa

Made this the new base ticket, because here is the cause of the behaviour described.

KingSupernova

I have updated MC-72774 with new information and will continue to do so as I explore this bug further. Please make it the primary report.

Meri Diana

This is not a "fight about who owns a bug report", it is about fixing bugs.

As I'm frequently dealing with mobs for contraptions/inventions, I also plan to add more information if I find out anything new.

I'm not a fan of quarrels on that level, I'll leave it to the mods.
I only want this to be fixed, if possible.

Regards, Meri

30 more comments
Icedice9

Can confirm in 1.19.4.

Chuzume

Isn't this bug "work as intended"?

user-f2760

No, it's not. Why would rendering the entity incorrectly on the first frame be by design?
Priority has already been assigned a while ago, which means Mojang saw this already too. It's still open.

Chuzume

This bug has not been fixed for years and is still unassigned. This suggests that Mojang is either unwilling to fix this bug or is unable to fix it for technical reasons. Shouldn't the resolution for this bug be "work as intended" or "will not fix"?

user-f2760

Not being on the current work track != not going to get fixed. This might require a bit of a rewrite to fix that's just not a priority right now.

Age of an issue never means anything regarding it's resolution.

Meri Diana

(Unassigned)

Confirmed

Platform

Normal

Commands

ActiveEffects, EntityTag, potion-effect, spawn_egg

Minecraft 15w36d, Minecraft 15w37a, Minecraft 15w38a, Minecraft 15w38b, Minecraft 15w41b, ..., 1.19.2, 1.19.4, 1.20.1, 1.20.2 Pre-release 2, 1.20.4

Retrieved