Skip to content

Conversation

@HaHaWTH
Copy link
Member

@HaHaWTH HaHaWTH commented Jan 3, 2026

This pull request addresses MC-17876, which causes attribute modifiers of equipments are applied after the entity health is set, leading to health loss on reload/rejoin.

This PR fixed the issue by loading equipment attributes before the max health is determined to prevent the health from being clamped to base value.

To reproduce

Type command /item replace entity @s armor.head with iron_helmet[minecraft:attribute_modifiers=[ {id:"test",type:"max_health",amount:6,operation:"add_value"}]], quit the server after health regen, the extra health will lost upon rejoin without this fix.

@Dreeam-qwq Dreeam-qwq added the type: fix Pull request for fixing bug label Jan 3, 2026
@HaHaWTH
Copy link
Member Author

HaHaWTH commented Jan 4, 2026

need to be reimplemented, now drafted

@HaHaWTH HaHaWTH marked this pull request as draft January 4, 2026 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Pull request for fixing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants