48 lines
1.6 KiB
JSON
48 lines
1.6 KiB
JSON
{
|
|
"$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": { "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", "type": "array", "items": { "$ref": "#/definitions/texture" } }
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"texture_name": { "title": "Texture name", "description": "TODO: add description", "type": "string" }
|
|
}
|
|
}
|