Naturally spawned zombies can sometimes being a leader zombie, with have extra health, however this only applied to their maximum health, not the current health, their current health is still 20. This makes their spawning is useless, unless the player is crazy enough to manually heal them with splash potion of harming.
Linked issues
is duplicated by 1
relates to 1
Attachments
Comments 11
I think this is the same issue with MC-202104.
This is marked as Resolved, but mobs with the leader zombie Health bonus still spawn with only 20 Health (I have experienced this on release 1.16.5 and on snapshot 21w40a).
My guess is that leader zombies get extra max hp, but they still spawn in with the default ammount of hp a normal zombie would have, or they spawn with 20 Health and the bonus is
somehow applied after that.
Reopened and confirmed. Zombies have a small chance depending on the difficulty to get bonus attributes, like knockback resistance/reinforcement chance. There's also a buff to max health, but the current health remains at 20, so unless the zombie gets healed with a harming potion, the difference will never be noticed.
@unknown, The video is not related with this issue, zombies spawned with leader zombie bonus are still have 20.0 maxhealth attribute, but they have an unique modifier for this attribute called leader zombie bonus.
@4ebugger, their base max health attribute will always be 20, modifiers don't change the base, they add on top of that, you can see their current max health by typing
/attribute @e[type=zombie,sort=nearest,limit=1] generic.max_health get
and see their current max health including what the modifiers added.
Mobs just spawn with their default current hp, even if their max health is higher than their default, in the latest snapshot it was fixed for players, but the problem still exists for mobs. I'm assuming how mobs spawn and how players respawn is handled differently, so fixing one wouldn't fix the other.
I removed it since you asked, but this problem isn't just about that zombie leader bonus, all that thing does is make them spawn with more max health, and when a mob spawns with more max health than default they will only have their default health, the two things aren't mutually exclusive. any mob spawned, in any way they can spawn with more max health than their default, will only have their default health.
I'm assuming how much health they spawn with is hard coded, and therefore when they have a modifier they don't spawn with their actual max health.
What do you mean by, "leader zombies"?