[SKRIPT] Better Mending

Script [SKRIPT] Better Mending 0.1

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

Supported Skript Version
  1. 2.15
Supported Minecraft Versions
  1. 1.21
  2. 26.1
Better Mending [SKRIPT]
Requirements: Skript 2.15.3+ and SkBee 3.25.1+

Tired of dragging your gear back to an anvil, or watching vanilla Mending sip your XP one orb at a time? Better Mending turns repairs into something you actually control. Upgrade any Mending tool or book to Mending 2 at the anvil, then just shift + right click to pour your XP straight into the item, on demand.

The clever part is the repair combo: the first click repairs a little, and every further click on the same item doubles the amount (1 -> 2 -> 4 -> 8 ...), so holding on one tool mends it faster and faster. It never over-repairs and never overspends your XP, and the combo resets the moment the item is full.



Features:
  • Shift + right-click a Mending 2 tool to repair it instantly using your XP.
  • Snowballing repair combo, each click on the same item doubles the durability restored.
  • Smart spending, never over-repairs and never drains more XP than needed.
  • Anvil upgrade: two Mending books combine into a Mending 2 book, keeping all other enchants.
  • Anvil upgrade: a Mending tool + a Mending book turns that tool into Mending 2.
  • Fully configurable, repair rate, per-click cap, XP cost, and sounds.

Configuration:
  • mending-level : level required to trigger, and the level items upgrade to (default 2).
  • base-repair : how much the first click repairs (default 1).
  • max-repair : cap on a single doubled click (default 128).
  • durability-per-xp : durability restored per XP point, set to 2 for the classic rate (default 1).
  • finish-sound / repair-sound : sounds for a completed repair and an in-progress one.

Video of the skript:

License
You are free to share and modify this resource as long as you:
  • Give credit to the original creator
  • Do not use it for commercial purposes

Notes
If you experience any problems, let me know on Discord eult.
Buy me a coffee?
Author
eult
Downloads
11
Views
13
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from eult