summaryrefslogtreecommitdiff
path: root/assets/minecraft/optifine/cem/ender_chest.jem
blob: 1bfb3c7b9ca56cde44ebf729290b4009a682c5c9 (plain) (blame)
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
{
	"textureSize": [64, 64],
	"models": [
		{
			"part": "base",
			"id": "base",
			"invertAxis": "xy",
			"translate": [-8, 0, -8],
			"rotate": [-180, 0, 0],
			"submodels": [
				{
					"id": "base2",
					"invertAxis": "xy",
					"translate": [0, 0, 23],
					"submodels": [
						{
							"id": "anti_base",
							"invertAxis": "xy",
							"translate": [8, 0, -15],
							"rotate": [-180, 0, 0],
							"submodels": [
								{
									"id": "lid2",
									"invertAxis": "xy",
									"translate": [0, 9, -1],
									"rotate": [-180, 0, 0],
									"boxes": [
										{
											"coordinates": [-15, -5, 0, 14, 5, 14],
											"uvNorth": [14, 14, 28, 19],
											"uvEast": [0, 14, 14, 19],
											"uvSouth": [42, 14, 56, 19],
											"uvWest": [28, 14, 42, 19],
											"uvUp": [28, 14, 14, 0],
											"uvDown": [42, 0, 28, 14]
										}
									],
									"submodels": [
										{
											"id": "knob2",
											"invertAxis": "xy",
											"translate": [0, -1, 30],
											"rotate": [-180, 0, 0],
											"boxes": [
												{
													"coordinates": [-9, -3, 15, 2, 4, 1],
													"uvNorth": [1, 1, 3, 5],
													"uvEast": [0, 1, 1, 5],
													"uvSouth": [4, 1, 6, 5],
													"uvWest": [3, 1, 4, 5],
													"uvUp": [3, 1, 1, 0],
													"uvDown": [5, 0, 3, 1]
												}
											]
										}
									]
								}
							]
						},
						{
							"id": "rand",
							"invertAxis": "xy",
							"translate": [8, 0, -15]
						},
						{
							"id": "close",
							"invertAxis": "xy",
							"translate": [8, 0, -15]
						},
						{
							"id": "eye",
							"invertAxis": "xy",
							"translate": [0, -5, 3],
							"submodels": [
								{
									"id": "negey",
									"invertAxis": "xy",
									"translate": [-1, 5, -27],
									"boxes": [
										{
											"coordinates": [0, -7, 24.02, 2, 4, 0],
											"uvSouth": [43, 26, 45, 30]
										}
									]
								}
							]
						}
					],
					"boxes": [
						{
							"coordinates": [-2, -7, 0.03, 2, 2, 0],
							"uvSouth": [53, 29, 54, 30]
						},
						{
							"coordinates": [-3, -9, 0.01, 6, 8, 0],
							"uvSouth": [46, 24, 52, 32]
						},
						{
							"coordinates": [-7, -10, -14, 14, 10, 14],
							"uvNorth": [14, 33, 28, 43],
							"uvEast": [0, 33, 14, 43],
							"uvSouth": [42, 33, 56, 43],
							"uvWest": [28, 33, 42, 43],
							"uvUp": [28, 33, 14, 19],
							"uvDown": [42, 19, 28, 33]
						}
					]
				}
			],
			"animations": [
				{
					"this.rx": 0,
					"this.ry": 0
				},
				{
					"rand.rx": "if(sin(time/8)>0.999,(random(time)*4)-2,rand.rx)",
					"rand.ry": "if(sin(time/8)>0.999,(random(time+1)*6)+2,rand.ry)",
					"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))",
					"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))",
					"eye.sy": "(lid.rx/(pi*2))+1",
					"eye.sx": "(lid.rx/(pi))+1"
				},
				{
					"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",
					"base.rx": "if(close.visible,0, if(lid.rx > -pi/2.5 ,sin(lid.rx*2.5)/6,0))",
					"base2.rx": "if(close.visible,if(lid.rx > -pi/2.5 ,-sin(lid.rx*2.5)/2,0  )/7,0)",
					"close.visible": "if(lid.rx == 0,0,lid.rx < -1.5, 1,if(close.visible,1,0)) > 0"
				}
			]
		},
		{
			"part": "lid",
			"id": "lid",
			"invertAxis": "xy",
			"translate": [-8, -9, -7],
			"rotate": [-180, 0, 0],
			"animations": [
				{
					"this.rx": 0
				}
			]
		},
		{
			"part": "knob",
			"id": "knob",
			"invertAxis": "xy",
			"translate": [-8, -8, -8],
			"rotate": [-180, 0, 0],
			"animations": [
				{
					"this.rx": 0
				}
			]
		}
	]
}