1
How to make armor set using attribute modifiers?
So... i'm trying to create special armor set, in which every piece of armor gives player +2 hp. So wearing whole set gives player 8 hp. But for some reason player only get attributes just from last peace of armor (wearing whole set still gives just 2hp). Is there way to fix this?
2
You're probably doing something wrong.
Here's an example:
This will give you a full set of netherite armor, which each piece gives you 2 points of hp (1 heart)
(see health bar)

Here's an example:
/give @s minecraft:netherite_helmet{AttributeModifiers:[{AttributeName:"generic.max_health",Name:"generic.max_health",Amount:2,Operation:0,UUID:[I;1081255672,-768260519,-1700889410,-1869656073],Slot:"head"}]} 1
/give @s minecraft:netherite_chestplate{AttributeModifiers:[{AttributeName:"generic.max_health",Name:"generic.max_health",Amount:2,Operation:0,UUID:[I;-1299012649,-1399765660,-1428472150,-1550824459],Slot:"chest"}]} 1
/give @s minecraft:netherite_leggings{AttributeModifiers:[{AttributeName:"generic.max_health",Name:"generic.max_health",Amount:2,Operation:0,UUID:[I;1956643061,1751730255,-2124651941,-1903990630],Slot:"legs"}]} 1
/give @s minecraft:netherite_boots{AttributeModifiers:[{AttributeName:"generic.max_health",Name:"generic.max_health",Amount:2,Operation:0,UUID:[I;1479946943,1743210701,-1114176789,-766515596],Slot:"feet"}]} 1This will give you a full set of netherite armor, which each piece gives you 2 points of hp (1 heart)
(see health bar)

Yay! Thank you again for your help, It is a third time you anwer me. Donnow know what could go wrong, i'm used MCStacker to generate commads.
