Skip to content

repair sample_tool

goflishMC edited this page Jun 29, 2025 · 1 revision

🛠️ 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

Clone this wiki locally