editor durability - magemonkeystudio/divinity GitHub Wiki

🛠️ Editor: Durability

The Durability option sets the item's vanilla damage value — this controls how worn or used the item looks when it is first generated.

How to Use

  • Click the Durability icon in the editor.
  • Enter a raw damage value (integer).
    • 0 = fully repaired (new)
    • Higher values = item appears more damaged

Behavior

  • This sets how much durability has already been used when the item is created.
  • It does not control how long the item will last — only how much durability is already missing.
  • Applied using ItemMeta#setDamage(int) based on the item's material.

Want Custom Durability?

If you want to define how many uses the item should have before it breaks, use the plugin’s custom durability system:

  • This is configured through the Editor: Item Stats page.
  • There, you can define custom durability values (e.g., 250, 500, etc.).
  • You must also enable the Unbreakable option so that Minecraft’s default durability is bypassed.

Tips

  • Use raw damage values for visual storytelling (e.g., worn gear, cursed loot).
  • Combine with Unbreakable and Item Stats for full control over actual item lifespan.

Return to: Item Generator Module