Files
minecraft-bedrock-json-schemas/source/resource/textures/item_texture.json

45 lines
1.6 KiB
JSON
Raw Normal View History

2020-11-01 17:22:42 +01:00
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "blockception.minecraft.resource.texture.item_texture",
"additionalProperties": false,
"type": "object",
2021-03-21 15:18:38 +01:00
"title": "Item Texture File",
2020-11-01 17:22:42 +01:00
"description": "",
"definitions": {
"texture": {
"oneOf": [
2021-03-21 15:18:38 +01:00
{ "description": "A texture file", "type": "string", "pattern": "^textures/.+$" },
2020-11-01 17:22:42 +01:00
{
"type": "object",
"additionalProperties": false,
"properties": {
2021-03-21 15:18:38 +01:00
"overlay_color": { "description": "The color to apply to the texture", "format": "color-hex" },
"path": { "description": "A texture file", "type": "string", "pattern": "^textures/.+$" }
2020-11-01 17:22:42 +01:00
}
}
]
}
},
"properties": {
2021-03-21 15:18:38 +01:00
"resource_pack_name": { "type": "string", "title": "Resource Pack Name", "description": "TODO: add description" },
2020-11-01 17:22:42 +01:00
"texture_data": {
2021-03-21 15:18:38 +01:00
"title": "Texture Data",
2020-11-01 17:22:42 +01:00
"description": "TODO: add description",
"type": "object",
2021-03-21 15:18:38 +01:00
"propertyNames": { "pattern": "^[\\w_\\-\\.]+$" },
2020-11-01 17:22:42 +01:00
"additionalProperties": {
2021-03-21 15:18:38 +01:00
"title": "Texture Data",
2020-11-01 17:22:42 +01:00
"description": "TODO: add description",
"type": "object",
"additionalProperties": false,
"properties": {
"textures": {
2021-03-21 15:18:38 +01:00
"oneOf": [{ "$ref": "#/definitions/texture" }, { "description": "A collection of textures", "type": "array", "items": { "$ref": "#/definitions/texture" } }]
2020-11-01 17:22:42 +01:00
}
}
}
},
2021-03-21 15:18:38 +01:00
"texture_name": { "title": "Texture Name", "description": "TODO: add description", "type": "string" }
2020-11-01 17:22:42 +01:00
}
}