/goop nbt damage <player> <slot> [±]<value>[%] [prevent-breaking] [use-max] [objective]
This edits the NBT data of the item(s) in the specified inventory slots.
Also stores the final damage value 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 in which items will be damaged/repaired. To read on slots see Inventory Slots.
Examples: mainhand, offhand, chest, feet, any, 0-8, ec*
The operation to apply to the damage of the item. See Plus Minus Percent page for full explanation.
If set to true, the items will never go under 1 remaining use.
Default is true.
If set to true, operations that include the % operator will modify their behaviour:
Using 24% will set the item damage to 24% of the max damage this item can have (which replaces the damage it already had).
Using +24% will damage the item by 24% of the max damage it can have (which adds to the damage it already has).
Default is false.
The name of the scoreboard objective that will store (ten times) the final damage value.
You can use the value 0 to fully repair an item.
Since it will have 0 damage, you get it?
Targets MMOItems durability if enabled in the MMOItem, in case you were wondering.
Yes, it also updates the lore.
To add or remove a percent of the max durability of the item use [use-max] option.
Only affects operations that use the % operator.
You may allow an item to break by setting PreventBreak to false.
This is because it is enabled by default
MMOItems that have the Lost-When-Broken set to false cannot be broken this way
/goop nbt damage gunging mainhand 50%
Repairs half the damage of gunging's mainhand item.
/goop nbt damage Nashiie mainhand 20% true true
Sets the durability in Nashiie's mainhand item to 80% of its max durability (so that it currently has 20% of its max damage).
/goop nbt damage Nashiie mainhand +20% true true
Damages the item in Nashiie's mainhand by 20% of its max damage (max durability). Will deal a lot more damage to netherite items than gold items.
/goop nbt damage Nashiie mainhand -20% true true
Repairs the item in Nashiie's mainhand by 20% of its max durability because it applies negative damage. Will repair netherite items a lot more than it will repair gold items.
/goop nbt damage @a[distance=..10] mainhand,offhand,head,chest,legs,feet 0
Fully repairs the equipment of everyone within 10 blocks of you (Does not work if run from the console).
/goop nbt damage cocopad mainhand 10000 oS: goop nbt damage @s mainhand 90%
Basically sets the cocopad's held item to 10% remaining durability. (Dealing 10k damage without breaking, then immediately repairing 10% of the damage).
I'll leave making it Paladin Ability to you, this is only the mythic skill, but this simply runs a command that:
Repairs the armor of players in vicinity (GooP)
Makes particles (MythicMobs)
Repair intensity fades with distance (MythicMobs)
Something neat about sending the message this way (using oS: goop tell) is that it will only actually send if the target player had any armor piece equipped, so no one wearing no armor will be ackwarldy told their armor got repaired.
'Repair armor paladin ability when?'
Several players