Data Packs Magic

[DataPack] Mending 2 / 1.13-1.16

  • 39.5k views • 1 today
  • save_alt 1.1k downloads • 0 today
Compatibility
Minecraft 1.13
to version
Minecraft 1.16
Changes include
  • Functions
  • Recipes
  • 21
  • 21
  • 11
Mouleagauffre
Lvl 57Grandmaster Toast
35

Update 5
I added the /function hdk_mending_2:uninstall to remove all the scoreboards used.
Immediatly after having used this command you have to use /datapack disable.






This datapack allow you to repair your tools by throwing them on the ground (consuming 5 levels of xp)



To enchant an item with mending 2, drop it on the ground with a Mending 2 enchanting book. It will use 20 xp levels and add the enchantment on the item.

You can obtain a Mending 2 enchanting book by using this command :

/give @p minecraft:enchanted_book{StoredEnchantments:[{id:"minecraft:mending",lvl:2}]} 1

or with this craft (works only in survival) :

[​XOX]   X= Diamond Block  O= End crystal
[​XBX]   B= Book
[​XEX]   E= Enchanting table

How to install a datapack : minecraft-wiki

Excuse my english.

7 Update Logs

Update #6 : by Mouleagauffre 02/09/2020 11:02:06 amFebruary 9, 2020 @ 4:02 pm UTC

Added the new netherite items
LOAD MORE LOGS

More like this

  Have something to say?

Octogiraffe2
07/31/2020 1:49 am
Level 2 : Apprentice Mage
This is cool, but can you make it so you can craft mending1, 3, 4, and 5, with progressivy more expensive mats? like a nether star, lectern, and diamands for mending 1, and for each level higher make it so mending previous replaces the center book? this is a really cool pack so thanks for making it :)
2
Octogiraffe2
07/31/2020 2:57 am
Level 2 : Apprentice Mage
Also it is not working when i throw it on the ground with a tool, can you give more specifics on how to>
1
ReLapis
06/03/2019 4:42 am
Level 48 : Master Technomancer
history
As a suggestion, while you can't alter player data with the /data command, however, you can do it with /execute.
Using /execute store result entity @p SelectedItem.tag.Damage int 1 will allow you to alter the damage on the tool they are holding.
So you could do something like get item damage > subtract 1 > store item damage > consume xp.
This will allow mending without having to drop the item on the ground.
1
Mouleagauffre
06/03/2019 6:56 am
Level 57 : Grandmaster Toast
It's interesting technically but it already exists and it's called "mending" :D
1
ReLapis
06/04/2019 4:48 am
Level 48 : Master Technomancer
Well the default mending enchantment only repairs when you gain exp.

If there's a datapack that does that (other than my own one) I haven't been able to find it, but it's likely to exist.
Just thought it would be interesting as you wouldn't have to drop it on the floor.
1
Mouleagauffre
06/04/2019 12:24 pm
Level 57 : Grandmaster Toast
Ok, I understand... I don't think I will change it because it's not really slower to drop the item than execute a command. Thank you anyway for the suggestion.
1
Geeri
03/03/2019 3:38 am
Level 9 : Apprentice Blacksmith
Cool idea!
1
adg155
02/20/2019 1:51 am
Level 31 : Artisan Explorer
There is no error with your English. BTW you should also allow tools like Flint and Steel, shears, fishing rod and other types of tools and armor (Wooden, Iron and Gold). Because i like it.
Edit: And a shapeless upgrade recipe for Mending I

[BX`]   X= Diamond Block
[` ` `]   B= Meding I Book
[` ` `]   `= None
1
Mouleagauffre
02/21/2019 12:52 pm
Level 57 : Grandmaster Toast
Thanks for your suggestions. I will soon work on the Mending 2 enchant for every tools.

For the crafting, Mojang didn't allow to use items with nbt tags in custom crafting, thus we can't use the "mending 1" book in it. I hope they will add it in the next releases.

;)
1
adg155
02/24/2019 6:45 pm
Level 31 : Artisan Explorer
Okay thanks for updating! BTW did you include Crossbow in the Mend-able list?
1

Welcome