Refactored item

This commit is contained in:
DaanV2
2022-06-07 20:49:57 +02:00
parent 10417c8ec2
commit bbd36afa70
27 changed files with 105 additions and 103 deletions

View File

@@ -1,16 +1,11 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "blockception.minecraft.behavior.items",
"examples": [{ "format_version": "1.16.200", "minecraft:item": { "description": { "identifier": "namespace:item" }, "components": {} } }],
"allOf": [
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.10" } } }, "then": { "$ref": "./1.10.0/items.json" } },
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.10.0" } } }, "then": { "$ref": "./1.10.0/items.json" } },
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.14" } } }, "then": { "$ref": "./1.14.0/items.json" } },
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.14.0" } } }, "then": { "$ref": "./1.14.0/items.json" } },
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.16" } } }, "then": { "$ref": "./1.16.0/items.json" } },
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.16.0" } } }, "then": { "$ref": "./1.16.0/items.json" } },
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.16.100" } } }, "then": { "$ref": "./1.16.100/items.json" } },
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.16.200" } } }, "then": { "$ref": "./1.16.200/items.json" } },
{ "properties": { "format_version": { "$ref": "../../general/format_version.json" } } }
]
"$id": "blockception.minecraft.behavior.1.16.200.items",
"description": "Minecraft items 1.16.200",
"required": ["format_version", "minecraft:item"],
"title": "Item",
"type": "object",
"properties": {
"format_version": { "$ref": "../../general/format_version.json" },
"minecraft:item": { "$ref": "./format/minecraft.item.json" }
}
}