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

Some attributes are not saved to NBT upon entity spawn (including player respawn)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.16.2, 1.16.3, 20w46a, 20w51a, 21w05b, 1.18, 1.18.1, 1.20.1, 23w31a, 23w33a, 24w04a
    • None
    • Community Consensus
    • (Unassigned)

      When a mob spawns (either spawners, naturally or eggs) it is missing the generic.max_health attribute.

      To reproduce:

      1. Create a new world
      2. Find a mob (either monster or peaceful)
      3. Run the command (I did this with a sheep)
        /data get entity @e[type=minecraft:sheep,limit=1,sort=nearest] Attributes
      1. As you can see only the follow_range and movement_speed attributes are present, max_health is missing.

            Unassigned Unassigned
            insane96mcp Insane96MCP
            Votes:
            14 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              CHK: