Minecraft Data Packs / Weapons and Armor

Scrolls of Mending | Repair Instantly at the cost of XP!

  • check_circle Advancements
  • check_circle Functions
  • 14,051 views, 2 today
  • 1,010 downloads, 0 today
  • 81
  • 67
  • 11
Required Resource Pack
Josh Mats
Level 59 : Grandmaster Crafter
119
Introduction
Scrolls of Mending | Repair Instantly at the cost of XP! Minecraft Data Pack Scrolls of Mending | Repair Instantly at the cost of XP! Minecraft Data Pack 

Scrolls of Mending adds scrolls which repair your armor at the cost of experience. There are different ranks of scrolls that repair different percentages of durability, and the experience cost changes dynamically depending on how much total durability your gear has.



Crafting

You first need to craft a blank parchment. This can be done by arranging paper on a crafting table depending on which equipment you want repaired.

Blank Parchment Types

Then, depending on the rank of scroll, you need to create a scroll seal. Surround one of the below materials in 8 gold nuggets at a crafting table:

Iron Nugget - Lesser Scroll Seal

Lapis Lazuli - Scroll Seal
Diamond - Greater Scroll Seal

Then, toss a blank parchment, a seal, and an Enchanted Book with mending on the ground to craft a scroll.

Scroll Crafting



Usage

Right clicking the scroll in either your offhand or mainhand repairs your equipment and consumes the scroll. The amount repaired and experience cost depends on the scroll type:

Scroll Types
(undamaged equipment is ignored in the cost calculation)

If you don't have enough experience levels, a message will appear:

Not Enough Experience


Installing

Download the resource pack (joshs-scrolls-of-mending-resourcepack) and place it in your resourcepacks folder, and download the data pack (joshs-scrolls-of-mending-datapack) and place it in your world or server's datapacks folder.

Modrinth will label the datapack as "Primary" and the resource pack as "Required Resource Pack"
(Also on Modrinth, you can download the pack for older versions)

If you plan to use multiple datapacks and resourcepacks together, you can use weld to easily merge them together to place in your world.
(some packs may not be compatible with others, but Scrolls of Mending follows Smithed's conventions for better compatibility with other packs)

To uninstall the datapack, run
function jmsm:uninstall

Afterwards, you can safely disable then remove the datapack.

Configuration
To open the config menu, run: /function jmsm:config
Config Options:
- scroll use cooldown (in seconds, with actual cooldown up to 1 second early)
- cost calculation type
  - default bases cost on total durability, in line with the repair always being a % of full durability

  - legacy is the old system, basing only on damage
- experience cost of scrolls (in %, and based on cost calculation type)




Legacy Versions:
1.17-1.19.4



Contributing

Translations
If you want to help with translations, submit a pull request, post a suggestion on my Discord, or message me on PlanetMinecraft.

You can base off of the US English file here

For the cookbook, tweak your phrasing and use of newlines (\n) to better fit the text, though I can handle the newline part. Either way, it would be good to coordinate via messages/discord in case of any issues.



What's the point of this datapack?

For normal vanilla gameplay, this may seem unnecessary. However, in heavy PvP or fighting non-vanilla mobs such as those added by other datapacks or plugins, this can help save your armor from breaking. In our SMP, I made a boss that hits hard enough that armor can break easily from attrition.
Credit@Chalkdev for the sprites
CompatibilityMinecraft 1.20
toMinecraft 1.21
Tags

7 Update Logs

v2.1.0 : by Josh Mats 07/27/2024 5:53:11 amJul 27th, 2024

- 1.21 support (Incompatible with other versions)
LOAD MORE LOGS

Create an account or sign in to comment.

Josh Mats
12/03/2024 4:59 am
Level 59 : Grandmaster Crafter
Reply to this comment if anyone wants this on 1.21.2+



download numbers are low enough that I may just drop support
1
brickboi25
12/03/2024 3:55 am
Level 22 : Expert Blacksmith
hey there! Nice datapack but can this work on 1.21.1?
1
Josh Mats
12/03/2024 4:58 am
Level 59 : Grandmaster Crafter
yes, datapacks on 1.21 still work up to 1.21.1
1
brickboi25
12/03/2024 6:33 am
Level 22 : Expert Blacksmith
thanks for replying nice datapack God bless❤️
1
XPrantol
08/08/2024 8:25 pm
He/Him • Level 1 : New Network
Great!
1
RefinedRain
03/31/2023 6:24 pm
Level 1 : New Miner
history
I was looking for this for 1.19.2 but now in 1.19.3 the textures are broken. Really still enjoy this datapack, Mojang needs a feature like this... will u update to 1.20 when it comes?
1
R_nin
06/15/2022 6:27 am
Level 2 : Apprentice Miner
1.19 WHEN?
1
Josh Mats
06/16/2022 1:03 am
Level 59 : Grandmaster Crafter
Should be compatible still
1
SonicRushXII
10/07/2021 4:14 am
Level 76 : Legendary Engineer
Really well made, good Job
2
Josh Mats
10/07/2021 7:22 am
Level 59 : Grandmaster Crafter
Thank you! This was my second datapack and took a bit of time to get right :P
1

Welcome