Mojira Archive
MC-98154

Spawn egg entity data gets ignored when creating a baby mob

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

  1. 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_"}'}]
    
  2. Use the spawn egg on a block. This will summon a sheep named "jeb_"
  3. 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_".