Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-272659

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.20.6, 1.21 Pre-Release 1, 1.21 Pre-Release 2
    • None
    • Confirmed
    • (Unassigned)

      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.

            Unassigned Unassigned
            798153403 84558476748
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: