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": "Damange Chance",
|
2022-07-22 19:41:04 +02:00
|
|
|
"description": "Damange 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 minimum." }
|
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": "number"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|