summaryrefslogtreecommitdiff
path: root/assets/minecraft/optifine/cem/ender_chest.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/ender_chest.jem
downloadfaithless16x-88e4e8852a5f1c33794abe430411b73c3ade507a.tar.gz
faithless16x-88e4e8852a5f1c33794abe430411b73c3ade507a.tar.xz
faithless16x-88e4e8852a5f1c33794abe430411b73c3ade507a.zip
Initial import
Diffstat (limited to 'assets/minecraft/optifine/cem/ender_chest.jem')
-rwxr-xr-xassets/minecraft/optifine/cem/ender_chest.jem156
1 files changed, 156 insertions, 0 deletions
diff --git a/assets/minecraft/optifine/cem/ender_chest.jem b/assets/minecraft/optifine/cem/ender_chest.jem
new file mode 100755
index 00000000..1bfb3c7b
--- /dev/null
+++ b/assets/minecraft/optifine/cem/ender_chest.jem
@@ -0,0 +1,156 @@
1{
2 "textureSize": [64, 64],
3 "models": [
4 {
5 "part": "base",
6 "id": "base",
7 "invertAxis": "xy",
8 "translate": [-8, 0, -8],
9 "rotate": [-180, 0, 0],
10 "submodels": [
11 {
12 "id": "base2",
13 "invertAxis": "xy",
14 "translate": [0, 0, 23],
15 "submodels": [
16 {
17 "id": "anti_base",
18 "invertAxis": "xy",
19 "translate": [8, 0, -15],
20 "rotate": [-180, 0, 0],
21 "submodels": [
22 {
23 "id": "lid2",
24 "invertAxis": "xy",
25 "translate": [0, 9, -1],
26 "rotate": [-180, 0, 0],
27 "boxes": [
28 {
29 "coordinates": [-15, -5, 0, 14, 5, 14],
30 "uvNorth": [14, 14, 28, 19],
31 "uvEast": [0, 14, 14, 19],
32 "uvSouth": [42, 14, 56, 19],
33 "uvWest": [28, 14, 42, 19],
34 "uvUp": [28, 14, 14, 0],
35 "uvDown": [42, 0, 28, 14]
36 }
37 ],
38 "submodels": [
39 {
40 "id": "knob2",
41 "invertAxis": "xy",
42 "translate": [0, -1, 30],
43 "rotate": [-180, 0, 0],
44 "boxes": [
45 {
46 "coordinates": [-9, -3, 15, 2, 4, 1],
47 "uvNorth": [1, 1, 3, 5],
48 "uvEast": [0, 1, 1, 5],
49 "uvSouth": [4, 1, 6, 5],
50 "uvWest": [3, 1, 4, 5],
51 "uvUp": [3, 1, 1, 0],
52 "uvDown": [5, 0, 3, 1]
53 }
54 ]
55 }
56 ]
57 }
58 ]
59 },
60 {
61 "id": "rand",
62 "invertAxis": "xy",
63 "translate": [8, 0, -15]
64 },
65 {
66 "id": "close",
67 "invertAxis": "xy",
68 "translate": [8, 0, -15]
69 },
70 {
71 "id": "eye",
72 "invertAxis": "xy",
73 "translate": [0, -5, 3],
74 "submodels": [
75 {
76 "id": "negey",
77 "invertAxis": "xy",
78 "translate": [-1, 5, -27],
79 "boxes": [
80 {
81 "coordinates": [0, -7, 24.02, 2, 4, 0],
82 "uvSouth": [43, 26, 45, 30]
83 }
84 ]
85 }
86 ]
87 }
88 ],
89 "boxes": [
90 {
91 "coordinates": [-2, -7, 0.03, 2, 2, 0],
92 "uvSouth": [53, 29, 54, 30]
93 },
94 {
95 "coordinates": [-3, -9, 0.01, 6, 8, 0],
96 "uvSouth": [46, 24, 52, 32]
97 },
98 {
99 "coordinates": [-7, -10, -14, 14, 10, 14],
100 "uvNorth": [14, 33, 28, 43],
101 "uvEast": [0, 33, 14, 43],
102 "uvSouth": [42, 33, 56, 43],
103 "uvWest": [28, 33, 42, 43],
104 "uvUp": [28, 33, 14, 19],
105 "uvDown": [42, 19, 28, 33]
106 }
107 ]
108 }
109 ],
110 "animations": [
111 {
112 "this.rx": 0,
113 "this.ry": 0
114 },
115 {
116 "rand.rx": "if(sin(time/8)>0.999,(random(time)*4)-2,rand.rx)",
117 "rand.ry": "if(sin(time/8)>0.999,(random(time+1)*6)+2,rand.ry)",
118 "eye.ty": "if( (pow(pos_x-player_pos_x, 2) + pow(pos_y-player_pos_y, 2) + pow(pos_z-player_pos_z, 2) < 25) , lerp(0.1,eye.ty, clamp( -(pos_y+0.3-player_pos_y+1)+7,3,7) ) , lerp(0.1,eye.ty,rand.ry))",
119 "eye.tx": "if(pow(pos_x-player_pos_x, 2) + pow(pos_y-player_pos_y, 2) + pow(pos_z-player_pos_z, 2) < 25 , lerp(0.1,eye.tx, if(rule_index==3 && player_pos_z < pos_z+0.5,-2*pi,0) + if(rule_index==1,torad(-90),rule_index==2,torad(90),rule_index==3,torad(180),0) -torad(atan2(player_pos_z - (pos_z+0.5), player_pos_x - (pos_x+0.5)) * 180 / pi) ), lerp(0.1,eye.tx,rand.rx))",
120 "eye.sy": "(lid.rx/(pi*2))+1",
121 "eye.sx": "(lid.rx/(pi))+1"
122 },
123 {
124 "lid2.rx": "if(close.visible, if(lid.rx > -pi/2.5 ,sin(lid.rx*2.5)/3,(lid.rx*2)+(pi/2)) , lid.rx) +pi",
125 "base.rx": "if(close.visible,0, if(lid.rx > -pi/2.5 ,sin(lid.rx*2.5)/6,0))",
126 "base2.rx": "if(close.visible,if(lid.rx > -pi/2.5 ,-sin(lid.rx*2.5)/2,0 )/7,0)",
127 "close.visible": "if(lid.rx == 0,0,lid.rx < -1.5, 1,if(close.visible,1,0)) > 0"
128 }
129 ]
130 },
131 {
132 "part": "lid",
133 "id": "lid",
134 "invertAxis": "xy",
135 "translate": [-8, -9, -7],
136 "rotate": [-180, 0, 0],
137 "animations": [
138 {
139 "this.rx": 0
140 }
141 ]
142 },
143 {
144 "part": "knob",
145 "id": "knob",
146 "invertAxis": "xy",
147 "translate": [-8, -8, -8],
148 "rotate": [-180, 0, 0],
149 "animations": [
150 {
151 "this.rx": 0
152 }
153 ]
154 }
155 ]
156} \ No newline at end of file