summaryrefslogtreecommitdiff
path: root/assets/minecraft/optifine/cem/tropical_fish_a.jem
diff options
context:
space:
mode:
authorGravatar Uko Kokņevičs2024-01-20 02:25:44 +0200
committerGravatar Uko Kokņevičs2024-01-20 02:25:44 +0200
commit88e4e8852a5f1c33794abe430411b73c3ade507a (patch)
treeb8a46554b8963269fbbbe5df21122513a5b87228 /assets/minecraft/optifine/cem/tropical_fish_a.jem
downloadfaithless16x-88e4e8852a5f1c33794abe430411b73c3ade507a.tar.gz
faithless16x-88e4e8852a5f1c33794abe430411b73c3ade507a.tar.xz
faithless16x-88e4e8852a5f1c33794abe430411b73c3ade507a.zip
Initial import
Diffstat (limited to 'assets/minecraft/optifine/cem/tropical_fish_a.jem')
-rwxr-xr-xassets/minecraft/optifine/cem/tropical_fish_a.jem133
1 files changed, 133 insertions, 0 deletions
diff --git a/assets/minecraft/optifine/cem/tropical_fish_a.jem b/assets/minecraft/optifine/cem/tropical_fish_a.jem
new file mode 100755
index 00000000..6fc3fbca
--- /dev/null
+++ b/assets/minecraft/optifine/cem/tropical_fish_a.jem
@@ -0,0 +1,133 @@
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, -1.5, 0],
10 "submodels": [
11 {
12 "id": "right_fin",
13 "invertAxis": "xy",
14 "translate": [1, 0, 0],
15 "rotate": [0, -45, 0]
16 },
17 {
18 "id": "left_fin",
19 "invertAxis": "xy",
20 "translate": [-1, 0, 0],
21 "rotate": [0, 45, 0]
22 },
23 {
24 "id": "fish",
25 "invertAxis": "xy",
26 "translate": [0, 1.5, -1.5],
27 "submodels": [
28 {
29 "id": "tail2",
30 "invertAxis": "xy",
31 "translate": [0, 0, 4.5],
32 "boxes": [
33 {"coordinates": [0, -1.5, 0, 0, 3, 4], "textureOffset": [24, -4]}
34 ]
35 },
36 {
37 "id": "fin_top2",
38 "invertAxis": "xy",
39 "translate": [0, 1.5, -1.5],
40 "boxes": [
41 {"coordinates": [0, 0, 0, 0, 4, 6], "textureOffset": [10, -6]}
42 ]
43 },
44 {
45 "id": "body2",
46 "invertAxis": "xy",
47 "translate": [0, 0, 1.5],
48 "boxes": [
49 {"coordinates": [-1, -1.5, -3, 2, 3, 6], "textureOffset": [0, 0]}
50 ],
51 "submodels": [
52 {
53 "id": "right_fin2",
54 "invertAxis": "xy",
55 "translate": [1, -1.5, 0],
56 "rotate": [0, -45, 0],
57 "boxes": [
58 {"coordinates": [0, 0, 0, 2, 2, 0], "textureOffset": [2, 16]}
59 ]
60 },
61 {
62 "id": "left_fin2",
63 "invertAxis": "xy",
64 "translate": [-1, -1.5, 0],
65 "rotate": [0, 45, 0],
66 "boxes": [
67 {"coordinates": [-2, 0, 0, 2, 2, 0], "textureOffset": [2, 12]}
68 ]
69 }
70 ]
71 }
72 ]
73 }
74 ],
75 "animations": [
76 {
77 "fish.rx": "-body.rx",
78 "fish.ry": "-body.ry",
79 "fish.rz": "-body.rz"
80 },
81 {
82 "body2.rx": "body.rx",
83 "body2.ry": "body.ry",
84 "body2.rz": "body.rz",
85 "tail2.rx": "tail.rx",
86 "tail2.ry": "tail.ry",
87 "tail2.rz": "tail.rz",
88 "fin_top2.rx": "fin_top.rx * limb_speed*2",
89 "fin_top2.ry": "fin_top.ry* limb_speed*2",
90 "fin_top2.rz": "fin_top.rz* limb_speed*2",
91 "right_fin2.rx": "right_fin.rx",
92 "right_fin2.ry": "right_fin.ry",
93 "right_fin2.rz": "right_fin.rz",
94 "left_fin2.rx": "left_fin.rx",
95 "left_fin2.ry": "left_fin.ry",
96 "left_fin2.rz": "left_fin.rz"
97 },
98 {
99 "var.counter": "if(var.counter > 0.1, 0 ,var.counter + 1 * frame_time)",
100 "var.old_pos_y": "if(var.counter > 0.09,pos_y,var.old_pos_y)",
101 "var.test": "print(1,5,var.old_pos_y-pos_y)",
102 "var.turn_speed": "0.03 * 1 + abs(pos_y - var.old_pos_y)/5",
103 "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))",
104 "fish.rx": "var.pitch"
105 }
106 ]
107 },
108 {
109 "part": "fin_top",
110 "id": "fin_top",
111 "invertAxis": "xy",
112 "translate": [0, -3, 3]
113 },
114 {
115 "part": "tail",
116 "id": "tail",
117 "invertAxis": "xy",
118 "translate": [0, -1.5, -3]
119 },
120 {
121 "part": "fin_left",
122 "id": "fin_left",
123 "invertAxis": "xy",
124 "translate": [0, 0, 0]
125 },
126 {
127 "part": "fin_right",
128 "id": "fin_right",
129 "invertAxis": "xy",
130 "translate": [0, 0, 0]
131 }
132 ]
133} \ No newline at end of file