202 lines
8.6 KiB
JSON
202 lines
8.6 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema",
|
|
"$id": "blockception.minecraft.render_controllers.json",
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"title": "Render Controllers 1.10.0",
|
|
"description": "Render_controllers 1.10.0",
|
|
"definitions": {
|
|
"color": {
|
|
"anyOf": [
|
|
{ "type": "number", "description": "A color definition as number, between 0 and 1", "minimum": 0, "maximum": 1, "title": "Color Number" },
|
|
{ "type": "string", "description": "A color definition in molang, between 0 and 1", "title": "Molang Color" }
|
|
]
|
|
}
|
|
},
|
|
"properties": {
|
|
"format_version": {
|
|
"title": "1.10.0 Format Version",
|
|
"type": "string",
|
|
"description": "A version that tells minecraft what type of data format can be expected when reading this file."
|
|
},
|
|
"render_controllers": {
|
|
"type": "object",
|
|
"propertyNames": {
|
|
"pattern": "^controller\\.render\\.[a-z\\.]+",
|
|
"examples": ["controller.render.example"]
|
|
},
|
|
"additionalProperties": {
|
|
"title": "Render Controller",
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"description": "A single render_controller",
|
|
"required": ["geometry", "materials"],
|
|
"properties": {
|
|
"arrays": {
|
|
"type": "object",
|
|
"title": "Arrays",
|
|
"additionalProperties": false,
|
|
"description": "A collection of definition of arrays",
|
|
"properties": {
|
|
"geometries": {
|
|
"type": "object",
|
|
"minProperties": 1,
|
|
"description": "A collection of Geometry array",
|
|
"title": "Geometries",
|
|
"additionalProperties": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"pattern": "^[Gg]eometry\\..+",
|
|
"description": "A geometry item, must be defined in the entity",
|
|
"title": "Geometry reference"
|
|
},
|
|
"description": "A geometry array definition",
|
|
"title": "Geometry array"
|
|
}
|
|
},
|
|
"materials": {
|
|
"type": "object",
|
|
"minProperties": 1,
|
|
"description": "A collection of materials array",
|
|
"title": "Materials",
|
|
"additionalProperties": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"pattern": "^[Mm]aterial\\..+",
|
|
"description": "A material item, must be defined in the entity",
|
|
"title": "Material reference"
|
|
},
|
|
"description": "A material array definition",
|
|
"title": "Material array"
|
|
}
|
|
},
|
|
"textures": {
|
|
"type": "object",
|
|
"minProperties": 1,
|
|
"description": "A collection of texture array",
|
|
"title": "Textures",
|
|
"additionalProperties": {
|
|
"type": "array",
|
|
"description": "Textures",
|
|
"title": "Texture",
|
|
"items": {
|
|
"type": "string",
|
|
"pattern": "^[Tt]exture\\..+",
|
|
"default": "texture.",
|
|
"description": "An texture item",
|
|
"title": "Texture"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"color": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"r": { "$ref": "#/definitions/color", "description": "The value of red, between 0 and 1", "title": "R" },
|
|
"g": { "$ref": "#/definitions/color", "description": "The value of green, between 0 and 1", "title": "G" },
|
|
"b": { "$ref": "#/definitions/color", "description": "The value of blue, between 0 and 1", "title": "B" },
|
|
"a": { "$ref": "#/definitions/color", "description": "The value of alpha, between 0 and 1", "title": "A" }
|
|
},
|
|
"description": "TODO description: color",
|
|
"title": "Color"
|
|
},
|
|
"filter_lighting": { "type": "boolean", "description": "TODO description: filter lighting", "title": "Filter Lighting" },
|
|
"geometry": { "type": "string", "description": "TODO description: geometry", "title": "Geometry" },
|
|
"ignore_lighting": { "type": "boolean", "description": "TODO description: ignore lighting", "title": "Ignore Lighting" },
|
|
"is_hurt_color": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"description": "The color to overlay on the entity when hurt",
|
|
"title": "Is Hurt Color",
|
|
"properties": {
|
|
"r": { "$ref": "#/definitions/color", "description": "The value of red, between 0 and 1", "title": "R" },
|
|
"g": { "$ref": "#/definitions/color", "description": "The value of green, between 0 and 1", "title": "G" },
|
|
"b": { "$ref": "#/definitions/color", "description": "The value of blue, between 0 and 1", "title": "B" },
|
|
"a": { "$ref": "#/definitions/color", "description": "The value of alpha, between 0 and 1", "title": "A" }
|
|
}
|
|
},
|
|
"materials": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": { "type": "string", "description": "TODO description: additionalProperties", "title": "TODO" },
|
|
"description": "TODO description: materials",
|
|
"title": "Materials"
|
|
},
|
|
"description": "TODO description: materials",
|
|
"title": "Materials"
|
|
},
|
|
"overlay_color": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"description": "TODO description: overlay color",
|
|
"title": "Overlay Color",
|
|
"properties": {
|
|
"r": { "$ref": "#/definitions/color", "description": "The value of red, between 0 and 1", "title": "R" },
|
|
"g": { "$ref": "#/definitions/color", "description": "The value of green, between 0 and 1", "title": "G" },
|
|
"b": { "$ref": "#/definitions/color", "description": "The value of blue, between 0 and 1", "title": "B" },
|
|
"a": { "$ref": "#/definitions/color", "description": "The value of alpha, between 0 and 1", "title": "A" }
|
|
}
|
|
},
|
|
"textures": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": { "type": "string", "description": "TODO description: textures", "title": "Textures" },
|
|
"description": "TODO description: textures",
|
|
"title": "Textures"
|
|
},
|
|
"uv_anim": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": ["offset", "scale"],
|
|
"properties": {
|
|
"offset": {
|
|
"type": "array",
|
|
"minItems": 2,
|
|
"maxItems": 2,
|
|
"items": { "$ref": "../../../molang/1.8.0/number.json", "description": "TODO description: offset", "title": "Offset" },
|
|
"description": "TODO description: offset",
|
|
"title": "Offset"
|
|
},
|
|
"scale": {
|
|
"type": "array",
|
|
"description": "TODO description: scale",
|
|
"title": "Scale",
|
|
"minItems": 2,
|
|
"maxItems": 2,
|
|
"items": { "$ref": "../../../molang/1.8.0/number.json", "description": "TODO description: scale", "title": "Scale" }
|
|
}
|
|
},
|
|
"description": "TODO description: uv anim",
|
|
"title": "Uv Anim"
|
|
},
|
|
"part_visibility": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": {
|
|
"description": "The object that describe different bone visibility",
|
|
"title": "Part Visibility",
|
|
"type": "object",
|
|
"additionalProperties": { "oneOf": [{ "type": "string" }, { "type": "boolean" }, { "type": "number" }] }
|
|
},
|
|
"description": "TODO description: part visibility",
|
|
"title": "Part Visibility"
|
|
},
|
|
"rebuild_animation_matrices": {
|
|
"type": "boolean",
|
|
"description": "TODO description: rebuild animation matrices",
|
|
"title": "Rebuild Animation Matrices"
|
|
}
|
|
}
|
|
},
|
|
"description": "TODO description: render controllers",
|
|
"title": "Render Controllers"
|
|
}
|
|
}
|
|
}
|