Sets how much damage the item can take before breaking, and allows the item to be combined at an anvil, grindstone, or crafting table.
Durability Properties
Name |
Default Value |
Type |
Description |
Example Values |
damage_chance |
not set |
Damage Chance item |
Specifies the percentage chance of this item losing durability. Default is set to 100. Defined as an int range with min and max value. |
My Sword Chuck: {"min":10,"max":50} , My Sword Singing: {"min":0,"max":0} , My Sword Weak: {"min":100,"max":100} |
max_durability |
not set |
Integer number |
Max durability is the amount of damage that this item can take before breaking. This is a required parameter and has a minimum of 0. |
Chestplate: 200 , My Sword Chuck: 10 , My Sword Singing: 1000 |
Damage Chance item type
IntRange Properties
Name |
Default Value |
Type |
Description |
Example Values |
max |
not set |
Integer number |
|
|
min |
not set |
Integer number |
|
|
Samples
"minecraft:durability": {
"damage_chance": {
"min": 10,
"max": 50
},
"max_durability": 36
}
"minecraft:durability": {
"max_durability": 251
}
"minecraft:durability": {
"max_durability": 200
}
"minecraft:durability": {
"damage_chance": {
"min": 10,
"max": 50
},
"max_durability": 10
}
"minecraft:durability": {
"damage_chance": {
"min": 0,
"max": 0
},
"max_durability": 1000
}
"minecraft:durability": {
"damage_chance": {
"min": 100,
"max": 100
},
"max_durability": 2
}