đ§Ŧ Internal Affix System
By enabling use-internal-affix-system: true, you can bypass the complex native MMOItems configuration and define independent reforge affix pools directly in the modifiers/ folder.
đŠ Core Logicâ
- Pool Assignment: Assign different affix configuration files to different items.
- Weighted RNG: Each affix has a
chance(weight); higher weights mean higher roll probability. - Stat Stacking: An affix can contain multiple MMOItems stats.
đ Creating an Affix (modifiers-example/weapon.yml)â
# Affix ID
sharp_edge:
# Weight
chance: 50
# Display name modifier (added to Prefix or Lore)
prefix: "Sharp"
# Stat List
stats:
ATTACK_DAMAGE: 5.0
CRITICAL_STRIKE_CHANCE: 2.5
heavy_weight:
chance: 20
suffix: "Heavy"
stats:
ATTACK_DAMAGE: 15.0
ATTACK_SPEED: -0.5
đ ī¸ Advanced: Dynamic Variablesâ
You can make stats fluctuate within a range:
mysterious_force:
chance: 10
stats:
# Random stat: (min, max, step)
MAGIC_DAMAGE: "5:15:1"
[!NOTE] When using the internal affix system, the item's display name will be automatically updated based on the selected
prefixorsuffix.