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

223 lines
10 KiB
JSON
Raw Normal View History

2020-11-01 17:22:42 +01:00
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "blockception.minecraft.render_controllers.json",
"additionalProperties": false,
"type": "object",
"title": "Render Controllers 1.8.0",
"description": "Render_Controllers 1.8.0",
"required": ["render_controllers", "format_version"],
"definitions": {
"color": {
"anyOf": [
2021-03-21 15:18:38 +01:00
{ "type": "number", "description": "A color definition as number, between 0 and 1", "title": "Color Number", "minimum": 0, "maximum": 1 },
{ "type": "string", "description": "A color definition in molang, must result in a float between 0 and 1", "title": "Molang Color" }
2020-11-01 17:22:42 +01:00
]
}
},
"properties": {
"format_version": {
2021-03-21 15:18:38 +01:00
"title": "1.8.0 Format Version",
2020-11-01 17:22:42 +01:00
"type": "string",
"pattern": "^1.8.0$",
"description": "A version that tells minecraft what type of data format can be expected when reading this file."
},
"render_controllers": {
"type": "object",
2021-04-23 23:57:03 +02:00
"propertyNames": { "pattern": "^controller\\.render\\.[a-z\\.]+", "examples": ["controller.render.example"] },
2020-11-01 17:22:42 +01:00
"additionalProperties": {
"additionalProperties": false,
"type": "object",
2021-03-21 15:18:38 +01:00
"title": "Render Controller",
2020-11-01 17:22:42 +01:00
"description": "A single render_controller definition",
"required": ["geometry", "materials"],
2020-11-01 17:22:42 +01:00
"properties": {
"arrays": {
"type": "object",
2021-04-04 14:14:02 +02:00
"title": "Arrays",
"additionalProperties": false,
"description": "A collection of definition of arrays",
2020-11-01 17:22:42 +01:00
"properties": {
"geometries": {
"type": "object",
"minProperties": 1,
2021-04-04 14:14:02 +02:00
"description": "A collection of Geometry array",
"title": "Geometries",
2020-11-01 17:22:42 +01:00
"additionalProperties": {
"type": "array",
2021-04-04 14:14:02 +02:00
"items": {
"type": "string",
"pattern": "^[Gg]eometry\\..+",
"description": "A geometry item, must be defined in the entity",
2021-05-07 14:48:40 +02:00
"title": "Geometry"
2021-04-04 14:14:02 +02:00
},
"description": "A geometry array definition",
2021-05-07 14:48:40 +02:00
"title": "Geometries"
2021-04-04 14:14:02 +02:00
}
2020-11-01 17:22:42 +01:00
},
"materials": {
"type": "object",
"minProperties": 1,
2021-04-04 14:14:02 +02:00
"description": "A collection of materials array",
"title": "Materials",
2020-11-01 17:22:42 +01:00
"additionalProperties": {
"type": "array",
2021-04-04 14:14:02 +02:00
"items": {
"type": "string",
"pattern": "^[Mm]aterial\\..+",
"description": "A material item, must be defined in the entity",
2021-05-07 14:48:40 +02:00
"title": "Material"
2021-04-04 14:14:02 +02:00
},
"description": "A material array definition",
2021-05-07 14:48:40 +02:00
"title": "Materials"
2021-04-04 14:14:02 +02:00
}
2020-11-01 17:22:42 +01:00
},
"textures": {
"type": "object",
"minProperties": 1,
2021-04-04 14:14:02 +02:00
"description": "A collection of texture array",
"title": "Textures",
2020-11-01 17:22:42 +01:00
"additionalProperties": {
"type": "array",
2021-04-04 14:14:02 +02:00
"description": "Textures",
"title": "Texture",
"items": {
"type": "string",
"pattern": "^[Tt]exture\\..+",
"default": "texture.",
"description": "An texture item",
"title": "Texture"
}
}
2020-11-01 17:22:42 +01:00
}
}
},
"color": {
2021-04-04 14:14:02 +02:00
"description": "TODO description: color",
"title": "Color",
2020-11-01 17:22:42 +01:00
"additionalProperties": false,
"type": "object",
"properties": {
2021-04-23 23:57:03 +02:00
"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" }
2021-04-04 14:14:02 +02:00
}
2020-11-01 17:22:42 +01:00
},
2021-03-21 15:18:38 +01:00
"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" },
2020-11-01 17:22:42 +01:00
"is_hurt_color": {
"type": "object",
2021-05-07 14:48:40 +02:00
"title": "Is Hurt Color",
2021-04-04 14:14:02 +02:00
"additionalProperties": false,
"description": "The color that is overlay when hurt",
2020-11-01 17:22:42 +01:00
"properties": {
2021-04-23 23:57:03 +02:00
"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" }
2021-04-04 14:14:02 +02:00
}
},
"light_color_multiplier": {
"$ref": "../../../molang/1.8.0/number.json",
2021-04-30 17:15:07 +02:00
"description": "The amount of light that blends into what is being rendered, lower values gives darker rendering, (1 = 100%)",
2021-04-04 14:14:02 +02:00
"title": "Light Color Multiplier"
2020-11-01 17:22:42 +01:00
},
"materials": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
2021-03-21 15:18:38 +01:00
"additionalProperties": { "type": "string", "description": "TODO description: additionalProperties", "title": "TODO" },
2020-11-01 17:22:42 +01:00
"description": "TODO description: materials",
"title": "Materials"
},
"description": "TODO description: materials",
"title": "Materials"
},
"on_fire_color": {
"additionalProperties": false,
"type": "object",
"properties": {
2021-04-23 23:57:03 +02:00
"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" }
2020-11-01 17:22:42 +01:00
},
"description": "TODO description: on fire color",
"title": "On Fire Color"
},
"overlay_color": {
"additionalProperties": false,
"type": "object",
"properties": {
2021-04-23 23:57:03 +02:00
"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" }
2020-11-01 17:22:42 +01:00
},
2021-04-23 23:57:03 +02:00
"description": "Overlays this color ontop of any rendering parts",
2020-11-01 17:22:42 +01:00
"title": "Overlay Color"
},
"part_visibility": {
"type": "array",
"minItems": 1,
"items": {
"description": "A collection of object that describe which bones are hidden or not",
2021-03-21 15:18:38 +01:00
"title": "Part Visibilty",
2020-11-01 17:22:42 +01:00
"type": "object",
"minProperties": 1,
"additionalProperties": {
2021-03-21 15:18:38 +01:00
"oneOf": [{ "type": "string" }, { "type": "boolean" }, { "type": "number" }],
2020-11-01 17:22:42 +01:00
"description": "Describes which bones are visible or not, can be a string, boolean or number",
2021-03-21 15:18:38 +01:00
"title": "Part Visibilty"
2020-11-01 17:22:42 +01:00
}
},
"description": "TODO description: part visibility",
"title": "Part Visibility"
},
2021-04-04 14:14:02 +02:00
"rebuild_animation_matrices": {
"type": "boolean",
"description": "TODO description: rebuild animation matrices",
"title": "Rebuild Animation Matrices"
},
2020-11-01 17:22:42 +01:00
"textures": {
"type": "array",
"minItems": 1,
2021-03-21 15:18:38 +01:00
"items": { "type": "string", "description": "TODO description: textures", "title": "Textures" },
2020-11-01 17:22:42 +01:00
"description": "TODO description: textures",
"title": "Textures"
},
"uv_anim": {
"additionalProperties": false,
"type": "object",
"required": ["offset", "scale"],
"properties": {
"offset": {
"type": "array",
"minItems": 2,
"maxItems": 2,
2021-03-21 15:18:38 +01:00
"items": { "$ref": "../../../molang/1.8.0/number.json", "description": "TODO description: offset", "title": "Offset" },
2020-11-01 17:22:42 +01:00
"description": "TODO description: offset",
"title": "Offset"
},
"scale": {
"type": "array",
"description": "TODO description: scale",
"title": "Scale",
"minItems": 2,
"maxItems": 2,
2021-03-21 15:18:38 +01:00
"items": { "$ref": "../../../molang/1.8.0/number.json", "description": "TODO description: scale", "title": "Scale" }
2020-11-01 17:22:42 +01:00
}
},
"description": "TODO description: uv anim",
"title": "Uv Anim"
}
}
},
"description": "TODO description: render controllers",
"title": "Render Controllers"
}
}
}