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

Slimes health resets to max when setting any nbt-tag

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 16w35a
    • Minecraft 16w02a, Minecraft 1.9, Minecraft 1.9.4, Minecraft 16w20a, Minecraft 1.10 Pre-Release 1, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w33a
    • None
    • Windows 10, Java 1.8.0_25 64bit
    • Community Consensus

      So the problem is as follows:

      Whenever you change any nbt-tag of a Slime its health reverts to his max health.

      Steps to reproduce:

      • summon in a slime with at least size 1 (since size 0 dies after one hit)
      • use "/entitydata @e[type=Slime] {}" and search for the health tag
      • hit it once
        > check again and its health went down
      • now change any nbt-tag like CustomName with for example "/entitydata @e[type=Slime] {CustomName:"test"}

        > the command displays correct health but if you test it again with the empty brackets {} it will show you the slimes max health, meaning it reseted

      Tested with other mobs (Spider, Skeleton, Pig) and none had this problem

            jeb [Mojang] Jeb (Jens Bergensten)
            Possseidon Dominik Vogel
            Votes:
            6 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: