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",
|
|
|
|
|
"title": "The minecraft item texture file",
|
|
|
|
|
"description": "",
|
|
|
|
|
"definitions": {
|
|
|
|
|
"texture": {
|
|
|
|
|
"oneOf": [
|
|
|
|
|
{
|
|
|
|
|
"description": "A texture file",
|
|
|
|
|
"type": "string",
|
|
|
|
|
"pattern": "^textures/.+$"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "object",
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"overlay_color": {
|
|
|
|
|
"description": "The color to apply to the texture",
|
|
|
|
|
"format": "color-hex"
|
|
|
|
|
},
|
|
|
|
|
"path": {
|
|
|
|
|
"description": "A texture file",
|
|
|
|
|
"type": "string",
|
|
|
|
|
"pattern": "^textures/.+$"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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": {
|
2021-01-10 17:21:48 +01:00
|
|
|
"pattern": "^[\\w_\\-\\.]+$"
|
2020-11-01 17:22:42 +01:00
|
|
|
},
|
|
|
|
|
"additionalProperties": {
|
|
|
|
|
"title": "Texture data",
|
|
|
|
|
"description": "TODO: add description",
|
|
|
|
|
"type": "object",
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"textures": {
|
|
|
|
|
"oneOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/definitions/texture"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "A collection of textures",
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/definitions/texture"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"texture_name": {
|
|
|
|
|
"title": "Texture name",
|
|
|
|
|
"description": "TODO: add description",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|