Attribute modifiers applied through the /attribute command are not preserved after the player dies. When a modifier is added to an attribute such as minecraft:max_health, it works correctly while the player is alive, but is completely removed upon death. After respawning, the attribute returns to its default value, as if the modifier had never been applied.
This behavior affects attribute modifiers added with commands like:attribute @p minecraft:max_health modifier add id 20 add_value
Steps to Reproduce
Run:
attribute @p minecraft:max_health modifier add id 20 add_valueDie (for example, using
/kill @p)Respawn
Run:
attribute @p minecraft:max_health modifier get id
Attachments
Comments 4
MC-179940 covers the player’s base attributes, which are preserved upon death; that fix does not however extend to attribute modifiers.
Cree un mundo y por una seción se corrompió y se junto con otra semilla, osea yo le puse la semilla 3160785465770777471 y se junto con la semilla 0, no sé cómo arreglarlo y tampoco se como explicarlo mejor, si me contactan, les mandaré vídeo, gracias.
Thank you for your report!
After consideration, the issue is being closed as Working as Intended.
Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.
Full Version History – Snapshot Version History – The official Minecraft feedback site
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
MC-179940 states this as fixed in Snapshot 24w20a. Is this a potential regression?