How can I change the durability of items using commands?

How can I change the durability of items using commands? - Small cardboard boxes and leather cases placed on bed with sheet near big box in light room of house under sloping roof

I have a Minecraft 1.8.1 vanilla server and would like to reward certain users. I would like to /give some users a 99999/99999 durability renamed Diamond Pickaxe (with all enchantments on it).

How do I use commands to change/repair the durability of items? If possible, using only one command and use /give.



Best Answer

Well, the easiest way is to do /give @p <item> 1 <lost durability> you may have to play around with this but in your way you can do:

/give @p diamond_pickaxe 1 11560

This command will say that the durability is -9999 however, this means that the pick will go up to 0 to break. which leaves 9999 uses!




Pictures about "How can I change the durability of items using commands?"

How can I change the durability of items using commands? - Crop man packing carton box with scotch tape dispenser
How can I change the durability of items using commands? - Crop unrecognizable man in casual clothes packing carton box using scotch tape dispenser for moving personal items to new apartment
How can I change the durability of items using commands? - Back view of unrecognizable curvy female in casual clothes writing fragile on empty side of carton box while waiting for courier



What is the command to change durability in Minecraft?

1 Answer. Show activity on this post. You can use the NBT tag, Damage to give you an item with damage on it. Since a diamond pickaxe has 1561 durability, the command /give @p diamond_pickaxe{Damage:50} would give you a diamond pickaxe with 1511 durability left.

How do you change the max durability in Minecraft?

For people not using a laptop and just using a Windows PC, the best solution for this is to press F3 + H . This will add durability for weapons to your UI. If you are using Mac or a laptop you need to press FN + F3 + H . This is the best way to display durability in vanilla Minecraft.



MINECRAFT: How to use command blocks to change the durability on items!




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Ketut Subiyanto, Ketut Subiyanto, Ketut Subiyanto, Ketut Subiyanto