|
14 | 14 | "auto_bounding_box", |
15 | 15 | "bounding_box", |
16 | 16 | "enable_plugin_mode", |
17 | | - "enable_resource_pack", |
18 | | - "enable_data_pack", |
| 17 | + "resource_pack_export_mode", |
| 18 | + "data_pack_export_mode", |
19 | 19 | "display_item", |
20 | 20 | "custom_model_data_offset", |
21 | 21 | "enable_advanced_resource_pack_settings", |
|
48 | 48 | "maxItems": 2 |
49 | 49 | }, |
50 | 50 | "enable_plugin_mode": { "type": "boolean", "default": false }, |
51 | | - "enable_resource_pack": { "type": "boolean", "default": true }, |
52 | | - "enable_data_pack": { "type": "boolean", "default": true }, |
| 51 | + "resource_pack_export_mode": { |
| 52 | + "type": "string", |
| 53 | + "default": "raw", |
| 54 | + "enum": ["raw", "zip", "none"] |
| 55 | + }, |
| 56 | + "data_pack_export_mode": { |
| 57 | + "type": "string", |
| 58 | + "default": "raw", |
| 59 | + "enum": ["raw", "zip", "none"] |
| 60 | + }, |
53 | 61 | "display_item": { "type": "string", "default": "minecraft:white_dye" }, |
54 | 62 | "custom_model_data_offset": { "type": "integer", "default": 0 }, |
55 | 63 | "enable_advanced_resource_pack_settings": { |
|
102 | 110 | "description": "A map of variant names to maps of models to use for each bone when that variant is applied. Note that this map only contains included, and modified bones.", |
103 | 111 | "additionalProperties": false, |
104 | 112 | "patternProperties": { |
105 | | - "[a-zA-Z0-9_\\.]+": { |
| 113 | + "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$": { |
106 | 114 | "type": "object", |
107 | 115 | "additionalProperties": false, |
108 | 116 | "patternProperties": { |
|
176 | 184 | "items": { "$ref": "#/definitions/nodeStructure" } |
177 | 185 | } |
178 | 186 | } |
| 187 | + }, |
| 188 | + "variants": { |
| 189 | + "type": "object", |
| 190 | + "additionalProperties": false, |
| 191 | + "description": "A map of variant UUIDs to variant objects.", |
| 192 | + "patternProperties": { |
| 193 | + "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$": { |
| 194 | + "$ref": "#/definitions/variant" |
| 195 | + } |
| 196 | + } |
179 | 197 | } |
180 | 198 | } |
181 | 199 | }, |
|
670 | 688 | "repeat": { "type": "boolean" }, |
671 | 689 | "repeat_frequency": { "type": "number", "min": 1 } |
672 | 690 | } |
| 691 | + }, |
| 692 | + "variant": { |
| 693 | + "type": "object", |
| 694 | + "description": "A variant of the rig. Variants are used to change the appearance of the rig by swapping out different textures at runtime.", |
| 695 | + "required": ["name", "display_name", "uuid", "texture_map", "excluded_nodes"], |
| 696 | + "properties": { |
| 697 | + "name": { |
| 698 | + "type": "string", |
| 699 | + "description": "The name of the variant." |
| 700 | + }, |
| 701 | + "display_name": { |
| 702 | + "type": "string", |
| 703 | + "description": "The display name of the variant. Only used for fancy display purposes such as UI elements." |
| 704 | + }, |
| 705 | + "uuid": { "type": "string" }, |
| 706 | + "texture_map": { |
| 707 | + "type": "object", |
| 708 | + "description": "A map of default texture UUID -> variant texture UUID. If a texture is not in this map, it will be assumed to be the same as the default texture.", |
| 709 | + "patternProperties": { |
| 710 | + "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$": { |
| 711 | + "type": "string", |
| 712 | + "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" |
| 713 | + } |
| 714 | + } |
| 715 | + }, |
| 716 | + "excluded_nodes": { |
| 717 | + "type": "array", |
| 718 | + "description": "A list of node UUIDs that should be excluded / ignored when this variant is applied.", |
| 719 | + "items": { "type": "string" } |
| 720 | + } |
| 721 | + } |
673 | 722 | } |
674 | 723 | } |
675 | 724 | } |
0 commit comments