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

    • Bug
    • Status: Reopened
    • Resolution: Unresolved
    • 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, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16 Pre-release 5, 1.16.1, 20w27a, 20w30a, 1.16.2, 1.16.3, 1.16.4, 20w46a, 20w51a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w07a, 21w13a, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19 Pre-release 1, 1.19, 1.19.1 Release Candidate 2
    • None
    • Confirmed
    • Entities
    • 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 Magma Cube Villager Piglin / Piglin Brute Villager Husk Skeleton Hoglin Tadpole
      To Drowned Villager Cow Smaller Slime Smaller
      Magma
      Cube
      Zombie Villager Zombified Piglin Witch Zombie Stray Zoglin Frog
      ActiveEffects
      Attributes
      CanPickUpLoot - - -
      CustomName (MC-6773)
      DeathLootTable
      Fire
      Health - - -
      Invulnerable -
      LeftHanded
      Motion
      NoAI (MC-67437) -
      (MC-148935)
      -
      (MC-172077)
      NoGravity
      PersistenceRequired (MC-183860) Always 1b
      (MC-239883)
      PortalCooldown
      Rotation
      Silent
      Tags
      UUID - -

      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.41.48.png
          2019-01-10_17.41.48.png
          1.50 MB
        2. 2019-01-10_17.42.27.png
          2019-01-10_17.42.27.png
          1.44 MB
        3. 2019-01-10_17.43.39.png
          2019-01-10_17.43.39.png
          1.29 MB
        4. 2019-01-10_17.44.13.png
          2019-01-10_17.44.13.png
          1.54 MB
        5. 2019-01-10_17.45.35.png
          2019-01-10_17.45.35.png
          1.60 MB
        6. 2019-01-10_17.46.57.png
          2019-01-10_17.46.57.png
          1.04 MB
        7. 2019-01-10_17.47.25.png
          2019-01-10_17.47.25.png
          647 kB
        8. MC-88967.mp4
          3.73 MB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Misoloo [Helper] Misode
              Votes:
              95 Vote for this issue
              Watchers:
              45 Start watching this issue

              Dates

                Created:
                Updated:
                CHK: