Fix Stacks and Regenerate

Refreshes the MMOItem to the latest format

/goop mmoitems fixStacks [player]

Will keep all its old stats (non-mmoitems lore will be lost tho). Acts on the entire inventory of the player.

Generates a brand new MMOItem to replace the old.

/goop mmoitems regenerate <player> <slot> [reroll] [name|lore|ench|upgr|gems|soul|exsh|mod]

The old item may be completely replaced, however you may specify not to reroll RNG stats, ot which things to keep.

Args Breakdown (What everything does)

<Player>


Only for Regenerate:

<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*


[reroll]

  • Should RNG stats of this item be rerolled?

  • Defaults to true


[name|lore|ench|upgr|gems|soul|exsh]

  • Which things to keep of this item?

    • keepName keeps the name of the item

    • keepLore keeps the lore that starts with &7

    • keepEnchantments keeps enchantments put in there by the player

    • keepUpgrades keeps the upgrade level

    • keepGemstones keeps the gemstones of the item

    • keepSoulbound keeps the soulbound

    • keepExternalSH, in general, keeps stat modifiers put by GooP MMOItems Stat command.

Tips

  • Fix stacks keeps all the item's current attributes.

    • Updates to latest lore format (colors).

    • Does not re-roll any stat (for those with spread values)

    • Keeps the item's name.

    • Refreshes lore-format.yml and stats.yml

    • Lore not written into the MMOItem stat is lost.


  • Regenerate creates a completely unrelated MMOItem of the same Type and Internal ID.

    • Will re-roll RNG stats.

    • Removes gem-stones (the gem stones will be lost).

    • You may use regenerate with reroll in false, and all keep options, to get the the same effect of fixStacks for most scenarios (internally these two commands act entirely differently).


  • Neither of these commands affects vanilla items. They can be safely called on entire inventories.

    • Not that you have an alternative with fixstacks.

      • Use the permission gunging_ootilities_plugin.mmoitems.fixstacking to allow players to call fixstacks.

      • Use the permission gunging_ootilities_plugin.mmoitems.fixstacking.others to allow players to call fixstacks on other player's inventories.


  • FixStacks technically never succeeds, effectively not participating in the Chaining Commands system.


  • MMOItems does support keeping advanced enchantments ~ thus you may keep them with the aenc keyword.

Simple Examples:

/goop mmoitems regenerate gunging 0-8

Replaces all MMOItems in gunging's hotbar with a brand new generated version of each.


/goop mmoitems regenerate cocopad ec*,ec*.* false ench upgr gems exsh

Cleans the items of cocopad's enderchest. They may lose name and lore but they will become updated to the latest MMOItems format in its neatest form without having to reapply upgrades/gems/exsh/enchantments. My personal choice of fixstacks.


/goop mmoitems fixstacks

Updates every MMOItem in the sender's inventory to the latest MMOItems format.