mojira.dev
MC-302141

Max Health Equipped Armor Attributes Reset when Join World

Steps to Reproduce:

  1. /item replace entity @s armor.head with iron_helmet[minecraft:attribute_modifiers=[{id:"test",type:"max_health",amount:4,operation:"add_value"}]]

    1. Equip something with the max health attribute

  2. /effect give @s instant_health 5 5

    1. Heal to full

  3. Leave & Rejoin world

Observed Results:
Health is reset to 20

Expected Results:
Health maintains elevated value from before leaving the game (24)

Linked issues

Comments 1

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 

RoarkCats

(Unassigned)

Unconfirmed

(Unassigned)

1.21.8

Retrieved