Lore Durability [Artifacts]

Giving items custom durability using Artifacts is simple! Artifacts comes with a built-in durability system that stores durability in the item's lore.

Items with a durability lore attribute will lose durability under regular circumstances (hitting something with a weapon, taking damage with armor), and weapons will also take durability when an onUse skill is executed successfully.

Note: Durability works even if the other Lore Stats are disabled.

Configuration

To add custom durability to an item, simply place a Durability line anywhere in the item's lore, like so:

Lore:
- "&7Durability 5000 / 5000"

Artifacts will automatically detect this and override the item's durability.

Example

HighDurabilityLeather:
  Id: leather_boots
  Data: 0
  Display: '&7Very Durable Leather Boots'
  Lore:
  - "&7Durability 5000 / 5000"
  Hide:
  - ATTRIBUTES

Known Issues

  • Items using the Durability lore system currently cannot be repaired. This will be added in the future.

artifacts/durability.txt · Last modified: 2020/06/30 21:13 (external edit)