-
Notifications
You must be signed in to change notification settings - Fork 2
/
Block Crate Mod.js
398 lines (375 loc) · 22.2 KB
/
Block Crate Mod.js
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
//Block Crate Mod
//by wilco375
//Now also supports furnaces (BETA)
//Don't share or redistribute this mod using the Github link, instead, use this link: http://adf.ly/ov9Ok
var blockMover = 166
var moveBlock
var moveBlockId
var moveBlockData
Block.defineBlock(blockMover,"Block Crate",["piston_top_normal",0],20,false,0);
Item.addCraftRecipe(blockMover,1,0,[5,4,0,265,4,0,331,1,0])
Item.setCategory(blockMover,2,0);
function useItem(x,y,z,itemId,blockId,side){
if(itemId == blockMover){
preventDefault()
if(moveBlock != 1){
moveBlock = 1
if(blockId != 54 && blockId != 7 && blockId != 61 && blockId != 62){
moveBlockId = blockId
moveBlockData = Level.getData(x,y,z)
setTile(x,y,z,0,0)
}
else if(blockId == 61 || blockId == 62){
moveBlockId = blockId;
moveBlockData = Level.getData(x,y,z)
FurnaceSlotId0 = Level.getFurnaceSlot(x,y,z,0);
FurnaceSlotCount0 = Level.getFurnaceSlotCount(x,y,z,0);
FurnaceSlotData0 = Level.getFurnaceSlotData(x,y,z,0);
Level.setFurnaceSlot(x,y,z,0,0,0,0)
FurnaceSlotId1 = Level.getFurnaceSlot(x,y,z,1);
FurnaceSlotCount1 = Level.getFurnaceSlotCount(x,y,z,1);
FurnaceSlotData1 = Level.getFurnaceSlotData(x,y,z,1);
Level.setFurnaceSlot(x,y,z,1,0,0,0)
FurnaceSlotId2 = Level.getFurnaceSlot(x,y,z,2);
FurnaceSlotCount2 = Level.getFurnaceSlotCount(x,y,z,2);
FurnaceSlotData2 = Level.getFurnaceSlotData(x,y,z,2);
Level.setFurnaceSlot(x,y,z,2,0,0,0)
setTile(x,y,z,0,0)
}
else if(blockId == 54){
moveBlockId = blockId;
moveBlockData = Level.getData(x,y,z)
chestSlotId0 = Level.getChestSlot(x,y,z,0);
chestSlotCount0 = Level.getChestSlotCount(x,y,z,0);
chestSlotData0 = Level.getChestSlotData(x,y,z,0);
Level.setChestSlot(x,y,z,0,0,0,0)
chestSlotId1 = Level.getChestSlot(x,y,z,1);
chestSlotCount1 = Level.getChestSlotCount(x,y,z,1);
chestSlotData1 = Level.getChestSlotData(x,y,z,1);
Level.setChestSlot(x,y,z,1,0,0,0)
chestSlotId2 = Level.getChestSlot(x,y,z,2);
chestSlotCount2 = Level.getChestSlotCount(x,y,z,2);
chestSlotData2 = Level.getChestSlotData(x,y,z,2);
Level.setChestSlot(x,y,z,2,0,0,0)
chestSlotId3 = Level.getChestSlot(x,y,z,3);
chestSlotCount3 = Level.getChestSlotCount(x,y,z,3);
chestSlotData3 = Level.getChestSlotData(x,y,z,3);
Level.setChestSlot(x,y,z,3,0,0,0)
chestSlotId4 = Level.getChestSlot(x,y,z,4);
chestSlotCount4 = Level.getChestSlotCount(x,y,z,4);
chestSlotData4 = Level.getChestSlotData(x,y,z,4);
Level.setChestSlot(x,y,z,4,0,0,0)
chestSlotId5 = Level.getChestSlot(x,y,z,5);
chestSlotCount5 = Level.getChestSlotCount(x,y,z,5);
chestSlotData5 = Level.getChestSlotData(x,y,z,5);
Level.setChestSlot(x,y,z,5,0,0,0)
chestSlotId6 = Level.getChestSlot(x,y,z,6);
chestSlotCount6 = Level.getChestSlotCount(x,y,z,6);
chestSlotData6 = Level.getChestSlotData(x,y,z,6);
Level.setChestSlot(x,y,z,6,0,0,0)
chestSlotId7 = Level.getChestSlot(x,y,z,7);
chestSlotCount7 = Level.getChestSlotCount(x,y,z,7);
chestSlotData7 = Level.getChestSlotData(x,y,z,7);
Level.setChestSlot(x,y,z,7,0,0,0)
chestSlotId8 = Level.getChestSlot(x,y,z,8);
chestSlotCount8 = Level.getChestSlotCount(x,y,z,8);
chestSlotData8 = Level.getChestSlotData(x,y,z,8);
Level.setChestSlot(x,y,z,8,0,0,0)
chestSlotId9 = Level.getChestSlot(x,y,z,9);
chestSlotCount9 = Level.getChestSlotCount(x,y,z,9);
chestSlotData9 = Level.getChestSlotData(x,y,z,9);
Level.setChestSlot(x,y,z,9,0,0,0)
chestSlotId10 = Level.getChestSlot(x,y,z,10);
chestSlotCount10 = Level.getChestSlotCount(x,y,z,10);
chestSlotData10 = Level.getChestSlotData(x,y,z,10);
Level.setChestSlot(x,y,z,10,0,0,0)
chestSlotId11 = Level.getChestSlot(x,y,z,11);
chestSlotCount11 = Level.getChestSlotCount(x,y,z,11);
chestSlotData11 = Level.getChestSlotData(x,y,z,11);
Level.setChestSlot(x,y,z,11,0,0,0)
chestSlotId12 = Level.getChestSlot(x,y,z,12);
chestSlotCount12 = Level.getChestSlotCount(x,y,z,12);
chestSlotData12 = Level.getChestSlotData(x,y,z,12);
Level.setChestSlot(x,y,z,12,0,0,0)
chestSlotId13 = Level.getChestSlot(x,y,z,13);
chestSlotCount13 = Level.getChestSlotCount(x,y,z,13);
chestSlotData13 = Level.getChestSlotData(x,y,z,13);
Level.setChestSlot(x,y,z,13,0,0,0)
chestSlotId14 = Level.getChestSlot(x,y,z,14);
chestSlotCount14 = Level.getChestSlotCount(x,y,z,14);
chestSlotData14 = Level.getChestSlotData(x,y,z,14);
Level.setChestSlot(x,y,z,14,0,0,0)
chestSlotId15 = Level.getChestSlot(x,y,z,15);
chestSlotCount15 = Level.getChestSlotCount(x,y,z,15);
chestSlotData15 = Level.getChestSlotData(x,y,z,15);
Level.setChestSlot(x,y,z,15,0,0,0)
chestSlotId16 = Level.getChestSlot(x,y,z,16);
chestSlotCount16 = Level.getChestSlotCount(x,y,z,16);
chestSlotData16 = Level.getChestSlotData(x,y,z,16);
Level.setChestSlot(x,y,z,16,0,0,0)
chestSlotId17 = Level.getChestSlot(x,y,z,17);
chestSlotCount17 = Level.getChestSlotCount(x,y,z,17);
chestSlotData17 = Level.getChestSlotData(x,y,z,17);
Level.setChestSlot(x,y,z,17,0,0,0)
chestSlotId18 = Level.getChestSlot(x,y,z,18);
chestSlotCount18 = Level.getChestSlotCount(x,y,z,18);
chestSlotData18 = Level.getChestSlotData(x,y,z,18);
Level.setChestSlot(x,y,z,18,0,0,0)
chestSlotId19 = Level.getChestSlot(x,y,z,19);
chestSlotCount19 = Level.getChestSlotCount(x,y,z,19);
chestSlotData19 = Level.getChestSlotData(x,y,z,19);
Level.setChestSlot(x,y,z,19,0,0,0)
chestSlotId20 = Level.getChestSlot(x,y,z,20);
chestSlotCount20 = Level.getChestSlotCount(x,y,z,20);
chestSlotData20 = Level.getChestSlotData(x,y,z,20);
Level.setChestSlot(x,y,z,20,0,0,0)
chestSlotId21 = Level.getChestSlot(x,y,z,21);
chestSlotCount21 = Level.getChestSlotCount(x,y,z,21);
chestSlotData21 = Level.getChestSlotData(x,y,z,21);
Level.setChestSlot(x,y,z,21,0,0,0)
chestSlotId22 = Level.getChestSlot(x,y,z,22);
chestSlotCount22 = Level.getChestSlotCount(x,y,z,22);
chestSlotData22 = Level.getChestSlotData(x,y,z,22);
Level.setChestSlot(x,y,z,22,0,0,0)
chestSlotId23 = Level.getChestSlot(x,y,z,23);
chestSlotCount23 = Level.getChestSlotCount(x,y,z,23);
chestSlotData23 = Level.getChestSlotData(x,y,z,23);
Level.setChestSlot(x,y,z,23,0,0,0)
chestSlotId24 = Level.getChestSlot(x,y,z,24);
chestSlotCount24 = Level.getChestSlotCount(x,y,z,24);
chestSlotData24 = Level.getChestSlotData(x,y,z,24);
Level.setChestSlot(x,y,z,24,0,0,0)
chestSlotId25 = Level.getChestSlot(x,y,z,25);
chestSlotCount25 = Level.getChestSlotCount(x,y,z,25);
chestSlotData25 = Level.getChestSlotData(x,y,z,25);
Level.setChestSlot(x,y,z,25,0,0,0)
chestSlotId26 = Level.getChestSlot(x,y,z,26);
chestSlotCount26 = Level.getChestSlotCount(x,y,z,26);
chestSlotData26 = Level.getChestSlotData(x,y,z,26);
Level.setChestSlot(x,y,z,26,0,0,0)
setTile(x,y,z,0,0)
}
}
else if(moveBlock == 1){
moveBlock = 0
if(side == 0){ //bottom (-y)
setTile(x,y-1,z,moveBlockId,moveBlockData)
if(moveBlockId == 61 || moveBlockId == 62){
Level.setFurnaceSlot(x,y-1,z,0,FurnaceSlotId0,FurnaceSlotData0,FurnaceSlotCount0);
Level.setFurnaceSlot(x,y-1,z,1,FurnaceSlotId1,FurnaceSlotData1,FurnaceSlotCount1);
Level.setFurnaceSlot(x,y-1,z,2,FurnaceSlotId2,FurnaceSlotData2,FurnaceSlotCount2);
}
if(moveBlockId == 54){
Level.setChestSlot(x,y-1,z,0,chestSlotId0,chestSlotData0,chestSlotCount0);
Level.setChestSlot(x,y-1,z,1,chestSlotId1,chestSlotData1,chestSlotCount1);
Level.setChestSlot(x,y-1,z,2,chestSlotId2,chestSlotData2,chestSlotCount2);
Level.setChestSlot(x,y-1,z,3,chestSlotId3,chestSlotData3,chestSlotCount3);
Level.setChestSlot(x,y-1,z,4,chestSlotId4,chestSlotData4,chestSlotCount4);
Level.setChestSlot(x,y-1,z,5,chestSlotId5,chestSlotData5,chestSlotCount5);
Level.setChestSlot(x,y-1,z,6,chestSlotId6,chestSlotData6,chestSlotCount6);
Level.setChestSlot(x,y-1,z,7,chestSlotId7,chestSlotData7,chestSlotCount7);
Level.setChestSlot(x,y-1,z,8,chestSlotId8,chestSlotData8,chestSlotCount8);
Level.setChestSlot(x,y-1,z,9,chestSlotId9,chestSlotData9,chestSlotCount9);
Level.setChestSlot(x,y-1,z,10,chestSlotId10,chestSlotData10,chestSlotCount10);
Level.setChestSlot(x,y-1,z,11,chestSlotId11,chestSlotData11,chestSlotCount11);
Level.setChestSlot(x,y-1,z,12,chestSlotId12,chestSlotData12,chestSlotCount12);
Level.setChestSlot(x,y-1,z,13,chestSlotId13,chestSlotData13,chestSlotCount13);
Level.setChestSlot(x,y-1,z,14,chestSlotId14,chestSlotData14,chestSlotCount14);
Level.setChestSlot(x,y-1,z,15,chestSlotId15,chestSlotData15,chestSlotCount15);
Level.setChestSlot(x,y-1,z,16,chestSlotId16,chestSlotData16,chestSlotCount16);
Level.setChestSlot(x,y-1,z,17,chestSlotId17,chestSlotData17,chestSlotCount17);
Level.setChestSlot(x,y-1,z,18,chestSlotId18,chestSlotData18,chestSlotCount18);
Level.setChestSlot(x,y-1,z,19,chestSlotId19,chestSlotData19,chestSlotCount19);
Level.setChestSlot(x,y-1,z,20,chestSlotId20,chestSlotData20,chestSlotCount20);
Level.setChestSlot(x,y-1,z,21,chestSlotId21,chestSlotData21,chestSlotCount21);
Level.setChestSlot(x,y-1,z,22,chestSlotId22,chestSlotData22,chestSlotCount22);
Level.setChestSlot(x,y-1,z,23,chestSlotId23,chestSlotData23,chestSlotCount23);
Level.setChestSlot(x,y-1,z,24,chestSlotId24,chestSlotData24,chestSlotCount24);
Level.setChestSlot(x,y-1,z,25,chestSlotId25,chestSlotData25,chestSlotCount25);
Level.setChestSlot(x,y-1,z,26,chestSlotId26,chestSlotData26,chestSlotCount26);
}
}
if(side == 1){ // top (+y)
setTile(x,y+1,z,moveBlockId,moveBlockData)
if(moveBlockId == 61 || moveBlockId == 62){
Level.setFurnaceSlot(x,y+1,z,0,FurnaceSlotId0,FurnaceSlotData0,FurnaceSlotCount0);
Level.setFurnaceSlot(x,y+1,z,1,FurnaceSlotId1,FurnaceSlotData1,FurnaceSlotCount1);
Level.setFurnaceSlot(x,y+1,z,2,FurnaceSlotId2,FurnaceSlotData2,FurnaceSlotCount2);
}
if(moveBlockId == 54){
Level.setChestSlot(x,y+1,z,4,chestSlotId4,chestSlotData4,chestSlotCount4);
Level.setChestSlot(x,y+1,z,5,chestSlotId5,chestSlotData5,chestSlotCount5);
Level.setChestSlot(x,y+1,z,6,chestSlotId6,chestSlotData6,chestSlotCount6);
Level.setChestSlot(x,y+1,z,7,chestSlotId7,chestSlotData7,chestSlotCount7);
Level.setChestSlot(x,y+1,z,8,chestSlotId8,chestSlotData8,chestSlotCount8);
Level.setChestSlot(x,y+1,z,9,chestSlotId9,chestSlotData9,chestSlotCount9);
Level.setChestSlot(x,y+1,z,10,chestSlotId10,chestSlotData10,chestSlotCount10);
Level.setChestSlot(x,y+1,z,11,chestSlotId11,chestSlotData11,chestSlotCount11);
Level.setChestSlot(x,y+1,z,12,chestSlotId12,chestSlotData12,chestSlotCount12);
Level.setChestSlot(x,y+1,z,13,chestSlotId13,chestSlotData13,chestSlotCount13);
Level.setChestSlot(x,y+1,z,14,chestSlotId14,chestSlotData14,chestSlotCount14);
Level.setChestSlot(x,y+1,z,15,chestSlotId15,chestSlotData15,chestSlotCount15);
Level.setChestSlot(x,y+1,z,16,chestSlotId16,chestSlotData16,chestSlotCount16);
Level.setChestSlot(x,y+1,z,17,chestSlotId17,chestSlotData17,chestSlotCount17);
Level.setChestSlot(x,y+1,z,18,chestSlotId18,chestSlotData18,chestSlotCount18);
Level.setChestSlot(x,y+1,z,19,chestSlotId19,chestSlotData19,chestSlotCount19);
Level.setChestSlot(x,y+1,z,20,chestSlotId20,chestSlotData20,chestSlotCount20);
Level.setChestSlot(x,y+1,z,21,chestSlotId21,chestSlotData21,chestSlotCount21);
Level.setChestSlot(x,y+1,z,22,chestSlotId22,chestSlotData22,chestSlotCount22);
Level.setChestSlot(x,y+1,z,23,chestSlotId23,chestSlotData23,chestSlotCount23);
Level.setChestSlot(x,y+1,z,24,chestSlotId24,chestSlotData24,chestSlotCount24);
Level.setChestSlot(x,y+1,z,25,chestSlotId25,chestSlotData25,chestSlotCount25);
Level.setChestSlot(x,y+1,z,26,chestSlotId26,chestSlotData26,chestSlotCount26);
}
}
if(side == 2){ // -z
setTile(x,y,z-1,moveBlockId,moveBlockData)
if(moveBlockId == 61 || moveBlockId == 62){
Level.setFurnaceSlot(x,y,z-1,0,FurnaceSlotId0,FurnaceSlotData0,FurnaceSlotCount0);
Level.setFurnaceSlot(x,y,z-1,1,FurnaceSlotId1,FurnaceSlotData1,FurnaceSlotCount1);
Level.setFurnaceSlot(x,y,z-1,2,FurnaceSlotId2,FurnaceSlotData2,FurnaceSlotCount2);
}
if(moveBlockId == 54){
Level.setChestSlot(x,y,z-1,0,chestSlotId0,chestSlotData0,chestSlotCount0);
Level.setChestSlot(x,y,z-1,1,chestSlotId1,chestSlotData1,chestSlotCount1);
Level.setChestSlot(x,y,z-1,2,chestSlotId2,chestSlotData2,chestSlotCount2);
Level.setChestSlot(x,y,z-1,3,chestSlotId3,chestSlotData3,chestSlotCount3);
Level.setChestSlot(x,y,z-1,4,chestSlotId4,chestSlotData4,chestSlotCount4);
Level.setChestSlot(x,y,z-1,5,chestSlotId5,chestSlotData5,chestSlotCount5);
Level.setChestSlot(x,y,z-1,6,chestSlotId6,chestSlotData6,chestSlotCount6);
Level.setChestSlot(x,y,z-1,7,chestSlotId7,chestSlotData7,chestSlotCount7);
Level.setChestSlot(x,y,z-1,8,chestSlotId8,chestSlotData8,chestSlotCount8);
Level.setChestSlot(x,y,z-1,9,chestSlotId9,chestSlotData9,chestSlotCount9);
Level.setChestSlot(x,y,z-1,10,chestSlotId10,chestSlotData10,chestSlotCount10);
Level.setChestSlot(x,y,z-1,11,chestSlotId11,chestSlotData11,chestSlotCount11);
Level.setChestSlot(x,y,z-1,12,chestSlotId12,chestSlotData12,chestSlotCount12);
Level.setChestSlot(x,y,z-1,13,chestSlotId13,chestSlotData13,chestSlotCount13);
Level.setChestSlot(x,y,z-1,14,chestSlotId14,chestSlotData14,chestSlotCount14);
Level.setChestSlot(x,y,z-1,15,chestSlotId15,chestSlotData15,chestSlotCount15);
Level.setChestSlot(x,y,z-1,16,chestSlotId16,chestSlotData16,chestSlotCount16);
Level.setChestSlot(x,y,z-1,17,chestSlotId17,chestSlotData17,chestSlotCount17);
Level.setChestSlot(x,y,z-1,18,chestSlotId18,chestSlotData18,chestSlotCount18);
Level.setChestSlot(x,y,z-1,19,chestSlotId19,chestSlotData19,chestSlotCount19);
Level.setChestSlot(x,y,z-1,20,chestSlotId20,chestSlotData20,chestSlotCount20);
Level.setChestSlot(x,y,z-1,21,chestSlotId21,chestSlotData21,chestSlotCount21);
Level.setChestSlot(x,y,z-1,22,chestSlotId22,chestSlotData22,chestSlotCount22);
Level.setChestSlot(x,y,z-1,23,chestSlotId23,chestSlotData23,chestSlotCount23);
Level.setChestSlot(x,y,z-1,24,chestSlotId24,chestSlotData24,chestSlotCount24);
Level.setChestSlot(x,y,z-1,25,chestSlotId25,chestSlotData25,chestSlotCount25);
Level.setChestSlot(x,y,z-1,26,chestSlotId26,chestSlotData26,chestSlotCount26);
}
}
if(side == 3){ // +z
setTile(x,y,z+1,moveBlockId,moveBlockData)
if(moveBlockId == 61 || moveBlockId == 62){
Level.setFurnaceSlot(x,y,z+1,0,FurnaceSlotId0,FurnaceSlotData0,FurnaceSlotCount0);
Level.setFurnaceSlot(x,y,z+1,1,FurnaceSlotId1,FurnaceSlotData1,FurnaceSlotCount1);
Level.setFurnaceSlot(x,y,z+1,2,FurnaceSlotId2,FurnaceSlotData2,FurnaceSlotCount2);
}
if(moveBlockId == 54){
Level.setChestSlot(x,y,z+1,0,chestSlotId0,chestSlotData0,chestSlotCount0);
Level.setChestSlot(x,y,z+1,1,chestSlotId1,chestSlotData1,chestSlotCount1);
Level.setChestSlot(x,y,z+1,2,chestSlotId2,chestSlotData2,chestSlotCount2);
Level.setChestSlot(x,y,z+1,3,chestSlotId3,chestSlotData3,chestSlotCount3);
Level.setChestSlot(x,y,z+1,4,chestSlotId4,chestSlotData4,chestSlotCount4);
Level.setChestSlot(x,y,z+1,5,chestSlotId5,chestSlotData5,chestSlotCount5);
Level.setChestSlot(x,y,z+1,6,chestSlotId6,chestSlotData6,chestSlotCount6);
Level.setChestSlot(x,y,z+1,7,chestSlotId7,chestSlotData7,chestSlotCount7);
Level.setChestSlot(x,y,z+1,8,chestSlotId8,chestSlotData8,chestSlotCount8);
Level.setChestSlot(x,y,z+1,9,chestSlotId9,chestSlotData9,chestSlotCount9);
Level.setChestSlot(x,y,z+1,10,chestSlotId10,chestSlotData10,chestSlotCount10);
Level.setChestSlot(x,y,z+1,11,chestSlotId11,chestSlotData11,chestSlotCount11);
Level.setChestSlot(x,y,z+1,12,chestSlotId12,chestSlotData12,chestSlotCount12);
Level.setChestSlot(x,y,z+1,13,chestSlotId13,chestSlotData13,chestSlotCount13);
Level.setChestSlot(x,y,z+1,14,chestSlotId14,chestSlotData14,chestSlotCount14);
Level.setChestSlot(x,y,z+1,15,chestSlotId15,chestSlotData15,chestSlotCount15);
Level.setChestSlot(x,y,z+1,16,chestSlotId16,chestSlotData16,chestSlotCount16);
Level.setChestSlot(x,y,z+1,17,chestSlotId17,chestSlotData17,chestSlotCount17);
Level.setChestSlot(x,y,z+1,18,chestSlotId18,chestSlotData18,chestSlotCount18);
Level.setChestSlot(x,y,z+1,19,chestSlotId19,chestSlotData19,chestSlotCount19);
Level.setChestSlot(x,y,z+1,20,chestSlotId20,chestSlotData20,chestSlotCount20);
Level.setChestSlot(x,y,z+1,21,chestSlotId21,chestSlotData21,chestSlotCount21);
Level.setChestSlot(x,y,z+1,22,chestSlotId22,chestSlotData22,chestSlotCount22);
Level.setChestSlot(x,y,z+1,23,chestSlotId23,chestSlotData23,chestSlotCount23);
Level.setChestSlot(x,y,z+1,24,chestSlotId24,chestSlotData24,chestSlotCount24);
Level.setChestSlot(x,y,z+1,25,chestSlotId25,chestSlotData25,chestSlotCount25);
Level.setChestSlot(x,y,z+1,26,chestSlotId26,chestSlotData26,chestSlotCount26);
}
}
if(side == 4){ // -x
setTile(x-1,y,z,moveBlockId,moveBlockData)
if(moveBlockId == 61 || moveBlockId == 62){
Level.setFurnaceSlot(x-1,y,z,0,FurnaceSlotId0,FurnaceSlotData0,FurnaceSlotCount0);
Level.setFurnaceSlot(x-1,y,z,1,FurnaceSlotId1,FurnaceSlotData1,FurnaceSlotCount1);
Level.setFurnaceSlot(x-1,y,z,2,FurnaceSlotId2,FurnaceSlotData2,FurnaceSlotCount2);
}
if(moveBlockId == 54){
Level.setChestSlot(x-1,y,z,0,chestSlotId0,chestSlotData0,chestSlotCount0);
Level.setChestSlot(x-1,y,z,1,chestSlotId1,chestSlotData1,chestSlotCount1);
Level.setChestSlot(x-1,y,z,2,chestSlotId2,chestSlotData2,chestSlotCount2);
Level.setChestSlot(x-1,y,z,3,chestSlotId3,chestSlotData3,chestSlotCount3);
Level.setChestSlot(x-1,y,z,4,chestSlotId4,chestSlotData4,chestSlotCount4);
Level.setChestSlot(x-1,y,z,5,chestSlotId5,chestSlotData5,chestSlotCount5);
Level.setChestSlot(x-1,y,z,6,chestSlotId6,chestSlotData6,chestSlotCount6);
Level.setChestSlot(x-1,y,z,7,chestSlotId7,chestSlotData7,chestSlotCount7);
Level.setChestSlot(x-1,y,z,8,chestSlotId8,chestSlotData8,chestSlotCount8);
Level.setChestSlot(x-1,y,z,9,chestSlotId9,chestSlotData9,chestSlotCount9);
Level.setChestSlot(x-1,y,z,10,chestSlotId10,chestSlotData10,chestSlotCount10);
Level.setChestSlot(x-1,y,z,11,chestSlotId11,chestSlotData11,chestSlotCount11);
Level.setChestSlot(x-1,y,z,12,chestSlotId12,chestSlotData12,chestSlotCount12);
Level.setChestSlot(x-1,y,z,13,chestSlotId13,chestSlotData13,chestSlotCount13);
Level.setChestSlot(x-1,y,z,14,chestSlotId14,chestSlotData14,chestSlotCount14);
Level.setChestSlot(x-1,y,z,15,chestSlotId15,chestSlotData15,chestSlotCount15);
Level.setChestSlot(x-1,y,z,16,chestSlotId16,chestSlotData16,chestSlotCount16);
Level.setChestSlot(x-1,y,z,17,chestSlotId17,chestSlotData17,chestSlotCount17);
Level.setChestSlot(x-1,y,z,18,chestSlotId18,chestSlotData18,chestSlotCount18);
Level.setChestSlot(x-1,y,z,19,chestSlotId19,chestSlotData19,chestSlotCount19);
Level.setChestSlot(x-1,y,z,20,chestSlotId20,chestSlotData20,chestSlotCount20);
Level.setChestSlot(x-1,y,z,21,chestSlotId21,chestSlotData21,chestSlotCount21);
Level.setChestSlot(x-1,y,z,22,chestSlotId22,chestSlotData22,chestSlotCount22);
Level.setChestSlot(x-1,y,z,23,chestSlotId23,chestSlotData23,chestSlotCount23);
Level.setChestSlot(x-1,y,z,24,chestSlotId24,chestSlotData24,chestSlotCount24);
Level.setChestSlot(x-1,y,z,25,chestSlotId25,chestSlotData25,chestSlotCount25);
Level.setChestSlot(x-1,y,z,26,chestSlotId26,chestSlotData26,chestSlotCount26);
}
}
if(side == 5){ // +x
setTile(x+1,y,z,moveBlockId,moveBlockData)
if(moveBlockId == 61 || moveBlockId == 62){
Level.setFurnaceSlot(x+1,y,z,0,FurnaceSlotId0,FurnaceSlotData0,FurnaceSlotCount0);
Level.setFurnaceSlot(x+1,y,z,1,FurnaceSlotId1,FurnaceSlotData1,FurnaceSlotCount1);
Level.setFurnaceSlot(x+1,y,z,2,FurnaceSlotId2,FurnaceSlotData2,FurnaceSlotCount2);
}
if(moveBlockId == 54){
Level.setChestSlot(x+1,y,z,0,chestSlotId0,chestSlotData0,chestSlotCount0);
Level.setChestSlot(x+1,y,z,1,chestSlotId1,chestSlotData1,chestSlotCount1);
Level.setChestSlot(x+1,y,z,2,chestSlotId2,chestSlotData2,chestSlotCount2);
Level.setChestSlot(x+1,y,z,3,chestSlotId3,chestSlotData3,chestSlotCount3);
Level.setChestSlot(x+1,y,z,4,chestSlotId4,chestSlotData4,chestSlotCount4);
Level.setChestSlot(x+1,y,z,5,chestSlotId5,chestSlotData5,chestSlotCount5);
Level.setChestSlot(x+1,y,z,6,chestSlotId6,chestSlotData6,chestSlotCount6);
Level.setChestSlot(x+1,y,z,7,chestSlotId7,chestSlotData7,chestSlotCount7);
Level.setChestSlot(x+1,y,z,8,chestSlotId8,chestSlotData8,chestSlotCount8);
Level.setChestSlot(x+1,y,z,9,chestSlotId9,chestSlotData9,chestSlotCount9);
Level.setChestSlot(x+1,y,z,10,chestSlotId10,chestSlotData10,chestSlotCount10);
Level.setChestSlot(x+1,y,z,11,chestSlotId11,chestSlotData11,chestSlotCount11);
Level.setChestSlot(x+1,y,z,12,chestSlotId12,chestSlotData12,chestSlotCount12);
Level.setChestSlot(x+1,y,z,13,chestSlotId13,chestSlotData13,chestSlotCount13);
Level.setChestSlot(x+1,y,z,14,chestSlotId14,chestSlotData14,chestSlotCount14);
Level.setChestSlot(x+1,y,z,15,chestSlotId15,chestSlotData15,chestSlotCount15);
Level.setChestSlot(x+1,y,z,16,chestSlotId16,chestSlotData16,chestSlotCount16);
Level.setChestSlot(x+1,y,z,17,chestSlotId17,chestSlotData17,chestSlotCount17);
Level.setChestSlot(x+1,y,z,18,chestSlotId18,chestSlotData18,chestSlotCount18);
Level.setChestSlot(x+1,y,z,19,chestSlotId19,chestSlotData19,chestSlotCount19);
Level.setChestSlot(x+1,y,z,20,chestSlotId20,chestSlotData20,chestSlotCount20);
Level.setChestSlot(x+1,y,z,21,chestSlotId21,chestSlotData21,chestSlotCount21);
Level.setChestSlot(x+1,y,z,22,chestSlotId22,chestSlotData22,chestSlotCount22);
Level.setChestSlot(x+1,y,z,23,chestSlotId23,chestSlotData23,chestSlotCount23);
Level.setChestSlot(x+1,y,z,24,chestSlotId24,chestSlotData24,chestSlotCount24);
Level.setChestSlot(x+1,y,z,25,chestSlotId25,chestSlotData25,chestSlotCount25);
Level.setChestSlot(x+1,y,z,26,chestSlotId26,chestSlotData26,chestSlotCount26);
}
}
}
}
}