/goop nbt luck <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 luck 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 luck of the item. See Plus Minus Percent page for full explanation.
The name of the scoreboard objective that will store (ten times) the final luck value.
If used on a vanilla item, it will edit the vanilla luck attribute.
If used on a MMOItem, it will edit the Luck MMOItem Stat.
You can use +0 as the value (adding 0) to read the luck 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 sword has originally 1.5 luck
+4 makes the total be 5.5
4 makes the total be 4
-0.5 makes the total be 1
n2 makes the total be -2
800% makes the total be 12
8% makes the total be 0.12
+800% makes the total be 13.5
-800% makes the total be -10.5
n800% makes the total be -12
Basically, % indicates multiplication, ± means it will be added, and n indicates it will be multiplied by -1 at the end.
/goop nbt luck KittyKatBug mainhand +4
Will add 4 to the luck attribute of whatever KittyKatBug is holding.
/goop nbt luck OMR2K legs -2
Will set the luck attribute of OMR2K's helmet to -2.
/goop nbt luck frickitsnick head,chest,legs,feet,mainhand,offhand +0.5 totalLuck
Will add 0.5 to the luck attribute of all the equipped items of player frickitsnick, counting the final luck, adding it up, and then store ten times the result in as frickitsnick's totalLuck score.
/goop nbt luck Leafala 0-6,offhand 2
Will set the luck attribute of Leafala's items in her first 7 hotbar slots and offhand slot to 2.