mojira.dev
MC-251397

Spawn Eggs with custom NBT still spawn a normal baby if used on an adult mob

If you use a spawn egg that has a custom EntityTag NBT tag on an adult mob, it will just spawn the baby variant and ignore the custom NBT.

How to replicate:
1. Give yourself a Spawn Egg with custom NBT, like this:

/give @s minecraft:villager_spawn_egg{EntityTag:{CustomNameVisible:1b,CustomName:'{"text":"I am a Villager"}'}}

2. Using the Spawn Egg on a block will result in a villager with the name tag 'I am a villager!'
3. But using the Spawn Egg on the villager will result in a baby villager with no name tag!

Attachments

Comments 3

Can confirm in 1.19.1. This issue is not environmentally exclusive.

Can confirm in 1.19.2.

Thank you for your report!
We're tracking this issue in MC-98154, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Helmo2019

(Unassigned)

Confirmed

Items

1.18.2, 1.19, 1.19.1, 1.19.2

Retrieved