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

Spawn egg EntityTag gets ignored when creating a baby mob


    • Icon: Bug 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, 1.20.3 Release Candidate 1
    • Confirmed
    • Commands
    • Low
    • Platform

      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

      1. Give yourself a spawn egg with custom NBT:
        /give @s minecraft:sheep_spawn_egg{EntityTag:{CustomNameVisible:1b,CustomName:'{"text":"jeb_"}'}}
      2. Use the spawn egg on a block. This will summon a sheep named "jeb_"
      3. 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_".

        1. 2016-02-27_11.43.35.png
          117 kB
        2. 2016-02-27_11.44.09.png
          161 kB
        3. 2016-02-27_11.44.21.png
          323 kB
        4. 2020-11-06 14-08-53.mp4
          3.29 MB
        5. 2020-11-06 14-10-06.mp4
          8.32 MB

            Unassigned Unassigned
            system_update99 SystemUpdate
            16 Vote for this issue
            14 Start watching this issue