# Modifiers

In the enchantment's configuration files, you will find multiple configuration sections that use the following settings:

  • Base – The starting (initial) value.
  • Per Level – The value added or applied per enchantment level.
  • Capacity – The maximum possible value.
  • Action – Defines how Base and Per Level are combined. Available values: ADD, MULTIPLY.

This value modifier allows values to scale automatically and dynamically with the enchantment level.

Consider the following example:

  • Base: 1.0
  • Per Level: 0.5
  • Capacity: 3
  • Action: ADD

# Formula

  • ADD:
    result = base + (per\_level \times level)

  • MULTIPLY:
    result = base \times (per\_level \times level)

# Example Values

Enchantment Level Level Bonus Final Value
I 0.5 \times 1 = 0.5 1.0 + 0.5 = 1.5
II 0.5 \times 2 = 1.0 1.0 + 1.0 = 2.0
III 0.5 \times 3 = 1.5 1.0 + 1.5 = 2.5
IV 0.5 \times 4 = 2.0 1.0 + 2.0 = 3.0
V 0.5 \times 5 = 2.5 1.0 + 2.5 = 3.5 \rightarrow 3.0