Files
minecraft-bedrock-json-schemas/source/resource/render_controllers/render_controllers.json

214 lines
9.6 KiB
JSON
Raw Normal View History

2021-06-06 10:07:19 +00:00
{
2021-11-16 13:09:11 +01:00
"$id": "blockception.minecraft.render_controllers",
2021-06-06 10:07:19 +00:00
"examples": [
{
2021-11-16 13:09:11 +01:00
"format_version": "1.17.0",
2021-06-06 10:07:19 +00:00
"render_controllers": {
"controller.render.example": { "geometry": "Geometry.default", "materials": [{ "*": "Material.default" }], "textures": ["Texture.default"] }
}
}
],
2021-11-16 13:09:11 +01:00
"additionalProperties": false,
2021-06-06 10:07:19 +00:00
"type": "object",
"title": "Render Controllers",
2021-11-16 13:09:11 +01:00
"description": "Render_controllers",
"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": { "$ref": "../../general/format_version.json" },
"render_controllers": {
"type": "object",
"propertyNames": { "pattern": "^controller\\.render\\.[a-z\\.]+" },
"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": "Geometries"
}
},
"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"
},
"description": "A material array definition",
"title": "Materials"
}
},
"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": "UNDOCUMENTED: color",
"title": "Color"
},
"filter_lighting": { "type": "boolean", "description": "UNDOCUMENTED: filter lighting", "title": "Filter Lighting" },
"geometry": { "type": "string", "description": "UNDOCUMENTED: geometry", "title": "Geometry" },
"ignore_lighting": { "type": "boolean", "description": "UNDOCUMENTED: 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" }
}
},
"light_color_multiplier": {
"$ref": "../../molang/number.json",
"description": "The amount of light that blends into what is being rendered, lower values gives darker rendering, (1 = 100%)",
"title": "Light Color Multiplier"
},
"materials": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"additionalProperties": { "type": "string", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Material" },
"description": "UNDOCUMENTED: materials",
"title": "Materials"
},
"description": "UNDOCUMENTED: materials",
"title": "Materials"
},
"on_fire_color": {
"additionalProperties": false,
"type": "object",
"properties": {
"r": { "$ref": "#/definitions/color", "description": "The value of red, must result in a float between 0 and 1", "title": "R" },
"g": { "$ref": "#/definitions/color", "description": "The value of green, must result in a float between 0 and 1", "title": "G" },
"b": { "$ref": "#/definitions/color", "description": "The value of blue, must result in a float between 0 and 1", "title": "B" },
"a": { "$ref": "#/definitions/color", "description": "The value of alpha, must result in a float between 0 and 1", "title": "A" }
},
"description": "UNDOCUMENTED: on fire color",
"title": "On Fire Color"
},
"overlay_color": {
"additionalProperties": false,
"type": "object",
"description": "UNDOCUMENTED: 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" }
}
},
"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": "UNDOCUMENTED: part visibility",
"title": "Part Visibility"
},
"textures": {
"type": "array",
"minItems": 1,
"items": { "type": "string", "description": "UNDOCUMENTED: textures", "title": "Textures" },
"description": "UNDOCUMENTED: textures",
"title": "Textures"
},
"uv_anim": {
"additionalProperties": false,
"type": "object",
"required": ["offset", "scale"],
"properties": {
"offset": {
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": { "$ref": "../../molang/number.json", "description": "UNDOCUMENTED: offset", "title": "Offset" },
"description": "UNDOCUMENTED: offset",
"title": "Offset"
},
"scale": {
"type": "array",
"description": "UNDOCUMENTED: scale",
"title": "Scale",
"minItems": 2,
"maxItems": 2,
"items": { "$ref": "../../molang/number.json", "description": "UNDOCUMENTED: scale", "title": "Scale" }
}
},
"description": "UNDOCUMENTED: uv anim",
"title": "Uv Anim"
}
}
},
"description": "UNDOCUMENTED: render controllers",
"title": "Render Controllers"
}
}
2021-06-06 10:07:19 +00:00
}