/goop nbt kResistance <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 knockback resistance 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 knockback resistance of the item. See Plus Minus Percent page for full explanation.
The name of the scoreboard objective that will store (ten times) the final knockback resistance value.
If used on a vanilla item, it will edit the vanilla knockback resistance attribute.
If used on a MMOItem, it will edit the knockback resistance MMOItem Stat.
Be careful when adding knockback resistance on MMOitems, at a value of 1 the player will not take any knockback.
You can use +0 as the value (adding 0) to read the knockback resistance 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 has originally 0.1 knockback resistance
+0.9 makes the total be 1
0.5 makes the total be 0.5
-0.025 makes the total be -0.075
n0.2 makes the total be -0.2
800% makes the total be 0.8
8% makes the total be 0.04
+800% makes the total be 0.9
-800% makes the total be -0.7
n800% makes the total be -0.8
Basically, % indicates multiplication, ± means it will be added, and n indicates it will be multiplied by -1 at the end.
/goop nbt kresistance c0c0p4d mainhand +0.2
Will add 0.2 to the knockback resistance attribute of whatever c0c0p4d is holding.
/goop nbt kresistance BreezyBread26 head 1
Will set the knockback resistance attribute of BreezyBread26's helmet to 1.
/goop nbt kresistance dwatsX head,chest,legs,feet,mainhand,offhand +0.2 totalAntiKB
Will add 0.2 to the knockback resistance attribute of all the equipped items of player dwatsX, counting the final knockback resistance, adding it up, and then store ten times the result in as dwatsX' totalAntiKB score.
/goop nbt kresistance EpicName 0-4,offhand 0.2
Will set the knockback resistance attribute of EpicName's items in his first 5 hotbar slots and offhand slot to 0.2.