mojira.dev
MC-272659

Entity data is no longer applied to baby mobs spawned by using a spawn egg on an adult mob

When a spawn egg has custom entity data, using it on an adult mob no longer applies that data to the summoned baby mob.

To reproduce

  1. Get a custom spawn egg

    /give @s minecraft:husk_spawn_egg[minecraft:entity_data={id:"minecraft:husk",HasVisualFire:1,NoAI:1b}]
  2. Spawn an adult husk

  3. Use the spawn egg on the adult mob

  4. Check if the baby mob has the HasVisualFire and/or NoAI tags:

    /data get entity @n[type=minecraft:husk,nbt={IsBaby:1b}]

Expected behavior: The tags are applied to the baby as well.

Actual behavior: The custom tags are not applied to the baby.

Linked issues

Attachments

Comments 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 (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

84558476748

(Unassigned)

Confirmed

(Unassigned)

1.20.6, 1.21 Pre-Release 1, 1.21 Pre-Release 2

Retrieved