So Im designing some custom weapons and I need to figure out a way to give myself a sword with only a few uses left. Or in other words how can I give myself a weapon, using /give, that has a limited number of uses. Any help would be greatly appreciated.
With F3 + H you can see the tool durabilty and if you give yourself a iron sword (250 uses) /give @p item count damage so the command for an iron sword with 2 uses left would be /give @p minecraft:iron_sword 1 248
*249
because 0 counts as a use
Rollback Post to RevisionRollBack
Normal Skin Girl Skin 8-bit skin by Akmal black and white skin
*249
because 0 counts as a use
Isn't 0 a fully repaired sword?
That would mean 1 = 1 use / 249 remaining, 2 = 2 uses / 248 remaining, etc...
How do you find the durability on armor? Either I am stupid or you can't find the durability of armor in any easy way. (Also I tried it.)