summaryrefslogtreecommitdiff
path: root/assets/minecraft/optifine/cem/trapped_chest.jem
blob: 1527da0ad0b4910f48dedf7a9ab6f694793ecbac (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
{
	"credit": "Made with Blockbench",
	"texture": "trapped_chest.png",
	"textureSize": [64, 64],
	"models": [
		{
			"part": "base",
			"id": "base",
			"invertAxis": "xy",
			"translate": [-8, 0, -8],
			"rotate": [-180, 0, 0],
			"submodels": [
				{
					"id": "base2",
					"invertAxis": "xy",
					"translate": [8, 0, 24],
					"boxes": [
						{
							"coordinates": [-2, -11, -14, -12, 9, 12],
							"uvNorth": [36, 56, 48, 47],
							"uvEast": [12, 56, 0, 47],
							"uvSouth": [24, 56, 12, 47],
							"uvWest": [36, 56, 24, 47],
							"uvUp": [24, 44, 12, 32]
						},
						{
							"coordinates": [-16, -11, -16, 16, 11, 16],
							"uvNorth": [64, 32, 48, 21],
							"uvEast": [16, 32, 0, 21],
							"uvSouth": [32, 32, 16, 21],
							"uvWest": [48, 32, 32, 21],
							"uvUp": [48, 0, 32, 16],
							"uvDown": [64, 0, 48, 16]
						}
					],
					"submodels": [
						{
							"id": "anti_base",
							"invertAxis": "xy",
							"translate": [0, 0, -16],
							"rotate": [-180, 0, 0],
							"submodels": [
								{
									"id": "lid2",
									"invertAxis": "xy",
									"translate": [0, 9, -1],
									"rotate": [-180, 0, 0],
									"boxes": [
										{
											"coordinates": [-16, -7, -1, 16, 6, 16],
											"uvNorth": [48, 22, 64, 16],
											"uvEast": [16, 22, 0, 16],
											"uvSouth": [32, 22, 16, 16],
											"uvWest": [48, 22, 32, 16],
											"uvUp": [64, 16, 48, 0],
											"uvDown": [32, 16, 16, 0]
										},
										{
											"coordinates": [-9, -4, 15, 2, 4, 1],
											"uvNorth": [4, 5, 6, 1],
											"uvEast": [0, 5, 1, 1],
											"uvSouth": [1, 5, 3, 1],
											"uvWest": [3, 5, 4, 1],
											"uvUp": [5, 1, 3, 0],
											"uvDown": [3, 0, 1, 1]
										},
										{
											"coordinates": [-2, -5, 1, -12, 4, 12],
											"uvNorth": [36, 48, 48, 44],
											"uvEast": [12, 48, 0, 44],
											"uvSouth": [24, 48, 12, 44],
											"uvWest": [36, 48, 24, 44],
											"uvDown": [36, 44, 24, 32]
										}
									]
								}
							]
						}
					]
				},
				{
					"id": "test",
					"invertAxis": "xy",
					"translate": [8, 0, 8],
					"submodels": [
						{
							"id": "close",
							"invertAxis": "xy",
							"translate": [0, 0, 0]
						}
					]
				}
			],
			"animations": [
				{
					"this.rx": 0
				},
				{
					"lid2.rx": "if(test.rx <= lid.rx, if(lid.rx > -pi/2.5 ,sin(lid.rx*2.5)/3,(lid.rx*2)+(pi/2)) , lid.rx) +pi",
					"base.rx": "if(test.rx <= lid.rx,0, if(lid.rx > -pi/2.5 ,sin(lid.rx*2.5)/6,0))",
					"base2.rx": "if(test.rx <= lid.rx,if(lid.rx > -pi/2.5 ,-sin(lid.rx*2.5)/2,0  )/7,0)",
					"close.visible": "if(test.rx <= lid.rx,1,0) > 0"
				},
				{
					"test.rx": "lid.rx"
				}
			]
		},
		{
			"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
				}
			]
		}
	]
}