Skip to content

Basic Config

Tyvor edited this page Jul 30, 2026 · 2 revisions

Basic Config

The basic config is designed for normal players and quick setup.

File: config/armor-durability-cap.properties

Example

# Armor Durability Cap
# Restart game/server after changes

enabled=true

# Max durability loss per hit: 20%
max_percent=0.20

# Flat cap per hit (-1 = off)
max_flat_damage=-1

# Minimum durability loss
minimum_damage=1

# FLOOR / ROUND / CEIL
rounding_mode=FLOOR

# Also affect compatible modded armor
affect_modded_armor=true

# Set true to generate advanced config next restart
advanced.generate_file=false

Fields

enabled

Turns the mod on or off.

max_percent

Maximum durability loss per hit as a percentage of the item's total durability.

Examples:

  • 0.20 = up to 20%
  • 0.02 = up to 2%

max_flat_damage

Optional flat cap per hit.

Examples:

  • -1 = disabled
  • 3 = no more than 3 durability damage per hit
  • 1 = no more than 1 durability damage per hit

minimum_damage

Minimum durability damage when positive armor damage is applied.

Examples:

  • 1 = vanilla-like minimum
  • 0 = tiny capped values may become 0

rounding_mode

Available values:

  • FLOOR
  • ROUND
  • CEIL

affect_modded_armor

If true, the base behavior also affects compatible modded equippable damageable items.

advanced.generate_file

If true, the mod generates the advanced config file on next restart.

Clone this wiki locally