If you use a spawn egg that has custom minecraft:entity_data
set, usually it will summon a mob with that entity data. However, if you use the spawn egg on an adult mob, it will just spawn the baby variant of that mob without any of the custom entity data.
To reproduce
Give yourself a spawn egg with custom NBT:
/give @s minecraft:sheep_spawn_egg[minecraft:entity_data={id:"minecraft:sheep",CustomNameVisible:1b,CustomName:'{"text":"jeb_"}'}]
Use the spawn egg on a block. This will summon a sheep named "jeb_"
Use the spawn egg while looking at the sheep you just summoned
Observed behaviour
A new baby sheep is summoned. The baby sheep does not have a custom name.
Expected behaviour
A new baby sheep is summoned. The baby sheep is named "jeb_".
Linked issues
is duplicated by 4
relates to 1
Attachments
Comments 9
I think it's fixed in 1.10. I tried using a husk spawn egg with a command and any baby zombies are spawned as baby husks.
Confirmed just recently in 20w45a.
I just noticed when I used a spawn egg with "IsImmuneToZombification" for the piglin and hoglin, and instead of retaining itself as a hoglin/piglin, they turn into a zoglin/zombified piglin.
It's more than that actually: the entirety of
EntityTag
is ignored.