Skip to content

Commit fc1475b

Browse files
committed
Merge remote-tracking branch 'origin/feat/updated-json-schemas' into 1.8.0-beta.4
2 parents 3fb4020 + c3e2366 commit fc1475b

File tree

4 files changed

+1104
-678
lines changed

4 files changed

+1104
-678
lines changed

schemas/ajblueprint.schema.json renamed to schemas/blueprint-project.schema.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "Animated Java Blueprint Schema (Depreciated)",
4+
"description": "THIS IS OUTDATED! DO NOT USE THIS SCHEMA!",
35
"properties": {
46
"meta": {
57
"type": "object",
Lines changed: 240 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,240 @@
1+
{
2+
"$schema": "./plugin-rig.schema.json",
3+
"format_version": 1,
4+
"settings": {
5+
"id": "animated_java:blueprint"
6+
},
7+
"textures": {
8+
"custom_texture": {
9+
"type": "custom",
10+
"base64_string": "iVBORw0KGgoAAAANSUhEUgAAAAUA",
11+
"animation": {
12+
"frametime": 3,
13+
"interpolate": true,
14+
"frames": [0, 2, { "index": 1, "time": 10 }, 3]
15+
}
16+
},
17+
"reference_texture": {
18+
"type": "reference",
19+
"resource_location": "minecraft:block/stone"
20+
}
21+
},
22+
"texture_palettes": {
23+
"default_palette": {
24+
"active_state": "default",
25+
"states": {
26+
"default": { "texture": "custom_texture" },
27+
"alternative": { "texture": "reference_texture" }
28+
}
29+
}
30+
},
31+
"nodes": {
32+
"bone_node": {
33+
"type": "bone",
34+
"default_transformation": {
35+
"matrix": [1, 0, 0, 0, 0, 0.99619, -0.08716, 0, 0, 0.08716, 0.99619, 0, 0, 0, 0, 1],
36+
"decomposed": {
37+
"left_rotation": [-0.04362, 0, 0, 0.99905]
38+
},
39+
"rotation": [5, 180, 0],
40+
"head_rotation": [5, 180]
41+
},
42+
"display_properties": {
43+
"billboard": "vertical",
44+
"custom_brightness": 10,
45+
"custom_name": "'Bone Node'",
46+
"glow_color_override": 12345678,
47+
"is_custom_name_visible": true,
48+
"is_glowing": true,
49+
"shadow_radius": 5.0,
50+
"shadow_strength": 0.5,
51+
"is_enchanted": true
52+
},
53+
"elements": [
54+
{
55+
"from": [0.0, 0.0, 0.0],
56+
"to": [1.0, 1.0, 1.0],
57+
"rotation": {
58+
"angle": 0.0,
59+
"axis": "y",
60+
"origin": [0.5, 0.5, 0.5]
61+
},
62+
"faces": {
63+
"north": {
64+
"uv": [0, 0, 16, 16],
65+
"texture_provider": { "type": "texture", "texture": "custom_texture" }
66+
},
67+
"east": {
68+
"uv": [0, 0, 16, 16],
69+
"texture_provider": {
70+
"type": "texture",
71+
"texture": "reference_texture"
72+
}
73+
},
74+
"south": {
75+
"uv": [0, 0, 16, 16],
76+
"texture_provider": { "type": "texture", "texture": "custom_texture" },
77+
"rotation": 90
78+
},
79+
"west": {
80+
"uv": [0, 0, 16, 16],
81+
"texture_provider": {
82+
"type": "texture",
83+
"texture": "reference_texture"
84+
}
85+
},
86+
"up": {
87+
"uv": [0, 0, 16, 16],
88+
"texture_provider": { "type": "texture", "texture": "custom_texture" }
89+
},
90+
"down": {
91+
"uv": [0, 0, 16, 16],
92+
"texture_provider": {
93+
"type": "texture_palette",
94+
"texture_palette": "default_palette"
95+
}
96+
}
97+
},
98+
"display_rotation": [90.0, 20.0, 0.0]
99+
}
100+
]
101+
},
102+
"item_display_node": {
103+
"type": "item_display",
104+
"default_transformation": {
105+
"matrix": [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1.625, 0, 1],
106+
"decomposed": {
107+
"translation": [0, 1.625, 0]
108+
},
109+
"position": [0, 1.625, 0]
110+
},
111+
"display_properties": {
112+
"billboard": "vertical",
113+
"is_glowing": true,
114+
"shadow_radius": 3.0,
115+
"shadow_strength": 0.8,
116+
"item": "minecraft:diamond_sword[damage=3]",
117+
"item_display": "gui"
118+
}
119+
},
120+
"block_display_node": {
121+
"type": "block_display",
122+
"default_transformation": {
123+
"matrix": [
124+
0.97789, 0.12755, 0.39544, 0, -0.09059, 1.11318, -0.13506, 0, -0.38268, 0.08052,
125+
0.92036, 0, -0.625, 0, 0, 1
126+
],
127+
"decomposed": {
128+
"translation": [-0.625, 0, 0],
129+
"left_rotation": [-0.05124, -0.19285, 0.05124, 0.97855],
130+
"scale": [1.0625, 1.125, 1]
131+
},
132+
"position": [-0.625, 0, 0],
133+
"rotation": [4.61854, 202.57734, 6.91757],
134+
"head_rotation": [4.61854, 202.57734],
135+
"scale": [1.0625, 1.125, 1]
136+
},
137+
"display_properties": {
138+
"billboard": "horizontal",
139+
"custom_brightness": 15,
140+
"custom_name": "'Block Display Node'",
141+
"is_custom_brightness_enabled": true,
142+
"is_custom_name_visible": true,
143+
"block_state": "minecraft:cake[bites=3]"
144+
}
145+
},
146+
"text_display_node": {
147+
"type": "text_display",
148+
"display_properties": {
149+
"custom_brightness": 5,
150+
"is_custom_brightness_enabled": true,
151+
"is_glowing": true,
152+
"alignment": "left",
153+
"background_color": 16711680,
154+
"is_default_background": true,
155+
"is_see_through": true,
156+
"is_shadowed": true,
157+
"line_width": 500,
158+
"text": "{\"text\":\"This is a text display node\",\"bold\":true}",
159+
"text_opacity": 12
160+
}
161+
}
162+
},
163+
"animations": {
164+
"test_animation": {
165+
"loop_mode": {
166+
"type": "loop",
167+
"loop_delay": "0.5"
168+
},
169+
"blend_weight": "1.2",
170+
"start_delay": "0.0",
171+
"length": 3.0,
172+
"global_keyframes": {
173+
"texture": {
174+
"0.0": { "default_palette": "default" },
175+
"1.5": { "default_palette": "alternative" }
176+
},
177+
"event": {
178+
"1.5": { "events": ["event_1", "event_2"] },
179+
"3.0": { "events": ["event_1"] }
180+
}
181+
},
182+
"node_keyframes": {
183+
"bone_node": {
184+
"position": {
185+
"0.0": {
186+
"value": ["0.0", "0.0", "0.0"],
187+
"interpolation": {
188+
"type": "linear",
189+
"easing": "linear"
190+
}
191+
},
192+
"3.0": {
193+
"value": ["2.0", "2.0", "2.0"],
194+
"interpolation": {
195+
"type": "linear",
196+
"easing": "ease_in_out_quad"
197+
}
198+
}
199+
},
200+
"rotation": {
201+
"0.0": {
202+
"value": ["0.0", "0.0", "0.0"],
203+
"interpolation": {
204+
"type": "linear",
205+
"easing": "linear"
206+
}
207+
},
208+
"3.0": {
209+
"value": ["90.0", "90.0", "90.0"],
210+
"interpolation": {
211+
"type": "bezier",
212+
"left_handle_time": [-0.1, -0.1, -0.1],
213+
"left_handle_value": [0, 0, 0],
214+
"right_handle_time": [0.1, 0.1, 0.1],
215+
"right_handle_value": [0, 0, 0]
216+
}
217+
}
218+
},
219+
"scale": {
220+
"1.5": {
221+
"value": ["1.0", "1.0", "1.0"],
222+
"interpolation": {
223+
"type": "linear",
224+
"easing": "linear"
225+
}
226+
},
227+
"3.0": {
228+
"value": ["0.5", "0.5", "0.5"],
229+
"interpolation": {
230+
"type": "linear",
231+
"easing": "ease_out_elastic",
232+
"easing_arguments": [1.2]
233+
}
234+
}
235+
}
236+
}
237+
}
238+
}
239+
}
240+
}

0 commit comments

Comments
 (0)