Skip to content

Process

Strengthening combines target equipment, a recipe, materials, success chance, and failure results. Understanding the process helps debug consumed materials, unchanged levels, or stale lore.

Standard flow

  1. The player opens the GUI or runs a strengthen command.
  2. The module reads the target item and current level.
  3. A recipe is selected by item type, level, and permission.
  4. Materials, money, protection items, lucky items, and conditions are checked.
  5. Success chance, failure penalty, and guarantee state are calculated.
  6. Costs are consumed after validation.
  7. Success or failure branch is executed.
  8. PDC strengthen data is written and display is rebuilt.
  9. Actions run and the GUI or inventory is refreshed.

Result branches

BranchDescription
successLevel increases.
failure_keepFailure without level loss.
failure_downgradeFailure with level downgrade.
failure_destroyFailure destroys the item.
protectedA protection item cancels downgrade or destruction.

Always revalidate materials and costs after confirmation GUI clicks.