Steps to Reproduce:
/item replace entity @s armor.head with iron_helmet[minecraft:attribute_modifiers=[{id:"test",type:"max_health",amount:4,operation:"add_value"}]]
Equip something with the max health attribute
/effect give @s instant_health 5 5
Heal to full
Leave & Rejoin world
Observed Results:
Health is reset to 20
Expected Results:
Health maintains elevated value from before leaving the game (24)
Hi!
Thank you for your report!
We're already tracking this issue at MC-17876, so I will resolve and link this ticket as a Duplicate.
I suggest also to browse through the main issue for potential fixes.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki