repair sample_tool - magemonkeystudio/divinity GitHub Wiki

๐Ÿ› ๏ธ Sample Repair Tool โ€” sample_tool.yml

This configuration defines a Repair Tool item, which allows weapons or armor to be repaired when used with the repair module.


๐Ÿ“ File Location

plugins/Divinity/modules/repair/items/sample_tool.yml

๐Ÿงช Example Configuration

material: IRON_AXE
name: 'Repair Tool'
lore: []
tier: common
item-flags:
- '*'
level:
  min: 1
  max: 5
uses-by-level:
  '1': 1
  '2': 3
repair-by-level:
  '1': 10
  '2': 20
  '3': 30
  '4': 40
  '5': 50
target-requirements:
  type:
  - 'WEAPON'
  - 'ARMOR'
  level:
    '1': 1
  module:
  - '*'

๐Ÿ“Œ Notes

  • repair-by-level scales the durability restored depending on the level of the item.
  • target-requirements restrict this tool to only affect items tagged as WEAPON or ARMOR.
  • Supports leveling and multiple uses via uses-by-level.

โฌ…๏ธ Back to Repair Module Hub