🔵 Upgrade
The Upgrade feature allows you to enhance your items, making them significantly more effective by improving their stats. You have full control to customize the upgrade mechanics, including success rates, material requirements, and stat increases, through the plugin's configuration file to perfectly suit your server's design.

🔧 How Upgrading Works
For an item to be eligible for an upgrade using nwMMOUpgrade, it must first be assigned an Upgrade-Template.
This template dictates the specific upgrade path and potential stat progressions for that particular item.
The plugin will reference the stats and upgrade rules defined within the Upgrade-Template that the item possesses. If an item does not have an Upgrade-Template applied to it, it cannot be processed by the upgrade system.
🔑 Permission
Each station has its own permission requirement in order to be used. You can customize or change the permission to suit your needs.
1. Material Item
🧱 Material Requirement System
If enabled, this means the operation of the station will require the specified materials in order to function as intended. You can define one or more material items, and the station will only execute if the player provides the required materials.
Note: type is the type of the MMOItem. id is the ID of the MMOItem. amount is the quantity of the material required. slot is the GUI slot where the material must be placed.
Options These are additional conditions that enhance material requirements:
match-item-type: The material will only be accepted if the item placed in the item slot has the matching type specified here.
match-item-tier: The material will only be accepted if the item placed in the item slot has the matching tier specified here.
match-item: The material will only be accepted if the item placed in the item slot has the matching According to the item defined in match-item specified here.
2. Protection Item
🛡️ Prevent Item Damage or Loss
If enabled, this feature allows you to protect your item in cases where the upgrade settings include downgrade levels, item destruction, or other effects that may negatively impact the item. The protection item will act as a safeguard to prevent your item from being damaged or lost during these risky processes.
Note: type is the type of the MMOItem. id is the ID of the MMOItem. amount is the quantity of the material required. slot is the GUI slot where the material must be placed.
Options These are additional conditions that enhance material requirements:
match-item-type: The material will only be accepted if the item placed in the item slot has the matching type specified here.
match-item-tier: The material will only be accepted if the item placed in the item slot has the matching tier specified here.
match-item: The material will only be accepted if the item placed in the item slot has the matching According to the item defined in match-item specified here.
3. Chance Item
🍀 Extra Success Chance
If enabled and used in conjunction with chance-based mechanics, the Chance Item provides an additional success rate boost on top of the existing base chance. This item acts as a support to increase the overall likelihood of success during actions such as upgrading.
Note: type is the type of the MMOItem. id is the ID of the MMOItem. amount is the quantity of the material required. slot is the GUI slot where the material must be placed. chance This sets the success chance for the Chance Item
Options These are additional conditions that enhance material requirements:
match-item-type: The material will only be accepted if the item placed in the item slot has the matching type specified here.
match-item-tier: The material will only be accepted if the item placed in the item slot has the matching tier specified here.
match-item: The material will only be accepted if the item placed in the item slot has the matching According to the item defined in match-item specified here.
4. Upgrade Case
Upgrade operations are divided into two types:
4.1 Decay-Level-Upgrade
📉 Success Rate Decreases Per Level
This mode reduces the success chance as the item's level increases. You can customize settings such as the base success chance, minimum success chance, and the percentage reduction in success chance per level.
4.2 Custom-Level-Upgrade
⚙️ Define Success Rate Per Level
This mode allows you to dynamically define the success chance for each item level. You can set a custom success chance for every individual level.
Min-downgrade-level
The min-downgrade-level system has been extended to provide more flexible and precise downgrade control during upgrade failures.
This enhancement allows you to define downgrade behavior based on upgrade level ranges, rather than using a single fixed value.
⚙ Configuration Format
You can now configure min-downgrade-level using level ranges:
🧩 How It Works
The key (
"1-4","5-8") represents the current upgrade level rangeThe value defines the possible downgrade levels when an upgrade fails
Example
If an item fails between level 1–4, it will not downgrade
If an item fails between level 5–8, it can downgrade by 1 to 2 levels
This allows higher upgrade levels to carry greater risk while keeping early upgrades safer.
Downgrade Rate
An additional option has been introduced to control how often downgrades occur.
📉 Downgrade Chance
The value represents the percentage chance that a downgrade will happen on failure
Example:
downgrade-rate: 50→ 50% chance to apply a downgrade when an upgrade failsIf the downgrade does not trigger, the item will remain at its current level
4.3 Chance-Formula
🧮 Use Custom Placeholder Formula
This mode allows you to use a custom formula to calculate the success chance (Custom Placeholder).
5. Material Formula
📈 Dynamic Material Scaling Based on Level
The Material Formula feature provides a highly flexible way to dynamically calculate the cost and material requirements for item upgrades, allowing them to scale with the item's level.
Cost & Material Increase When this feature is enabled (enabled: true), the quantity of material items required for an upgrade will increase as the item's level rises. This ensures that higher-level upgrades demand a greater investment from players, providing a more balanced progression.
The increase is determined by a custom formula you define, giving you precise control over the scaling.
In Short: Level Up = Material Requirements.
Formula Configuration The core of this feature lies in the formula field, where you can define a mathematical expression.
Basic: you can use the basic default chance calculation or create your own custom formula to control how the chance is calculated.
Custom Placeholders: The formula supports specific placeholders that will be replaced with dynamic values during calculation.
6. Random Stat Upgrade
🎲 When an upgrade is successful, a random stat from the item's template will be upgraded, rather than all stats present in the template.
7. Give Random Stats
🎁 The stats defined in the list will be randomly applied to your item when upgrading, based on the number set in amount. Each line should follow this format:
Explanation of Each Part: The stats defined in the list will be randomly applied to your item when upgrading, based on the number set in amount. Each line should follow this format:
Stat Name – The stat to apply to the item (e.g., ATTACK_DAMAGE). Stat Value Range – The range of values to randomly choose from (e.g., 5-20). Chance – The success chance (as a percentage). Note: Chance Item does not affect this. Tier Filter – Only applies if the item's tier matches any listed here (e.g., COMMON,RARE,LEGENDARY). Type Filter – Only applies if the item's type matches this (e.g., SWORD). Type Level– Only applies if the item's Level matches this (e.g., 9).
8. Destroy Item When Fail
💥 If an item upgrade fails, the item will be replaced with a predefined material.
Important: If a Protection Item is used, the item will not be destroyed upon failure.
9. Action When Success
When an upgrade is successful, you can define actions to be performed based on the item's level.
10. Cost
💰This feature allows you to use currencies such as PlayerPoints, CoinsEngine, or Vault. If you want to use a currency other than Vault, you must specify it using the currency: option — for example: currency: pp for PlayerPoints, or currency: ce; for CoinsEngine. And it also supports using custom placeholders from the system itself.
11. Default Chance
This feature allows you to set the success chance of this station yourself, in cases where Tier is not enabled.
12. Tiers
This feature allows you to set the success chance based on the tiers of the item placed in the item slot. If the item's tier matches the specified tiers, the chance will be applied accordingly. If none of the tier conditions are met, the chance will be taken from the no-tier-chance setting.
13. Default Template
This feature allows you to set a default template in case the item has never had a default template assigned before in the MMOItems system.
14. Upgrade Fail Point
The use-upgrade-fail-point feature adds a fail-stack style system using UPGRADE_FAIL_POINT to improve the upgrade experience.
When an upgrade attempt fails, the system will grant UPGRADE_FAIL_POINT based on your configuration. These points are carried over and can be used to increase the success chance of future upgrade attempts.
🔄 How It Works
When an upgrade fails, the player receives UPGRADE_FAIL_POINT
The amount gained depends on the configured rules
UPGRADE_FAIL_POINT is added to the success chance of the next upgrade attempt
Fail points can accumulate up to a defined maximum limit
This system rewards persistence and reduces frustration from repeated failures.
⚙ Configuration
Example
📘 Rule Format
Each entry in add-fail-point follows this structure:
Parameters
typeItem category (e.g.sword,armor)id(optional) MMOItem ID Leave empty to apply to all items of the given typeupgrade_fail_pointAmount of fail points gained when an upgrade failsmax_upgrade_fail_pointMaximum fail points that can be accumulatedtier(optional) Item tiers this rule applies to (e.g.COMMON,RARE,LEGENDARY) If not specified, the rule applies to all tiers
🧠 Rule Priority
Rules with more specific filters (type + ID + tier) are applied first
More general rules act as fallbacks
This allows fine-grained control while keeping configurations flexible
✅ Benefits
Reduces frustration from repeated upgrade failures
Encourages continued upgrading
Fully configurable per item type, ID, and tier
Optional and backward compatible
Example Full Config
Last updated