Skip to content

Commit 1c7ab6b

Browse files
committed
working on preliminary multi-step overlays
1 parent be7c719 commit 1c7ab6b

2 files changed

Lines changed: 190 additions & 0 deletions

File tree

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
{
2+
"model": {
3+
"type": "minecraft:select",
4+
"property": "minecraft:custom_model_data",
5+
"index": 0,
6+
"cases": [
7+
{
8+
"when": "minecraft:iron_spear",
9+
"model": {
10+
"type": "minecraft:select",
11+
"property": "minecraft:display_context",
12+
"cases": [
13+
{
14+
"model": {
15+
"type": "minecraft:model",
16+
"model": "minecraft:item/iron_spear"
17+
},
18+
"when": ["gui", "ground", "fixed"]
19+
}
20+
],
21+
"fallback": {
22+
"type": "minecraft:model",
23+
"model": "minecraft:item/iron_spear_in_hand"
24+
}
25+
}
26+
},
27+
{
28+
"when": "minecraft:copper_spear",
29+
"model": {
30+
"type": "minecraft:select",
31+
"property": "minecraft:display_context",
32+
"cases": [
33+
{
34+
"model": {
35+
"type": "minecraft:model",
36+
"model": "minecraft:item/copper_spear"
37+
},
38+
"when": ["gui", "ground", "fixed"]
39+
}
40+
],
41+
"fallback": {
42+
"type": "minecraft:model",
43+
"model": "minecraft:item/copper_spear_in_hand"
44+
}
45+
}
46+
},
47+
{
48+
"when": "minecraft:copper_sword",
49+
"model": {
50+
"type": "minecraft:model",
51+
"model": "minecraft:item/copper_sword"
52+
}
53+
}
54+
],
55+
"fallback": {
56+
"type": "minecraft:select",
57+
"property": "minecraft:component",
58+
"component": "minecraft:custom_name",
59+
"cases": [
60+
{
61+
"when": {
62+
"text": "1.21.11 Iron Spear",
63+
"italic": false,
64+
"color": "white"
65+
},
66+
"model": {
67+
"type": "minecraft:select",
68+
"property": "minecraft:display_context",
69+
"cases": [
70+
{
71+
"model": {
72+
"type": "minecraft:model",
73+
"model": "minecraft:item/iron_spear"
74+
},
75+
"when": ["gui", "ground", "fixed"]
76+
}
77+
],
78+
"fallback": {
79+
"type": "minecraft:model",
80+
"model": "minecraft:item/iron_spear_in_hand"
81+
}
82+
}
83+
},
84+
{
85+
"when": {
86+
"text": "1.21.11 Copper Spear",
87+
"italic": false,
88+
"color": "white"
89+
},
90+
"model": {
91+
"type": "minecraft:select",
92+
"property": "minecraft:display_context",
93+
"cases": [
94+
{
95+
"model": {
96+
"type": "minecraft:model",
97+
"model": "minecraft:item/copper_spear"
98+
},
99+
"when": ["gui", "ground", "fixed"]
100+
}
101+
],
102+
"fallback": {
103+
"type": "minecraft:model",
104+
"model": "minecraft:item/copper_spear_in_hand"
105+
}
106+
}
107+
},
108+
{
109+
"when": {
110+
"text": "1.21.9 Copper Sword",
111+
"italic": false,
112+
"color": "white"
113+
},
114+
"model": {
115+
"type": "minecraft:model",
116+
"model": "minecraft:item/copper_sword"
117+
}
118+
}
119+
],
120+
"fallback": {
121+
"type": "minecraft:model",
122+
"model": "minecraft:item/iron_sword"
123+
}
124+
}
125+
}
126+
}
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"model": {
3+
"type": "minecraft:select",
4+
"property": "minecraft:custom_model_data",
5+
"index": 0,
6+
"cases": [
7+
{
8+
"when": "minecraft:golden_spear",
9+
"model": {
10+
"type": "minecraft:select",
11+
"property": "minecraft:display_context",
12+
"cases": [
13+
{
14+
"model": {
15+
"type": "minecraft:model",
16+
"model": "minecraft:item/golden_spear"
17+
},
18+
"when": ["gui", "ground", "fixed", "on_shelf"]
19+
}
20+
],
21+
"fallback": {
22+
"type": "minecraft:model",
23+
"model": "minecraft:item/golden_spear_in_hand"
24+
}
25+
}
26+
}
27+
],
28+
"fallback": {
29+
"type": "minecraft:select",
30+
"property": "minecraft:component",
31+
"component": "minecraft:custom_name",
32+
"cases": [
33+
{
34+
"when": {
35+
"text": "1.21.11 Golden Spear",
36+
"italic": false,
37+
"color": "white"
38+
},
39+
"model": {
40+
"type": "minecraft:select",
41+
"property": "minecraft:display_context",
42+
"cases": [
43+
{
44+
"model": {
45+
"type": "minecraft:model",
46+
"model": "minecraft:item/golden_spear"
47+
},
48+
"when": ["gui", "ground", "fixed", "on_shelf"]
49+
}
50+
],
51+
"fallback": {
52+
"type": "minecraft:model",
53+
"model": "minecraft:item/golden_spear_in_hand"
54+
}
55+
}
56+
}
57+
],
58+
"fallback": {
59+
"type": "minecraft:model",
60+
"model": "minecraft:item/golden_sword"
61+
}
62+
}
63+
}
64+
}

0 commit comments

Comments
 (0)