Files
minecraft-bedrock-json-schemas/source/resource/textures/item_texture.json
2021-06-09 09:41:09 +02:00

65 lines
2.5 KiB
JSON

{
"$id": "blockception.minecraft.resource.texture.item_texture",
"additionalProperties": false,
"type": "object",
"title": "Item Texture File",
"description": "UNDOCUMENTATED",
"definitions": {
"texture": {
"oneOf": [
{ "description": "A texture file", "type": "string", "pattern": "^textures/.+$", "title": "Texture" },
{
"type": "object",
"additionalProperties": false,
"description": "A collection of texture files",
"title": "Texture",
"properties": {
"overlay_color": { "description": "The color to apply to the texture", "title": "overlay_color", "format": "color-hex" },
"path": { "description": "A texture file", "type": "string", "pattern": "^textures/.+$", "title": "Path" },
"tint_color": { "title": "Tint Color", "description": "UNDOCUMENTATED", "format": "color-hex", "type": "string" },
"variations": {
"type": "array",
"title": "Variantions",
"description": "UNDOCUMENTATED",
"items": {
"type": "object",
"title": "Variantion",
"description": "UNDOCUMENTATED",
"required": ["path"],
"properties": {
"path": { "description": "A texture file", "type": "string", "pattern": "^textures/.+$", "title": "Path" },
"weight": { "type": "integer", "title": "Weight", "description": "UNDOCUMENTATED" }
}
}
}
}
}
]
}
},
"properties": {
"resource_pack_name": { "type": "string", "title": "Resource Pack Name", "description": "TODO: add description" },
"texture_data": {
"title": "Texture Data",
"description": "TODO: add description",
"type": "object",
"propertyNames": { "pattern": "^[\\w_\\-\\.]+$" },
"additionalProperties": {
"title": "Texture Data",
"description": "TODO: add description",
"type": "object",
"additionalProperties": false,
"properties": {
"textures": {
"oneOf": [
{ "$ref": "#/definitions/texture" },
{ "description": "A collection of textures", "title": "Texture Data", "type": "array", "items": { "$ref": "#/definitions/texture" } }
]
}
}
}
},
"texture_name": { "title": "Texture Name", "description": "TODO: add description", "type": "string" }
}
}