|
1 | 1 | { |
2 | 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
3 | 3 | "title": "Animated Java Plugin Blueprint", |
4 | | - "description": "A schema of the JSON file an Blueprint Project creates when exported for a Plugin environment.", |
| 4 | + "description": "A schema of the JSON file a Blueprint Project creates when exported for a Plugin environment.", |
5 | 5 | "type": "object", |
6 | 6 | "required": ["format_version", "settings"], |
7 | 7 | "properties": { |
|
13 | 13 | "required": ["id"], |
14 | 14 | "properties": { |
15 | 15 | "id": { |
16 | | - "$ref": "#/$defs/resource_location", |
| 16 | + "$ref": "#/definitions/resource_location", |
17 | 17 | "description": "The unique id for this blueprint." |
18 | 18 | } |
19 | 19 | } |
|
23 | 23 | "default": {}, |
24 | 24 | "patternProperties": { |
25 | 25 | "^[a-z0-9_]+$": { |
26 | | - "$ref": "#/$defs/texture" |
| 26 | + "$ref": "#/definitions/texture" |
27 | 27 | } |
28 | 28 | } |
29 | 29 | }, |
|
32 | 32 | "default": {}, |
33 | 33 | "patternProperties": { |
34 | 34 | "^[a-z0-9_]+$": { |
35 | | - "$ref": "#/$defs/texture_palette" |
| 35 | + "$ref": "#/definitions/texture_palette" |
36 | 36 | } |
37 | 37 | } |
38 | 38 | }, |
|
41 | 41 | "default": {}, |
42 | 42 | "patternProperties": { |
43 | 43 | "^[a-z0-9_]+$": { |
44 | | - "$ref": "#/$defs/node" |
| 44 | + "$ref": "#/definitions/node" |
45 | 45 | } |
46 | 46 | } |
47 | 47 | }, |
|
50 | 50 | "default": {}, |
51 | 51 | "patternProperties": { |
52 | 52 | "^[a-z0-9_]+$": { |
53 | | - "$ref": "#/$defs/dynamic_animation" |
| 53 | + "$ref": "#/definitions/dynamic_animation" |
54 | 54 | } |
55 | 55 | } |
56 | 56 | } |
57 | 57 | }, |
58 | | - "$defs": { |
| 58 | + "definitions": { |
59 | 59 | "texture": { |
60 | 60 | "type": "object", |
61 | 61 | "oneOf": [ |
|
121 | 121 | "const": "reference" |
122 | 122 | }, |
123 | 123 | "resource_location": { |
124 | | - "$ref": "#/$defs/resource_location", |
| 124 | + "$ref": "#/definitions/resource_location", |
125 | 125 | "description": "The resource location of the internal Minecraft texture." |
126 | 126 | } |
127 | 127 | } |
|
165 | 165 | "type": "string" |
166 | 166 | }, |
167 | 167 | "default_transformation": { |
168 | | - "$ref": "#/$defs/node_transformation" |
| 168 | + "$ref": "#/definitions/node_transformation" |
169 | 169 | } |
170 | 170 | }, |
171 | 171 | "allOf": [ |
|
180 | 180 | "required": ["elements"], |
181 | 181 | "properties": { |
182 | 182 | "display_properties": { |
183 | | - "$ref": "#/$defs/bone_display_properties" |
| 183 | + "$ref": "#/definitions/bone_display_properties" |
184 | 184 | }, |
185 | 185 | "elements": { |
186 | 186 | "type": "array", |
187 | 187 | "items": { |
188 | | - "$ref": "#/$defs/bone_element" |
| 188 | + "$ref": "#/definitions/bone_element" |
189 | 189 | } |
190 | 190 | } |
191 | 191 | } |
|
201 | 201 | "type": "object", |
202 | 202 | "properties": { |
203 | 203 | "display_properties": { |
204 | | - "$ref": "#/$defs/item_display_properties" |
| 204 | + "$ref": "#/definitions/item_display_properties" |
205 | 205 | } |
206 | 206 | } |
207 | 207 | } |
|
216 | 216 | "type": "object", |
217 | 217 | "properties": { |
218 | 218 | "display_properties": { |
219 | | - "$ref": "#/$defs/block_display_properties" |
| 219 | + "$ref": "#/definitions/block_display_properties" |
220 | 220 | } |
221 | 221 | } |
222 | 222 | } |
|
231 | 231 | "type": "object", |
232 | 232 | "properties": { |
233 | 233 | "display_properties": { |
234 | | - "$ref": "#/$defs/text_display_properties" |
| 234 | + "$ref": "#/definitions/text_display_properties" |
235 | 235 | } |
236 | 236 | } |
237 | 237 | } |
|
267 | 267 | "default": {}, |
268 | 268 | "properties": { |
269 | 269 | "matrix": { |
270 | | - "$ref": "#/$defs/matrix", |
| 270 | + "$ref": "#/definitions/matrix", |
271 | 271 | "default": [ |
272 | 272 | 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, |
273 | 273 | 1.0 |
|
277 | 277 | "type": "object", |
278 | 278 | "properties": { |
279 | 279 | "translation": { |
280 | | - "$ref": "#/$defs/vector3", |
| 280 | + "$ref": "#/definitions/vector3", |
281 | 281 | "default": [0.0, 0.0, 0.0] |
282 | 282 | }, |
283 | 283 | "left_rotation": { |
284 | | - "$ref": "#/$defs/vector4", |
| 284 | + "$ref": "#/definitions/vector4", |
285 | 285 | "default": [0.0, 0.0, 0.0, 1.0] |
286 | 286 | }, |
287 | 287 | "scale": { |
288 | | - "$ref": "#/$defs/vector3", |
| 288 | + "$ref": "#/definitions/vector3", |
289 | 289 | "default": [1.0, 1.0, 1.0] |
290 | 290 | } |
291 | 291 | } |
292 | 292 | }, |
293 | 293 | "position": { |
294 | | - "$ref": "#/$defs/vector3", |
| 294 | + "$ref": "#/definitions/vector3", |
295 | 295 | "default": [0.0, 0.0, 0.0] |
296 | 296 | }, |
297 | 297 | "rotation": { |
298 | | - "$ref": "#/$defs/vector3", |
| 298 | + "$ref": "#/definitions/vector3", |
299 | 299 | "default": [0.0, 180.0, 0.0] |
300 | 300 | }, |
301 | 301 | "head_rotation": { |
302 | | - "$ref": "#/$defs/vector2", |
| 302 | + "$ref": "#/definitions/vector2", |
303 | 303 | "default": [0.0, 180.0] |
304 | 304 | }, |
305 | 305 | "scale": { |
306 | | - "$ref": "#/$defs/vector3", |
| 306 | + "$ref": "#/definitions/vector3", |
307 | 307 | "default": [1.0, 1.0, 1.0] |
308 | 308 | } |
309 | 309 | } |
|
313 | 313 | "required": ["from", "to", "rotation", "faces"], |
314 | 314 | "properties": { |
315 | 315 | "from": { |
316 | | - "$ref": "#/$defs/vector3" |
| 316 | + "$ref": "#/definitions/vector3" |
317 | 317 | }, |
318 | 318 | "to": { |
319 | | - "$ref": "#/$defs/vector3" |
| 319 | + "$ref": "#/definitions/vector3" |
320 | 320 | }, |
321 | 321 | "rotation": { |
322 | 322 | "type": "object", |
|
330 | 330 | "enum": ["x", "y", "z"] |
331 | 331 | }, |
332 | 332 | "origin": { |
333 | | - "$ref": "#/$defs/vector3" |
| 333 | + "$ref": "#/definitions/vector3" |
334 | 334 | } |
335 | 335 | } |
336 | 336 | }, |
|
347 | 347 | "minProperties": 1, |
348 | 348 | "additionalProperties": false, |
349 | 349 | "properties": { |
350 | | - "north": { "$ref": "#/$defs/bone_element_face" }, |
351 | | - "east": { "$ref": "#/$defs/bone_element_face" }, |
352 | | - "south": { "$ref": "#/$defs/bone_element_face" }, |
353 | | - "west": { "$ref": "#/$defs/bone_element_face" }, |
354 | | - "up": { "$ref": "#/$defs/bone_element_face" }, |
355 | | - "down": { "$ref": "#/$defs/bone_element_face" } |
| 350 | + "north": { "$ref": "#/definitions/bone_element_face" }, |
| 351 | + "east": { "$ref": "#/definitions/bone_element_face" }, |
| 352 | + "south": { "$ref": "#/definitions/bone_element_face" }, |
| 353 | + "west": { "$ref": "#/definitions/bone_element_face" }, |
| 354 | + "up": { "$ref": "#/definitions/bone_element_face" }, |
| 355 | + "down": { "$ref": "#/definitions/bone_element_face" } |
356 | 356 | } |
357 | 357 | }, |
358 | 358 | "display_rotation": { |
359 | | - "$ref": "#/$defs/vector3", |
| 359 | + "$ref": "#/definitions/vector3", |
360 | 360 | "default": [0.0, 180.0, 0.0] |
361 | 361 | } |
362 | 362 | } |
|
367 | 367 | "additionalProperties": false, |
368 | 368 | "properties": { |
369 | 369 | "uv": { |
370 | | - "$ref": "#/$defs/vector4" |
| 370 | + "$ref": "#/definitions/vector4" |
371 | 371 | }, |
372 | 372 | "tintindex": { |
373 | 373 | "type": "number", |
|
425 | 425 | "default": 0 |
426 | 426 | }, |
427 | 427 | "custom_name": { |
428 | | - "$ref": "#/$defs/optional_adventure_component", |
| 428 | + "$ref": "#/definitions/optional_adventure_component", |
429 | 429 | "default": null |
430 | 430 | }, |
431 | 431 | "glow_color_override": { |
|
454 | 454 | "default": {}, |
455 | 455 | "allOf": [ |
456 | 456 | { |
457 | | - "$ref": "#/$defs/common_display_properties" |
| 457 | + "$ref": "#/definitions/common_display_properties" |
458 | 458 | }, |
459 | 459 | { |
460 | 460 | "type": "object", |
|
487 | 487 | "default": {}, |
488 | 488 | "allOf": [ |
489 | 489 | { |
490 | | - "$ref": "#/$defs/common_display_properties" |
| 490 | + "$ref": "#/definitions/common_display_properties" |
491 | 491 | }, |
492 | 492 | { |
493 | 493 | "type": "object", |
|
505 | 505 | "default": {}, |
506 | 506 | "allOf": [ |
507 | 507 | { |
508 | | - "$ref": "#/$defs/common_display_properties" |
| 508 | + "$ref": "#/definitions/common_display_properties" |
509 | 509 | }, |
510 | 510 | { |
511 | 511 | "type": "object", |
|
536 | 536 | "default": 200 |
537 | 537 | }, |
538 | 538 | "text": { |
539 | | - "$ref": "#/$defs/optional_adventure_component", |
| 539 | + "$ref": "#/definitions/optional_adventure_component", |
540 | 540 | "default": null |
541 | 541 | }, |
542 | 542 | "text_opacity": { |
|
551 | 551 | "default": {}, |
552 | 552 | "allOf": [ |
553 | 553 | { |
554 | | - "$ref": "#/$defs/common_display_properties" |
| 554 | + "$ref": "#/definitions/common_display_properties" |
555 | 555 | }, |
556 | 556 | { |
557 | 557 | "type": "object", |
|
587 | 587 | "properties": { |
588 | 588 | "type": { "const": "loop" }, |
589 | 589 | "loop_delay": { |
590 | | - "$ref": "#/$defs/molang_expression", |
| 590 | + "$ref": "#/definitions/molang_expression", |
591 | 591 | "default": "0" |
592 | 592 | } |
593 | 593 | } |
594 | 594 | } |
595 | 595 | ] |
596 | 596 | }, |
597 | 597 | "blend_weight": { |
598 | | - "$ref": "#/$defs/molang_expression", |
| 598 | + "$ref": "#/definitions/molang_expression", |
599 | 599 | "default": "1" |
600 | 600 | }, |
601 | 601 | "start_delay": { |
602 | | - "$ref": "#/$defs/molang_expression", |
| 602 | + "$ref": "#/definitions/molang_expression", |
603 | 603 | "default": "0" |
604 | 604 | }, |
605 | 605 | "length": { |
|
615 | 615 | "description": "A collection of texture keyframes, identified by a floating-point timestamp.", |
616 | 616 | "patternProperties": { |
617 | 617 | "^\\d+\\.\\d+$": { |
618 | | - "$ref": "#/$defs/texture_keyframe" |
| 618 | + "$ref": "#/definitions/texture_keyframe" |
619 | 619 | } |
620 | 620 | } |
621 | 621 | }, |
|
625 | 625 | "description": "A collection of event keyframes, identified by a floating-point timestamp.", |
626 | 626 | "patternProperties": { |
627 | 627 | "^\\d+\\.\\d+$": { |
628 | | - "$ref": "#/$defs/event_keyframe" |
| 628 | + "$ref": "#/definitions/event_keyframe" |
629 | 629 | } |
630 | 630 | } |
631 | 631 | } |
|
645 | 645 | "description": "A collection of position keyframes, identified by a floating-point timestamp.", |
646 | 646 | "patternProperties": { |
647 | 647 | "^\\d+\\.\\d+$": { |
648 | | - "$ref": "#/$defs/transformation_keyframe" |
| 648 | + "$ref": "#/definitions/transformation_keyframe" |
649 | 649 | } |
650 | 650 | } |
651 | 651 | }, |
|
655 | 655 | "description": "A collection of rotation keyframes, identified by a floating-point timestamp.", |
656 | 656 | "patternProperties": { |
657 | 657 | "^\\d+\\.\\d+$": { |
658 | | - "$ref": "#/$defs/transformation_keyframe" |
| 658 | + "$ref": "#/definitions/transformation_keyframe" |
659 | 659 | } |
660 | 660 | } |
661 | 661 | }, |
|
665 | 665 | "description": "A collection of scale keyframes, identified by a floating-point timestamp.", |
666 | 666 | "patternProperties": { |
667 | 667 | "^\\d+\\.\\d+$": { |
668 | | - "$ref": "#/$defs/transformation_keyframe" |
| 668 | + "$ref": "#/definitions/transformation_keyframe" |
669 | 669 | } |
670 | 670 | } |
671 | 671 | } |
|
681 | 681 | }, |
682 | 682 | "molang_vector3": { |
683 | 683 | "type": "array", |
684 | | - "items": { "$ref": "#/$defs/molang_expression" }, |
| 684 | + "items": { "$ref": "#/definitions/molang_expression" }, |
685 | 685 | "minItems": 3, |
686 | 686 | "maxItems": 3 |
687 | 687 | }, |
|
715 | 715 | "required": ["value", "interpolation"], |
716 | 716 | "properties": { |
717 | 717 | "value": { |
718 | | - "$ref": "#/$defs/molang_vector3" |
| 718 | + "$ref": "#/definitions/molang_vector3" |
719 | 719 | }, |
720 | 720 | "post": { |
721 | | - "$ref": "#/$defs/molang_vector3" |
| 721 | + "$ref": "#/definitions/molang_vector3" |
722 | 722 | }, |
723 | 723 | "interpolation": { |
724 | 724 | "type": "object", |
|
790 | 790 | "const": "bezier" |
791 | 791 | }, |
792 | 792 | "left_handle_time": { |
793 | | - "$ref": "#/$defs/vector3" |
| 793 | + "$ref": "#/definitions/vector3" |
794 | 794 | }, |
795 | 795 | "left_handle_value": { |
796 | | - "$ref": "#/$defs/vector3" |
| 796 | + "$ref": "#/definitions/vector3" |
797 | 797 | }, |
798 | 798 | "right_handle_time": { |
799 | | - "$ref": "#/$defs/vector3" |
| 799 | + "$ref": "#/definitions/vector3" |
800 | 800 | }, |
801 | 801 | "right_handle_value": { |
802 | | - "$ref": "#/$defs/vector3" |
| 802 | + "$ref": "#/definitions/vector3" |
803 | 803 | } |
804 | 804 | } |
805 | 805 | }, |
|
0 commit comments