Mojira Archive
MC-197818

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

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.

Unresolved

Insane96MCP

2020-08-12, 01:32 PM

2024-04-24, 10:33 PM

16

11

Community Consensus

(Unassigned)

1.16.2 - 1.20.51.16.2, 1.16.3, 20w46a, 20w51a, 21w05b, 1.18, 1.18.1, 1.20.1, 23w31a, 23w33a, 24w04a, 1.20.5

-