Closed huimanman closed 5 months ago
Attributes being reset on death is considered a bug by Mojang: https://bugs.mojang.com/browse/MC-179940
Paper generally aims to fix bugs, especially if they are confirmed by Mojang but unfixed. I'm inclined to say this is working as intended for that reason, but maybe there are other opinions on this.
If this is fixed at all, it would need to be only fixed for modifiers applied by the command which seems complicated. Changing this behaviour for the API too would be a major API break, and needlessly annoying for plugins who then need to listen to an additional event to reapply modifiers.
Edit: Mojang has fixed MC-179940, presumably for 1.21.
This is officially "works as intended" as Mojang have fixed the linked issue. Attributes are expected to be retained on player deaths.
Expected behavior
All modifiers added by /attribute are removed upon death
Observed/Actual behavior
The modifiers added by /attribute to still exist after rebirth
Steps/models to reproduce
Plugin and Datapack List
Paper version
Other
No response