1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2024-11-21 21:56:13 +00:00
bedrock-samples/metadata/json_schemas/Durability v1.20.50.json
Mike Ammerlaan 1440438305 v1.21.30.3
2024-09-17 09:13:33 -07:00

39 lines
1.4 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "3494639353",
"definitions": {
"1398826300": {
"title": "struct SharedTypes::IntRange",
"type": "object",
"properties": {
"max": {
"type": "integer"
},
"min": {
"type": "integer"
}
}
}
},
"title": "minecraft:durability v1.20.50",
"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.",
"type": "object",
"properties": {
"damage_chance": {
"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.",
"$ref": "#/definitions/1398826300"
},
"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.",
"type": "integer",
"minimum": 0.0
}
},
"required": [
"max_durability"
],
"$metaProperties": {
"CEREAL_DOCUMENTATION_TAG": false,
"CEREAL_JSON_SCHEMA": "Durability v1.20.50"
}
}