Details
-
Bug
-
Resolution: Unresolved
-
None
-
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
-
Confirmed
-
Commands
-
Low
Description
If you use a spawn egg that has custom EntityTag 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{EntityTag:{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_".
Attachments
Issue Links
- is duplicated by
-
MC-208731 After obtaining a spawn egg for piglins that shouldn't zombify, placing the first piglin works as intended. But when placing the egg on another piglin to create a baby piglin, the piglin will become a zombie piglin if this happens in the overworld.
- Resolved
-
MC-251397 Spawn Eggs with custom NBT still spawn a normal baby if used on an adult mob
- Resolved
-
MC-260710 Spawn Egg with EntityTag can't summon mob with NBT correctly in some cases
- Resolved