I want to change maximum item’s durability in Minecraft, but without enchantments. I want to use /give command. How can I do this? Is it possible to do?
Here is my first trial:
give @p diamond_pickaxe{Enchantments:[{id:unbreaking,lvl:10}]}
Arqade is a question and answer site for passionate videogamers on all platforms. It only takes a minute to sign up.
Sign up to join this communityI want to change maximum item’s durability in Minecraft, but without enchantments. I want to use /give command. How can I do this? Is it possible to do?
Here is my first trial:
give @p diamond_pickaxe{Enchantments:[{id:unbreaking,lvl:10}]}
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.
If you wish to change the durability of an existing item, you can use /data merge entity @e[type=item,distance=..3,limit=1] {Item:{tag:{Damage:0}}}
to set the durability of an item that is dropped on the ground