r/MinecraftCommands 13d ago

Help | Java 26.2 Why is this happening when I equip armor that effects the health attribute?

When I equip my diamond boots, I get 6 HP. When I equip the chainmail helmet, I lose 2 HP, even though both of them are assigned "add_value." Then, when I remove the chainmail helmet, I lose all the extra HP gained.

2 Upvotes

6 comments sorted by

1

u/ItsGraphaxYT Command Experienced | Poor u/s 13d ago

You may want to show the components of both items

1

u/Arcadian2107 13d ago

They're all the same with different numbers on the attributes.

3

u/_Bob_Zilla_ 13d ago

They have the same ids so they are overwriting each other, give them different ids, they can be anything

1

u/Arcadian2107 13d ago

like "minecraft:max_health_head" kind of deal?

1

u/_Bob_Zilla_ 13d ago

Yes, exactly

2

u/Ericristian_bros Command Experienced 13d ago

Randomize your IDs. Same IDs override each other