mojira.dev
MC-274195

Max health attribute bugged when equipping two or more pieces of armor with the attribute on each pieces of armor.

If you use a command to give yourself a single piece of armor with a max health attribute on it like "give @a netherite_chestplate[attribute_modifiers={modifiers:[

{type:"generic.max_health",amount:2,slot:chest,id:"generic.max_health",uuid:[I;-12466,14410,11358,-28820],operation:add_value}

]}]" it will work fine. But if you have two pieces, only the one which you equipped last will add its effects to the player even if the value is lower. In older versions of the game the attributes from both armor pieces would be applied to the player unlike 1.21. Also if you have 2 pieces of armor with the attribute from an older version of the game and updated the world, it would work normally. (The bug only happens when you create the armor with commands in the current version (1.21).)

Linked issues

Attachments

Comments 2

Can confirm on the latest version.

  • Converting a world from 1.20.6 makes the attributes work on the oldest armor.

  • Added

[media]
  • .
    (The first armor in my inventory is from version 1.20.6)

Thank you for your report!
We're tracking this issue in MC-16466, so this ticket is being resolved and linked as a duplicate.

That ticket has already been resolved as working as intended, which means this is not considered a bug and won't be fixed. Please do not leave a comment on the linked ticket.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

MateoGamingYT

(Unassigned)

Unconfirmed

(Unassigned)

Armor, Commands

1.21

Retrieved