Files
minecraft-bedrock-json-schemas/source/resource/textures/terrain_texture.json
2021-03-21 15:18:38 +01:00

58 lines
2.4 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "blockception.minecraft.resource.texture.terrain_texture",
"additionalProperties": false,
"type": "object",
"title": "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" }
}
}