2021-02-14 14:51:02 +01:00
|
|
|
|
{
|
|
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema",
|
|
|
|
|
|
"$id": "blockception.minecraft.resource.texture.terrain_texture",
|
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
|
"type": "object",
|
|
|
|
|
|
"title": "The minecraft terrain 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/.+$", "title": "Path" },
|
|
|
|
|
|
"tint_color": { "title": "Tint color", "description": "TODO", "format": "color-hex", "type": "string" },
|
|
|
|
|
|
"variations": {
|
|
|
|
|
|
"type": "array",
|
|
|
|
|
|
"title": "Variantions",
|
|
|
|
|
|
"description": "TODO",
|
|
|
|
|
|
"items": {
|
|
|
|
|
|
"type": "object",
|
|
|
|
|
|
"title": "Variantion",
|
|
|
|
|
|
"description": "TODO",
|
|
|
|
|
|
"required": ["path"],
|
|
|
|
|
|
"properties": {
|
|
|
|
|
|
"path": { "description": "A texture file", "type": "string", "pattern": "^textures/.+$", "title": "Path" },
|
|
|
|
|
|
"weight": { "type": "integer", "title": "Weight", "description": "TODO" }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
]
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"properties": {
|
|
|
|
|
|
"num_mip_levels": { "type": "integer", "title": "Num mip levels", "description": "TODO: add description" },
|
|
|
|
|
|
"padding": { "type": "integer", "title": "Padding", "description": "TODO: add description" },
|
|
|
|
|
|
"resource_pack_name": { "type": "string", "title": "Resource pack name", "description": "TODO: add description" },
|
|
|
|
|
|
"texture_data": {
|
|
|
|
|
|
"type": "object",
|
|
|
|
|
|
"propertyNames": { "pattern": "^[\\w_\\-\\.]+$" },
|
|
|
|
|
|
"additionalProperties": {
|
|
|
|
|
|
"type": "object",
|
|
|
|
|
|
"title": "Texture data",
|
|
|
|
|
|
"description": "TODO: add description",
|
|
|
|
|
|
"properties": {
|
|
|
|
|
|
"textures": { "oneOf": [{ "$ref": "#/definitions/texture" }, { "type": "array", "items": { "$ref": "#/definitions/texture" } }] }
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"description": "TODO description",
|
|
|
|
|
|
"title": "TODO title"
|
|
|
|
|
|
},
|
|
|
|
|
|
"texture_name": { "type": "string", "description": "TODO description", "title": "TODO title" }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|