1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2025-10-07 11:09:51 +00:00
Files
2025-09-09 10:02:11 -07:00

36 lines
1.1 KiB
JSON

{
"$id": "3494639353",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"1398826300": {
"properties": {
"max": {
"type": "integer"
},
"min": {
"type": "integer"
}
},
"title": "IntRange",
"type": "object"
}
},
"description": "The durability item component specifies how much damage the item takes before breaking, and allows the item to be combined to repair or augment them.",
"properties": {
"damage_chance": {
"$ref": "#/definitions/1398826300",
"description": "Specifies the percentage chance of this item losing durability. Default is set to 100. Defined as an int range with min and max value."
},
"max_durability": {
"description": "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.",
"minimum": 0,
"type": "integer"
}
},
"required": [
"max_durability"
],
"title": "minecraft:durability",
"type": "object",
"x-format-version": "1.20.50"
}