1

How to make armor set using attribute modifiers?

BJIADNCJIAB 9/4/20 4:49 pm
1.3k
9/5/2020 3:30 am
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?
Posted by
BJIADNCJIAB
Level 5 : Apprentice Miner
1

  Have something to say?

JoinSign in

2

Francielly
09/04/2020 7:11 pm
Level 8 : Apprentice uwu
You're probably doing something wrong.

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"}]} 1

This will give you a full set of netherite armor, which each piece gives you 2 points of hp (1 heart)
(see health bar)
2
BJIADNCJIAB
09/05/2020 3:30 am
Level 5 : Apprentice Miner
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.
2

Welcome