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
- 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_".
2016-02-27, 11:45 AM
2024-09-11, 08:07 PM
17
14
Minecraft 1.9 Pre-Release 4 - 24w36a
Minecraft 1.9 Pre-Release 4, Minecraft 1.9, Minecraft 1.10, Minecraft 1.12.1, Minecraft 19w11a, 1.15.2, 1.16 Release Candidate 1, 1.16, 1.16.4, 20w45a, 1.16.5, 21w08a, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.4 Pre-release 3, 1.20.3 Release Candidate 1, 1.20.6, 1.21 Pre-Release 1, 1.21 Pre-Release 2, 1.21.1, 24w36a
-