mojira.dev
MC-111889

max health atribute isnt stacking properly

when you give yourself multiple items with the max health attribute and equip them it doesnt add more effectiveness
for example if i have boots with +10 max health and a sword with +10 max health i only get +10 max health were-as i should get 10 + 10 or 20 extra max health

Comments 5

Please provide the command you're using.

Could be the usage of the same UUIDs on both equipment sets.

here is command to give nearest droped item the max health attribute of +20 hp:
/entitydata @e[type=Item,c=1] {Item:{tag:{AttributeModifiers:[
{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:20,Operation:0,UUIDLeast:941137,UUIDMost:134331}
]}}}

As @unknown stated, you cannot use multiple of the same UUID for modifiers. The IDs must be "Universally Unique". Each of the maxHealth modifiers will have to have a unique UUID.

thanks ill see if thats my isue

yep that`s the problem
also you don`t happen to know how i could give each item a different uuid with the same entitydata command

tristan poole

(Unassigned)

Unconfirmed

Minecraft 1.11.2

Retrieved