Adding item components

This commit is contained in:
DaanV2
2021-01-03 18:59:21 +01:00
parent 8979b76808
commit 3b3d192154
22 changed files with 452 additions and 2 deletions

View File

@@ -0,0 +1,35 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "blockception.minecraft.behaviour.1.16.100.items.minecraft:durability",
"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",
"description": "Damange chance",
"additionalProperties": false,
"required": ["min", "max"],
"properties": {
"min": {
"title": "Min",
"type": "integer",
"description": "The minimum"
},
"max": {
"title": "Max",
"type": "integer",
"description": "The minimum"
}
}
},
"max_durability": {
"title": "Max durability",
"description": "Max durability is the amount of damage that this item can take before breaking.",
"type": "number"
}
}
}