Upgrade

Modifies the upgrade level of the target MMOItem

goop mmoitems upgrade <player> <slot> [±]<levels>[%] [break max] [objective] [±][score][%]

May exceed the max upgrades, or even go negative, if so you choose. Can also output the upgrade level into a scoreboard.

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*


[±]<levels>[%]

  • The operation to perform on a level, for example +2 to increase level by two, or just a plain numer like 5 to set the level to 5.

  • Use read keyword to perform no operation and just read the level.


[break max]

  • Ignore the max upgrade level of this item?

  • Default is false


[objective]

  • Scoreboard objective to write the result onto


[±][score][%]

  • Operation to perform on the player's score if this succeeds.

  • For example, add ten with +10, or multiply by two with 200%

  • Also suppports the level keyword, which will then set the score to the sum of the levels of all the items targetted with the <slot>

Tips

  • One could make a deadly PvP corrossion spell that downgrades the enemies' items by 1 level.

    • Or a rust monster that does this to people.


  • You cant upgrade items that have no upgrade template defined in their Upgrade Stat

Only items with an upgrade template can be upgraded

Simple Examples:

/goop mmoitems upgrade atuosto head,chest,legs,feet -1

Downgrade's atuosto's armor by 1 level


/goop mmoitems upgrade %player% %provided-slot% +1 true

When used as an OnApply Command, this consumable can upgrade items even past the normal level cap.