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

Field determining whether or not a wither skull is blue is not saved to and read from NBT

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 23w41a
    • Minecraft 1.8.7, Minecraft 1.9.2, Minecraft 16w38a, Minecraft 1.12.2, Minecraft 18w05a, Minecraft 18w14b, Minecraft 1.13-pre2, Minecraft 18w50a, 1.16.4, 1.17.1, 1.18.1, 1.19.3, 23w17a, 1.20 Pre-release 1, 1.20.2
    • Confirmed
    • Save Data
    • Low

      The bug

      Wither bosses can shoot blue wither skull if no enemy is around and there is enough space. The value if a wither skull is blue or not is not saved in the NBT data which means it loses this after reloading it, you cannot summon them in and you cannot test for them.

      The reason

      The following is based on a decompiled version of Minecraft 1.9 using MCP 9.24 beta.

      The reason why this happens is because the field net.minecraft.entity.projectile.EntityWitherSkull.INVULNERABLE is not written to the NBT data and cannot be set based on the NBT data.

      Note: A tag for this field should not be named "Invulnerable" as this value is only used for less destroyed blocks when it explodes and for rendering. The behaviour of the "Invulnerable" tag is not affected by this.

            dinnerbone [Mojang] Nathan Adams
            marcono1234 Marcono1234
            Votes:
            19 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: