summaryrefslogtreecommitdiff
path: root/assets/minecraft/optifine/cem/tropical_fish_b.jem
diff options
context:
space:
mode:
Diffstat (limited to 'assets/minecraft/optifine/cem/tropical_fish_b.jem')
-rwxr-xr-xassets/minecraft/optifine/cem/tropical_fish_b.jem150
1 files changed, 150 insertions, 0 deletions
diff --git a/assets/minecraft/optifine/cem/tropical_fish_b.jem b/assets/minecraft/optifine/cem/tropical_fish_b.jem
new file mode 100755
index 00000000..d57ff650
--- /dev/null
+++ b/assets/minecraft/optifine/cem/tropical_fish_b.jem
@@ -0,0 +1,150 @@
1{
2 "credit": "Made with Blockbench",
3 "textureSize": [32, 32],
4 "models": [
5 {
6 "part": "body",
7 "id": "body",
8 "invertAxis": "xy",
9 "translate": [0, -3, -3],
10 "submodels": [
11 {
12 "id": "right_fin",
13 "invertAxis": "xy",
14 "translate": [1, 0, 3],
15 "rotate": [0, -45, 0]
16 },
17 {
18 "id": "left_fin",
19 "invertAxis": "xy",
20 "translate": [-1, 0, 3],
21 "rotate": [0, 45, 0]
22 },
23 {
24 "id": "fish",
25 "invertAxis": "xy",
26 "translate": [0, 3, 2],
27 "submodels": [
28 {
29 "id": "tail2",
30 "invertAxis": "xy",
31 "translate": [0, 0, 4],
32 "boxes": [
33 {"coordinates": [0, -3, 0, 0, 6, 5], "textureOffset": [21, 16]}
34 ]
35 },
36 {
37 "id": "fin_bottom2",
38 "invertAxis": "xy",
39 "translate": [0, -3, -2],
40 "boxes": [
41 {"coordinates": [0, -4, 0, 0, 4, 6], "textureOffset": [20, 21]}
42 ]
43 },
44 {
45 "id": "fin_top2",
46 "invertAxis": "xy",
47 "translate": [0, 3, -2],
48 "boxes": [
49 {"coordinates": [0, 0, 0, 0, 4, 6], "textureOffset": [20, 11]}
50 ]
51 },
52 {
53 "id": "body2",
54 "invertAxis": "xy",
55 "translate": [0, 0, 1],
56 "boxes": [
57 {"coordinates": [-1, -3, -3, 2, 6, 6], "textureOffset": [0, 20]}
58 ],
59 "submodels": [
60 {
61 "id": "right_fin2",
62 "invertAxis": "xy",
63 "translate": [1, -3, 0],
64 "rotate": [0, -45, 0],
65 "boxes": [
66 {"coordinates": [0, 0, 0, 2, 2, 0], "textureOffset": [2, 16]}
67 ]
68 },
69 {
70 "id": "left_fin2",
71 "invertAxis": "xy",
72 "translate": [-1, -3, 0],
73 "rotate": [0, 45, 0],
74 "boxes": [
75 {"coordinates": [-2, 0, 0, 2, 2, 0], "textureOffset": [2, 12]}
76 ]
77 }
78 ]
79 }
80 ]
81 }
82 ],
83 "animations": [
84 {
85 "fish.rx": "-body.rx",
86 "fish.ry": "-body.ry",
87 "fish.rz": "-body.rz"
88 },
89 {
90 "body2.rx": "body.rx",
91 "body2.ry": "body.ry",
92 "body2.rz": "body.rz",
93 "tail2.rx": "tail.rx",
94 "tail2.ry": "tail.ry",
95 "tail2.rz": "tail.rz",
96 "fin_top2.rx": "fin_top.rx * limb_speed*2",
97 "fin_top2.ry": "fin_top.ry* limb_speed*2",
98 "fin_top2.rz": "fin_top.rz* limb_speed*2",
99 "fin_bottom2.rx": "fin_bottom.rx * limb_speed*2",
100 "fin_bottom2.ry": "fin_bottom.ry* limb_speed*2",
101 "fin_bottom2.rz": "fin_bottom.rz* limb_speed*2",
102 "right_fin2.rx": "right_fin.rx",
103 "right_fin2.ry": "right_fin.ry",
104 "right_fin2.rz": "right_fin.rz",
105 "left_fin2.rx": "left_fin.rx",
106 "left_fin2.ry": "left_fin.ry",
107 "left_fin2.rz": "left_fin.rz"
108 },
109 {
110 "var.counter": "if(var.counter > 0.1, 0 ,var.counter + 1 * frame_time)",
111 "var.old_pos_y": "if(var.counter > 0.09,pos_y,var.old_pos_y)",
112 "var.test": "print(1,5,var.old_pos_y-pos_y)",
113 "var.turn_speed": "0.03 * 1 + abs(pos_y - var.old_pos_y)/5",
114 "var.pitch": "clamp(if(pos_y - var.old_pos_y == 0, if(equals(var.pitch,0,0.05), 0 ,if(var.pitch < 0,var.pitch + var.turn_speed,var.pitch - var.turn_speed )),if(pos_y < var.old_pos_y,var.pitch + var.turn_speed,var.pitch - var.turn_speed ) ),-torad(80),torad(80))",
115 "fish.rx": "var.pitch"
116 }
117 ]
118 },
119 {
120 "part": "fin_top",
121 "id": "fin_top",
122 "invertAxis": "xy",
123 "translate": [0, -6, 0]
124 },
125 {
126 "part": "fin_bottom",
127 "id": "fin_bottom",
128 "invertAxis": "xy",
129 "translate": [0, 0, 0]
130 },
131 {
132 "part": "tail",
133 "id": "tail",
134 "invertAxis": "xy",
135 "translate": [0, -3, -6]
136 },
137 {
138 "part": "fin_left",
139 "id": "fin_left",
140 "invertAxis": "xy",
141 "translate": [0, 0, 0]
142 },
143 {
144 "part": "fin_right",
145 "id": "fin_right",
146 "invertAxis": "xy",
147 "translate": [0, 0, 0]
148 }
149 ]
150} \ No newline at end of file