The Repair Mechanic allows players to repair damaged items in their inventory using a specific repair item. The repair process consumes the repair item while restoring a portion of the durability of the damaged item. The amount of durability restored is determined by the repair ratio defined in the mechanic configuration.
There is duplication bug using Creative mode. There is no bug using other gamemodes
ratioORfixed_amount option is required!
One-time Repair item stackable
# Example
repair_tool:
material: PAPER
itemname: <blue>Repair tool
Mechanics:
repair:
ratio: 0.5 # Percentage of durability restored, relative to the item's current damage.
One-time Repair item unstackable
# Example
repair_tool:
material: PAPER
itemname: <blue>Repair tool
Components:
max_stack_size: 1
Mechanics:
repair:
fixed_amount: 50 # Amount of durability restored.
Reusable Repair item unstackable
# Example
repair_tool:
material: PAPER
itemname: <blue>Repair tool
Components:
max_stack_size: 1
durability: 50 # 50 uses
Mechanics:
repair:
ratio: 0.5 # Percentage of durability restored, relative to the item's current damage.
Whitelist and Blacklist
# Example
repair_tool:
material: PAPER
itemname: <blue>Repair tool
Components:
max_stack_size: 1
durability: 50 # 50 uses
Mechanics:
repair:
ratio: 0.5 # Percentage of durability restored, relative to the item's current damage.
whitelist:
- DIAMOND_AXE
- forest_sword
blacklist:
- forest_axe
- DIAMOND_SWORD