mojira.dev
MC-87661

Client does not merge EntityTag for spawn eggs, resulting in visual inconsistencies

Expected behavior:

Put EntityTag on Zombie spawn egg:

/give @p spawn_egg 1 0 {EntityTag:{id:"minecraft:zombie",IsBaby:0b,HandItems:[],ArmorItems:[]}}

For 1.13:

/give @p minecraft:zombie_spawn_egg{EntityTag:{IsBaby:0b,HandItems:[],ArmorItems:[]}}

Spawn large number of zombies and they should all be identical.

Actual behavior:

Zombies have varied equipment and type as they would without EntityTag.

This is an issue for the client only; the server has the correct data. Logging out and back in will fix client-side issues.

Attachments

Comments 16

Comfirmed for 16w40a
The new command is:
/give @p spawn_egg 1 0 {EntityTag:{id:"minecraft:zombie",IsBaby:0b,IsVillager:0b,HandItems:[],ArmorItems:[]}}

It seems to be the same like my problem:
I got a custom spawn egg that spawns an equipped Skeleton. In the right (main) hand it holds a bone, in the left (off ) hand it holds a shield. Randomly it can occur that it will be spawned as lefthanded and thus swap what it's holding, with the very same spawn egg!

I could reproduce it, video here: https://youtu.be/dB5kay1g6CI

Give-command spawn egg (I did not insert the custom pattern on the shield to make the command not even longer):

/give @p spawn_egg 1 0 {EntityTag:{id:"minecraft:skeleton",ArmorItems:[{id:golden_boots,Count:1b,tag:{ench:[{id:0,lvl:1}]}},{id:chainmail_leggings,Count:1b,tag:{ench:[{id:0,lvl:1}]}},{id:chainmail_chestplate,Count:1b,tag:{ench:[{id:0,lvl:1}]}},{id:lapis_block,Count:1b}],HandItems:[{id:bone,Count:1b},{id:shield,Count:1b}],PersistenceRequired:1,NoAI:1,Silent:1}}

Out of the approximately less than 100 mobs around 10 were lefthanded.

So, confirmed for 1.11 release.

Confirmed for 1.11.2

Would this be what is affecting the Silent and NoAI tags I'm adding to spawn eggs?

/summon item ~ ~ ~ {CustomName:Zombie Spawner,CustomNameVisible:1,Motion:[0.0,0.3,0.0],Item:{id:"minecraft:spawn_egg",Count:1b,tag:{display:{Name:Zombie Spawner},EntityTag:{id:"minecraft:endermite",Silent:1b,NoAI:1,Tags:["Zombiespawner","Spawner"],DeathLootTable:"minecraft:empty"}}}}}

Even though Silent, NoAI, Tags, and DeathLootTable are all in the same set of {}, Tags and DeathLootTable still work when summoning the endermite, yet Silent and NoAI don't work. Found this while making a one command thing.

If this is unrelated to this bug (which I doubt), please let me know so I can make a new post. (I trust I'm in the right place though.

Would this be what is affecting the Silent and NoAI tags I'm adding to spawn eggs?

No, I don't think so. I just tested

/give @p minecraft:spawn_egg 1 0 {EntityTag:{id:zombie,NoAI:1b,Silent:1b}}

(albeit in snapshot 17w17b) and it worked just fine. Did you manage to get it solved?

6 more comments

Fixed in 1.15.2 or earlier.

Can someone else who experienced this bug confirm that this is fixed?

I'm not sure, was this bugpost here also about babies being spawned, regardless of IsBaby:0?
In that case, the bug still present in 1.16 rc-1, but if this bugpost here is solely about them appearing with equipment, and babies occurring despite they shouldn't would be only tracked in MC-124435: I couldn't spawn any zombies wearing equipment in a few minutes of testing.

[media]


See also my older, previous comment.

As there is no server-client desync when babies are spawned, to me it makes sense to track that in MC-124435 instead where it is already explained clearly. The weapon/armour desync that was initially reported here no longer occurs.

Ok for me, I'll keep track of that in MC-124435, and as I stated about 2.5 years ago, I couldn't reproduce the desync already back then, so it might have been fixed since long, which is good 🙂

SliceThePi

(Unassigned)

Confirmed

(Unassigned)

Minecraft 15w35e, Minecraft 15w44b, Minecraft 1.10.2, Minecraft 16w40a, Minecraft 1.11, ..., Minecraft 1.12.2, Minecraft 17w43b, Minecraft 17w46a, Minecraft 17w48a, Minecraft 18w03b

1.15.2

Retrieved