Files
minecraft-bedrock-json-schemas/source/behavior/items/format/components/durability.json

33 lines
1005 B
JSON
Raw Normal View History

2022-06-07 20:42:18 +02:00
{
2022-07-20 21:25:32 +02:00
"$id": "blockception.minecraft.behavior.items.minecraft:durability",
2022-06-07 20:42:18 +02:00
"title": "Durability",
"description": "Durability item component: how much damage can this item take before breaking.",
"type": "object",
"additionalProperties": false,
"required": ["damage_chance"],
"properties": {
"damage_chance": {
"type": "object",
"title": "Damage Chance",
"description": "Damage chance.",
2022-06-07 20:42:18 +02:00
"additionalProperties": false,
"required": ["min", "max"],
"properties": {
2022-07-22 19:41:04 +02:00
"min": { "title": "Min", "type": "integer", "description": "The minimum." },
"max": { "title": "Max", "type": "integer", "description": "The maximum." }
2022-06-07 20:42:18 +02:00
}
},
"max_durability": {
"title": "Maximum Durability",
"description": "Maximum durability is the amount of damage that this item can take before breaking.",
"type": "integer"
2022-06-07 20:42:18 +02:00
}
},
"examples": [
{
"damage_chance": {"min":10,"max":50},
"max_durability": 36
}
]
2022-06-07 20:42:18 +02:00
}