Mojira Archive
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.

Duplicate

84558476748

2024-05-30, 02:42 PM

2024-05-31, 02:26 PM

2024-05-31, 02:26 PM

1

2

Confirmed

(Unassigned)

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

-