Naturally spawned zombies, zombified piglins, etc. can sometimes be a leader 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 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 13
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.
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.
To reproduce, put game into hard mode and creative. Set time to night. Then run this command:
/scoreboard objectives add dummyobjective dummy
Now run this command so we can see when a leader zombie is found
/scoreboard objectives setdisplay sidebar dummyobjective
Fly around the world at night, running this command every so often:
/execute as @e[type=zombie] store success score @s dummyobjective run attribute @s spawn_reinforcements modifier value get minecraft:leader_zombie_bonus
When a UUID shows with a score of 1, you found a leader zombie. Run the data get command on the UUID shown and you can see the zombie has the health boost attribute but their health value is still at 20 instead of the new max health.
/data get entity <UUID>
What do you mean by, "leader zombies"?