samolego / HealthCare

Neat serverside mob health tags.
https://modrinth.com/mod/healthcare
MIT License
8 stars 3 forks source link

Certain mobs report incorrect health and max health values until damaged #5

Closed James103 closed 2 years ago

James103 commented 3 years ago

When spawning in the following mobs, that mob is likely to report an incorrect health and max health value of 53 HP instead of the expected 15-30 HP:

The above mobs all have different max health depending on random factors. Spawning them in with /summon [mob] ~ ~ ~ {} gives them 53 HP and 53 max HP, as expected. Spawning them in without NBT will cause them to show up as having 53 out of 53 HP until these mobs are damaged, in which case the mob will remain at full health but its max health will change to its true value (15 to 30 HP). This means that what would normally be a 2-hit kill (Netherite Sword crits) on a horse now takes 3 hits to kill due to the absorption.

This report was made using HealthCare 1.0.2, however an edit was made to the mod's source code to improve precision on the health display which would have incremented the version to 1.0.3. However, the same issue occurs in vanilla Minecraft 1.16.5, see MC-178383 and MC-203414.