How do I summon a weapon or tool with a low durability

How do I summon a weapon or tool with a low durability - Gray and Black Rolleiflex Camera Beside Fork and Spoon Decor

I'm trying to make a custom npc map for myself.
I need a command that will summon a weapon that has low durability so it can by dropped by the npc.

Can anyone give me an example on how to do it?



Best Answer

Another thing that should be taken into account is that you cannot change the maximum durability of an item unless you use some sort of datapack or mod, but other than that you can change the number of uses it has left.

In 1.12 and before:
/give @p minecraft:diamond_sword 1 100

In 1.13 and after:
/give @p minecraft:diamond_sword{Damage:100} 1




Pictures about "How do I summon a weapon or tool with a low durability"

How do I summon a weapon or tool with a low durability - Silver and Gold Switchblade on Gray and White Surface
How do I summon a weapon or tool with a low durability - Hunting Knife in Hands of Unrecognizable Man
How do I summon a weapon or tool with a low durability - Crop unrecognizable cosmetologist in medical uniform using probe while doing low level laser therapy to calm patient in beauty salon



How do you spawn a tool with low durability?

The /give command can do this. To give tools with less durability, just increase the [data]. Another thing that should be taken into account is that you cannot change the maximum durability of an item unless you use some sort of datapack or mod, but other than that you can change the number of uses it has left.

Can a Minecraft item have 0 Durability?

Every piece of equipment in the game can have 0 durability except most netherite equipment (excluding boots and helmets) and elytras.

How do you change the durability of a tool in Minecraft?

Durability may be increased by merging two damaged items or repairing them with materials in an anvil or a grindstone, or through the Mending enchantment.



How to Get Damaged Items in Minecraft! - TUTORIAL! - Any Version!




More answers regarding how do I summon a weapon or tool with a low durability

Answer 2

Add the Damage tag to the command: /give @s diamond_sword{Damage:780} This will give you a half durability sword, or at least as close to half as you can get because a diamond swords durability is 1561

Answer 3

The /give command can do this.

The syntax is:

/give <player> <item> [amount] [data] [dataTag]

To give tools with less durability, just increase the [data].

This will give a diamond sword with full durability:

/give @p diamond_sword 1 0

This will give a diamond sword with 50 durability missing:

/give @p diamond_sword 1 50

This will give a diamond sword with 100 durability missing:

/give @p diamond_sword 1 100

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

Images: Alex Andrews, NIKOLAY OSMACHKO, ArtHouse Studio, Anna Shvets