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

Most NBT tags are not kept when a mob converts to another mob

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 15w38b, Minecraft 15w44b, Minecraft 1.9 Pre-Release 2, Minecraft 16w42a, Minecraft 1.12, Minecraft 1.12.2, Minecraft 18w02a, Minecraft 18w11a, Minecraft 1.13-pre4, Minecraft 1.13-pre5, Minecraft 1.13-pre6, Minecraft 1.13, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w02a, Minecraft 19w12b, Minecraft 19w13b, 1.14.4, 19w34a, 19w35a, 19w39a, 1.15.1, 1.15.2, 20w08a, 20w09a, 20w10a, 20w11a, 20w12a, 20w15a, 20w17a, 20w18a, 20w19a
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      Entities
    • Mojang Priority:
      Low

      Description

      The bug

      When a mob transforms into another mob (ex. zombie villager → villager, mooshroom → cow), it loses most of its NBT tags. This also affects conversions to the same mob, like slimes and magma cubes splitting.
      It is worth noting CustomName and NoAI are preserved (MC-6773 & MC-67437), so other tags are expected to be saved as well.

      Examples

      The following is a list of tags that aren't transferred between entities.

      From Zombie Zombie Villager Mooshroom Slime Villager Piglin
      To Drowned Villager Cow Smaller Slime Zombie Villager Zombified Piglin
      CanPickUpLoot - -
      CustomName (MC-6773)
      DeathLootTable
      Fire
      Health -
      Invulnerable -
      Motion
      NoAI (MC-67437) - (MC-172077)
      PersistenceRequired (MC-183860)
      PortalCooldown
      Rotation
      Silent
      Tags
      ActiveEffects

      How to reproduce

      1. Summon a zombie villager with above tags
        /summon minecraft:zombie_villager ~ ~ ~ {Health:10,Invulnerable:1,Fire:100,Tags:["foo","bar"],ConversionTime:1}
        
      1. Once the zombie villager converts to a villager, look at its NBT data
        /data get entity @e[type=villager,limit=1,sort=nearest]
        

        Note that the tags do not persist

        Attachments

        1. 2019-01-10_17.47.25.png
          2019-01-10_17.47.25.png
          647 kB
        2. 2019-01-10_17.46.57.png
          2019-01-10_17.46.57.png
          1.04 MB
        3. 2019-01-10_17.45.35.png
          2019-01-10_17.45.35.png
          1.60 MB
        4. 2019-01-10_17.44.13.png
          2019-01-10_17.44.13.png
          1.54 MB
        5. 2019-01-10_17.43.39.png
          2019-01-10_17.43.39.png
          1.29 MB
        6. 2019-01-10_17.42.27.png
          2019-01-10_17.42.27.png
          1.44 MB
        7. 2019-01-10_17.41.48.png
          2019-01-10_17.41.48.png
          1.50 MB

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              Misoloo [Helper] Misode
              Votes:
              58 Vote for this issue
              Watchers:
              32 Start watching this issue

                Dates

                Created:
                Updated:
                CHK: