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,
|
2024-02-11 16:05:56 +05:00
|
|
|
"required": ["max_durability"],
|
2022-06-07 20:42:18 +02:00
|
|
|
"properties": {
|
|
|
|
|
"damage_chance": {
|
|
|
|
|
"type": "object",
|
2023-08-13 23:21:03 -07:00
|
|
|
"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." },
|
2023-08-13 23:21:03 -07:00
|
|
|
"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.",
|
2024-02-11 16:05:56 +05:00
|
|
|
"type": "integer",
|
|
|
|
|
"minimum": 0
|
2022-06-07 20:42:18 +02:00
|
|
|
}
|
2023-08-17 11:04:39 -07:00
|
|
|
},
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"damage_chance": {"min":10,"max":50},
|
|
|
|
|
"max_durability": 36
|
|
|
|
|
}
|
|
|
|
|
]
|
2022-06-07 20:42:18 +02:00
|
|
|
}
|