Modifier
Adds a modifier to a MMOItem (lucky..., sharp..., ...of doom)
goop mmoitems modifier <player> <slot> <name> [use-global] [use-chances]
May use the global modifiers defined in the modifier folder as well.
Args Breakdown (What everything does)
<Player>
The players whose inventory will be checked, and score changed.
Supports a few vanilla selectors.
<Slot>
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*
<name>
Name of the modifier to be applied
Searches first in the modifiers of the item, then global modifiers.
[use-global]
If true, any modifiers in any file inside the plugins/MMOItems/modifiers folder will have its modifiers available to be used in this command.
[use-chances]
When writing modifiers onto item configurations (the files within plugins/MMOItems/item), one may specify a chance for each modifier to be generated with the item. Enable this to respect those chances.
Tips
Use the following command to set the modifier of an item (not just add it):
/goop mmoitems modifier %player% %slot% none oS: goop mmoitems modifier @s @t lucky
The argument [use-chances] only affects the random keyword.
You can only add global modifiers to vanilla items, and the command will fail if you disable global modifiers.
This command will convert vanilla items into MMOItems, according to the type chart in MMOItems Converter page.
Simple Examples:
/goop mmoitems modifier ninjallama mainhand none oS: goop mmoitems modifier @s @t impending-doom
Changes the modifiers of ninjallama's held item to 'of impending doom'
/goop mmoitems modifier Wammets head,chest,legs,feet Spicy
Makes Wammets' armor spicy. If the command is used again, her worn armor will become even spicier.
/goop mmoitems modifier %player% %provided-slot% none oS: goop mmoitems modifier @s @t random false true
Allows to make an item with an OnApply Command that rerolls the modifiers of an item.
Three times Spicy enchanter hood.