-
Notifications
You must be signed in to change notification settings - Fork 4
/
dyegen.sh
executable file
·97 lines (90 loc) · 2.41 KB
/
dyegen.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#!/bin/bash
colors="white
orange
magenta
light_blue
yellow
lime
gray
silver
purple
pink
cyan
blue
brown
green
red
black"
for color in $colors; do
read -r -d '' terracotta <<EOF
{
"parent": "item_models/block/chiseled",
"textures": {
"top": "blocks/terracotta/$color",
"side": "blocks/terracotta/$color",
"bottom": "blocks/terracotta/$color"
}
}
EOF
read -r -d '' wool <<EOF
{
"parent": "item_models/block/wool_roll",
"textures": {
"wool": "blocks/wool/$color"
}
}
EOF
read -r -d '' glazed <<EOF
{
"parent": "item_models/block/plates",
"textures": {
"plate": "blocks/terracotta/glazed/$color",
"side": "blocks/terracotta/$color",
"string": "items/bag/string/$color"
}
}
EOF
read -r -d '' concrete <<EOF
{
"parent": "item_models/block/chiseled",
"textures": {
"top": "blocks/concrete/$color",
"side": "blocks/concrete/$color",
"bottom": "blocks/concrete/$color"
}
}
EOF
read -r -d '' powder <<EOF
{
"parent": "item_models/block/sack",
"textures": {
"material": "blocks/concrete/powder/$color",
"bag": "items/bag/cloth/mono",
"bag_rim": "items/bag/cloth/rim/mono",
"string": "items/bag/string/$color"
}
}
EOF
read -r -d '' glass <<EOF
{
"parent": "item_models/block/plates",
"textures": {
"plate": "blocks/glass/$color",
"side": "blocks/glass/pane/$color",
"string": "items/bag/string/$color"
}
}
EOF
echo $terracotta > "assets/minecraft/models/item/${color}_stained_hardened_clay.json"
echo "Wrote assets/minecraft/models/item/${color}_stained_hardened_clay.json"
echo $glazed > "assets/minecraft/models/item/${color}_glazed_terracotta.json"
echo "Wrote assets/minecraft/models/item/${color}_glazed_terracotta.json"
echo $wool > "assets/minecraft/models/item/${color}_wool.json"
echo "Wrote assets/minecraft/models/item/${color}_wool.json"
echo $concrete > "assets/minecraft/models/item/${color}_concrete.json"
echo "Wrote assets/minecraft/models/item/${color}_concrete.json"
echo $powder > "assets/minecraft/models/item/${color}_concrete_powder.json"
echo "Wrote assets/minecraft/models/item/${color}_concrete_powder.json"
echo $glass > "assets/minecraft/models/item/${color}_stained_glass.json"
echo "Wrote assets/minecraft/models/item/${color}_stained_glass.json"
done