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
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      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; though I imagine most NBT tags aren't.

      • Health
      • Invulnerable
      • Fire
      • Motion
      • Tags (scoreboard tags)
      • Rotation
      • PersistenceRequired

      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}
        
      2. 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

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                qmagnet qmagnet
              • Votes:
                24 Vote for this issue
                Watchers:
                17 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: