# RepairShare
This quality-of-life plugin allows tools that have the "Mending" enchantment to be repaired regardless if it's in the player's hands or equipped as armor.\
\
Additionally, players can hold their Mending tool/armor in their main hand, and use Sneak + Interact (Left Shift + Right Click) to consume XP and repair their tools.\
\
A sound effect is played whenever either scenario occurs. This will be configurable in the future.\
\
You can change the XP mending multiplier as well as costs and amount of mending received!
# Images
*Tools in inventory get automatically repaired if they have the "Mending" enchantment*\

\
*Holding sneak and interacting (hold left shift + right click) will consume player's XP and mend the tool in main hand*\

# Commands
`/repair toggle`\
Allow player to toggle on/off auto mend and self mend\
\
`/sleep reload`\
Reloads config.yml values
# Permissions
```
repair.*: Gives access to all RepairShare commands and features
repair.auto_mend: Allows automatically repairing tools with mending in a player's inventory when XP is gained
repair.self_mend: Allows repairing tools by consuming current XP
repair.toggle: /repair toggle
repair.reload: /repair reload
```
# Config
```
# Mending repairs (experience gained * multiplier), where multiplier by default is 2
xp_multiplier: 2
# Allows players to use their current exp to repair items
allow_self_repair: true
# How much exp it costs to self repair (whole number)
self_repair_cost: 6
# How much durability is given to the tool being repaired (whole number)
# Note: This is still affected by the xp_multiplier
self_repair_amount: 6
```
# Notes
* If you find any issues or have suggestions, please open an issue on the GitHub repo [here](https://github.com/sicfran774/RepairShare/issues)
* Due to the nature of armor being equipped when interacted with, the repair will still take place but it will be equipped at the same time. It is better to equip the armor itself and use mending normally than using self-mend
* XP sharing between players as a planned next update
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.21, 1.21.1, 1.21.10
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Hangar — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
RepairShare is a free Minecraft Java mod. Compatible with Minecraft 1.21, 1.21.1, 1.21.10, 1.21.11 and newer. Downloaded 115 times (via Hangar). Download it and open it directly in the game.