/goop nbt mHealth <player> <slot> [±]<value>[%] [objective]
This edits the NBT data of the item(s) in the specified inventory slots.
Also stores the final total value of max health as the score of <player> in the [objective] objective.
Player whose inventory items' NBT will be edited.
Supports a few vanilla selectors.
[1.6.5] May be an Entity (dropped item) UUID
The slot in the player's inventory that will be checked. To read on slots see Inventory Slots.
Examples: mainhand, offhand, chest, feet, any, 0-8, ec*
The operation to apply to the max health of the item. See Plus Minus Percent page for full explanation.
The name of the scoreboard objective that will store (ten times) the final max health value.
If used on a vanilla item, it will edit the vanilla max health attribute.
If used on a MMOItem, it will edit the Max Health MMOItem Stat.
You can use +0 as the value (adding 0) to read the max health of an item.
You'd specify a score, and to have some information on the first decimal place, the score will be 10 times the total value.
Can be used to get the total value of this attribute on a player's equipment without the use of MythicMob MMOStat Placeholders.
Just use head, chest, legs, feet, mainhand, offhand as the <slot>.
The power of the Plus Minus Percent argument is better explained in its own page, but a few examples:
Consider a chestplate originally has 0 max health.
+4 makes the total be 4
8 makes the total be 8
-2 makes the total be -2
n1 makes the total be -1
800% makes the total be 40
10% makes the total be 0 as the total value is 0, if the start value would have been 5 the final value would be 1
+800% makes the total be 0
-800% makes the total be 0
n800% makes the total be -0
Basically, % indicates multiplication, ± means it will be added, and n indicates it will be multiplied by -1 at the end.
/goop nbt mhealth Vlekkie2005 head +1
Will add 1 to the max health attribute of whatever Vlekkie2005 is wearing on his head.
/goop nbt mhealth Brooks 0 7
Will set the max health attribute of Brooks' first hotbar slot to 7.
/goop nbt mhealth Xakaa head,chest,legs,feet,offhand +4 totalHealth
Will add 4 to the max health attribute of all the equipped items except the mainhand of player Xakaa, counting the final health, adding it up, and then store ten times the result in as Xakaa's totalHealth score.
/goop nbt mhealth Notch 0-5,mainhand 3
Will set the max health attribute of Notch's items in his first 6 hotbar slots and mainhand slot to 3.