-
Notifications
You must be signed in to change notification settings - Fork 4
/
GregTech6_zh_CN.xml
3942 lines (3393 loc) · 117 KB
/
GregTech6_zh_CN.xml
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
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!-- Author: Amamiya-Nagisa,lin_1,YueSha -->
<!--Date: 2020/07/20-->
<!-- Version: GT6U 6.14.03 -->
<!-- Language: Chinese -->
<oo>
<!-- ID to EnergyTier -->
<!-- HU SU - 蒸汽锅炉,SU KU - 蒸汽引擎,EU KU - 电动引擎,SU RU - 单方块涡轮,EU HU - 电力加热器, -->
<!-- EU RU - 电力旋转动能引擎,EU MU - 电磁铁,EU EU - 变压器,EU EU - 电池盒,EU LU - CO2激光器, -->
<!-- RU EU - 发电机,LU QU - 量子充能器, LU LU - 晶体充能器,LU EU - 激光接收器,EU CU HU - 半导体制冷器, -->
<init>
function ID2Tier(mID,mInput,mOutput,isInput){
var tInput = 0;
var tOutput = 0;
if(mInput == "HU"){
if(mOutput == "SU"){
if(mID >= 1250){
tInput = 4 * ID2Tier(mID - 50,"HU","SU",1);
}
else if(mID >= 1200){
switch(mID){
case 1200:{tInput = 16;break;}
case 1201:{tInput = 20;break;}
case 1202:{tInput = 24;break;}
case 1203:{tInput = 16;break;}
case 1204:{tInput = 32;break;}
case 1205:{tInput = 96;break;}
case 1206:{tInput = 112;break;}
case 1207:{tInput = 128;break;}
case 1208:{tInput = 128;break;}
}
}
tOutput = tInput * 2;
}
}
if(mInput == "SU"){
if(mOutput == "KU"){
if(mID > 1311){
tOutput = 4 * ID2Tier(mID - 50,"SU","KU",0);
}
else if(mID >= 1300){
switch(mID){
case 1300:{tOutput = 8;break;}
case 1301:{tOutput = 10;break;}
case 1302:{tOutput = 12;break;}
case 1303:{tOutput = 8;break;}
case 1304:{tOutput = 16;break;}
case 1305:{tOutput = 48;break;}
case 1306:{tOutput = 56;break;}
case 1307:{tOutput = 64;break;}
case 1308:{tOutput = 64;break;}
case 1309:{tOutput = 12;break;}
case 1310:{tOutput = 8;break;}
case 1311:{tOutput = 32;break;}
}
}
tInput = parseInt(tOutput * 2 * 10000 / SteamEff(mID));
}
if(mOutput == "RU"){
switch(mID){
case 1512:{tOutput = 16;break;}
case 1515:{tOutput = 24;break;}
case 1518:{tOutput = 32;break;}
case 1522:{tOutput = 64;break;}
case 1525:{tOutput = 96;break;}
case 1527:{tOutput = 128;break;}
case 1528:{tOutput = 128;break;}
case 1529:{tOutput = 128;break;}
case 1530:{tOutput = 256;break;}
case 1531:{tOutput = 256;break;}
case 1535:{tOutput = 384;break;}
case 1538:{tOutput = 512;break;}
case 1540:{tOutput = 768;break;}
case 1545:{tOutput = 1024;break;}
case 1548:{tOutput = 2048;break;}
}
tInput = tOutput * 3;
}
}
if(mInput == "EU"){
if(mOutput == "KU"){
tInput = 8 * Math.pow(4,(mID % 10010));
tOutput = tInput / 2;
}
if(mOutput == "HU"){
if(mID >= 10160){
tInput = 8 * Math.pow(4,(mID % 10160));
tOutput = tInput / 4;
}
else if(mID >= 10000){
tInput = 8 * Math.pow(4,(mID % 10000));
tOutput = tInput / 2;
}
}
if(mOutput == "RU"){
tInput = 8 * Math.pow(4,(mID % 10020));
tOutput = tInput / 2;
}
if(mOutput == "MU"){
tInput = 8 * Math.pow(4,(mID % 10030));
tOutput = tInput / 2;
}
if(mOutput == "EU"){
if(mID >= 10090){
tInput = 8 * Math.pow(4,(mID % 10090));
tOutput = tInput;
}
else if(mID >= 10080){
tInput = 8 * Math.pow(4,(mID % 10080));
tOutput = tInput;
}
else if(mID >= 10040){
tOutput = 8 * Math.pow(4,(mID % 10040));
tInput = tOutput * 4;
}
}
if(mOutput == "LU"){
tInput = 8 * Math.pow(4,(mID % 10100));
tOutput = tInput / 2;
}
if(mOutput == "CU"){
if(mID >= 10160){
tInput = 8 * Math.pow(4,(mID % 10160));
tOutput = tInput / 4;
}
}
}
if(mInput == "RU"){
if(mOutput == "EU"){
tInput = 8 * Math.pow(4,(mID % 10110));
tOutput = parseInt(tInput * 6875 / 10000);
}
}
if(mInput == "LU"){
if(mOutput == "QU"){
tInput = 8 * Math.pow(4,(mID % 10120));
tOutput = tInput / 2;
}
if(mOutput == "LU"){
if(mID >= 10140){
tInput = 8 * Math.pow(4,(mID % 10140));
tOutput = tInput;
}
else if(mID >= 10130){
tInput = 8 * Math.pow(4,(mID % 10130));
tOutput = tInput;
}
}
if(mOutput == "EU"){
tInput = 8 * Math.pow(4,(mID % 10150));
tOutput = tInput / 2;
}
}
if(isInput == 1){
return tInput;
}
else if(isInput == 0){
return tOutput;
}
}
</init>
<!-- 判断蒸汽机器爆炸半径 -->
<init>
function ExplodeRoundSU(cap){
if((Math.sqrt(cap) / 100) > 1){
return parseInt((Math.sqrt(cap) / 100));
}
return 1;
}
</init>
<!-- 判断靠近锅炉所受伤害数值 -->
<init>
function HeatDamageSU(enCap,SUCap,isChisel){
if(isChisel == 0){
if(parseInt((enCap + SUCap / 2) / 2000) < 10){
return parseInt((enCap + SUCap / 2) / 2000);
}
return 10;
}
return parseInt((enCap + SUCap / 2) / 2000)
}
</init>
<!-- 蒸汽引擎效率 -->
<init>
function SteamEff(mID){
if(mID >= 1350){
return SteamEff(mID - 50);
}
switch(mID){
case 1300:{return 3000;}
case 1301:{return 4000;}
case 1302:{return 5000;}
case 1303:{return 6400;}
case 1304:{return 5000;}
case 1305:{return 6300;}
case 1306:{return 5800;}
case 1307:{return 5800;}
case 1308:{return 6000;}
case 1309:{return 5000;}
case 1310:{return 6450;}
case 1311:{return 6200;}
}
}
</init>
<!-- 蒸汽锅炉容量 -->
<init>
function SteamCap(SC){
return ID2Tier(SC['gt.mte.id'],"HU","SU",1) * 10000;
}
</init>
<!-- 限定上下限 -->
<init>
function bind(aMin,aMax,aValue){
return Math.max(aMin,Math.min(aMax,aValue));
}
</init>
<!-- 电池盒参数 -->
<init>
function BatteryBoxArg(BBA,isLarge,ArgType,isEU){
var BatteryAmount = 0;
var EUAmount = 0;
var BatteryCap = 0;
var BatteryIDArg = 200;
var BatteryIDArg_2 = 14000;
var BatteryBoxArg_0 = 10080;
var BatteryBoxArg_1 = 10090;
var errorAmount = 0;
if(isEU != 1){
BatteryIDArg = 210;
BatteryIDArg_2 = 14500;
BatteryBoxArg_0 = 10130;
BatteryBoxArg_1 = 10140;
}
for (var i = 0; i < 16;i++) {
if(isLarge != 1){
if(i >= 4){
break;
}
}
if(BBA['gt.invlist'][i.toString()] != undefined){
try{
if((BBA['gt.invlist'][i.toString()]['Damage'] >= 20100) && (parseInt((BBA['gt.invlist'][i.toString()]['Damage'] / 100) % BatteryIDArg) == (BBA['gt.mte.id'] % BatteryBoxArg_0) || parseInt((BBA['gt.invlist'][i.toString()]['Damage'] / 100) % BatteryIDArg) == (BBA['gt.mte.id'] % BatteryBoxArg_1))){
if(BBA['gt.invlist'][i.toString()]['tag'] != undefined){
EUAmount += BBA['gt.invlist'][i.toString()]['tag']['gt.energy'];
}
BatteryAmount++;
if(isEU == 1){
BatteryCap += ID2Cap(BBA['gt.invlist'][i.toString()]['Damage'],"EU");
}else{
BatteryCap += ID2Cap(BBA['gt.invlist'][i.toString()]['Damage'],"LU");
}
}
else if((BBA['gt.invlist'][i.toString()]['Damage'] >= 14000) && (BBA['gt.invlist'][i.toString()]['Damage'] <= 14515) && (parseInt((BBA['gt.invlist'][i.toString()]['Damage'] % BatteryIDArg_2) % 10) == (BBA['gt.mte.id'] % BatteryBoxArg_0) || parseInt((BBA['gt.invlist'][i.toString()]['Damage'] % BatteryIDArg_2) % 10) == (BBA['gt.mte.id'] % BatteryBoxArg_1))){
if(BBA['gt.invlist'][i.toString()]['tag'] != undefined){
EUAmount += BBA['gt.invlist'][i.toString()]['tag']['gt.energy'];
}
BatteryAmount++;
if(isEU == 1){
BatteryCap += ID2Cap(BBA['gt.invlist'][i.toString()]['Damage'],"EU");
}else{
BatteryCap += ID2Cap(BBA['gt.invlist'][i.toString()]['Damage'],"LU");
}
}
else{
errorAmount++;
}
}
catch(e){
errorAmount++;
}
}
}
switch(ArgType){
case 0:{return BatteryAmount;}
case 1:{return EUAmount;}
case 2:{return BatteryCap;}
case 3:{return errorAmount;}
}
}
</init>
<!-- 电池容量 -->
<init>
function ID2Cap(mID,mInput){
if(mInput == "EU"){
if(mID >= 14100){
if(mID > 20300){
return 16 * ID2Cap(mID - 200,"EU");
}
if(mID > 20200){
return 4 * ID2Cap(mID - 100,"EU");
}
switch(mID){
case 20101:{return 32000;}
case 20102:{return 48000;}
case 20103:{return 64000;}
case 20104:{return 8000;}
case 20105:{return 16000;}
case 20106:{return 16000;}
case 20107:{return 16000;}
}
}
else{
if(mID >= 14040){
return 64 * ID2Cap(mID - 40,"EU");
}
if(mID >= 14030){
return 32 * ID2Cap(mID - 30,"EU");
}
if(mID >= 14020){
return 2 * ID2Cap(mID - 20,"EU");
}
if(mID >= 14010){
return 2 * ID2Cap(mID - 10,"EU");
}
switch(mID){
case 14000:{return 16000;}
case 14001:{return 64000;}
case 14002:{return 256000;}
case 14003:{return 1024000;}
case 14004:{return 4096000;}
case 14005:{return 4096000;}
}
}
}
if(mInput == "LU"){
if(mID >= 14510){
return 2 * ID2Cap(mID - 10,"LU");
}
return 3200000 * Math.pow(4,parseInt(mID % 14500));
}
}
</init>
<!-- 工作状态 -->
<init>
function isRun(iR){
if(iR['gt.active.energy'] != undefined){
return GREEN + "运行";
}
if((iR['gt.active'] != undefined)||(iR['gt.can.energy'] != undefined)){
return BLUE + "待机";
}
return RED + "停机";
}
</init>
<!-- 能量单位 -->
<init>
function Unit(Type){
switch(Type){
case "EU":{return BLUE + " EU" + WHITE;}
case "RU":{return GREEN + " RU" + WHITE;}
case "KU":{return DGREEN + " KU" + WHITE;}
case "HU":{return RED + " HU" + WHITE;}
case "CU":{return AQUA + " CU" + WHITE;}
case "LU":{return YELLOW + " LU" + WHITE;}
case "MU":{return DGRAY + " MU" + WHITE;}
case "NU":{return BLACK + " NU" + WHITE;}
case "QU":{return DPURPLE + " QU" + WHITE;}
case "TU":{return DBLUE + " TU" + WHITE;}
case "RF":{return DRED + " RF" + WHITE;}
case "MJ":{return DRED + " MJ" + WHITE;}
case "SU":{return GRAY + " SU" + WHITE;}
case "AU":{return WHITE + " AU" + WHITE;}
case "ORDO":{return WHITE + " Ordo" + WHITE;}
case "AER":{return YELLOW + " Aer" + WHITE;}
case "AQUA":{return AQUA + " Aqua" + WHITE;}
case "TERRA":{return GREEN + " Terra" + WHITE;}
case "IGNIS":{return RED + " Ignis" + WHITE;}
case "PERDITIO":{return BLACK + " Perditio" + WHITE;}
case "L":{return AQUA + " L" + WHITE;}
case "A":{return AQUA + " A" + WHITE;}
case "Angle":{return DAQUA + " °" + WHITE;}
case "个 ":{return AQUA + " 个 " + WHITE;}
case "份 ":{return AQUA + " 份 " + WHITE;}
case "K":{return AQUA + " K" + WHITE;}
case "种":{return AQUA + " 种" + WHITE;}
case "S":{return AQUA + " S" + WHITE;}
case "个":{return AQUA + " 个 " + WHITE;}
case "N":{return DPURPLE + " N" + WHITE;}
case "分钟":{return BLUE + " 分钟" + WHITE;}
}
}
</init>
<!-- 储罐容量 -->
<init>
function LiquidCap(LC){
switch(LC['gt.mte.id']){
case 32733:{return 8000;}
case 32752:{return 8000;}
case 32753:{return 8000;}
case 32754:{return 8000;}
case 32714:{return 16000;}
case 32734:{return 32000;}
case 32715:{return 32000;}
case 32716:{return 64000;}
case 32064:{return 64000;}
case 32022:{return 64000;}
case 32023:{return 64000;}
case 32089:{return 128000;}
case 32742:{return 128000;}
case 32063:{return 256000;}
case 32100:{return 256000;}
case 32717:{return 256000;}
case 32718:{return 256000;}
case 32083:{return 512000;}
case 32024:{return 1024000;}
case 32087:{return 4096000;}
case 32719:{return 4096000;}
case 17001:{return 432000;}
case 17002:{return 1728000;}
case 17007:{return 1728000;}
case 17008:{return 2474000;}
case 17006:{return 3456000;}
case 17003:{return 6912000;}
case 17004:{return 6912000;}
case 17005:{return 110592000;}
case 17009:{return 8192000;}
case 17022:{return 6912000;}
case 17027:{return 6912000;}
case 17028:{return 9896000;}
case 17026:{return 13824000;}
case 17023:{return 27648000;}
case 17024:{return 27648000;}
case 17029:{return 327668000;}
case 17025:{return 442368000;}
case 17042:{return 8000000;}
case 17047:{return 8000000;}
case 17046:{return 16000000;}
case 17043:{return 32000000;}
case 17044:{return 32000000;}
case 17045:{return 512000000;}
case 17062:{return 32000000;}
case 17067:{return 32000000;}
case 17066:{return 64000000;}
case 17063:{return 128000000;}
case 17064:{return 128000000;}
case 17065:{return 2048000000;}
}
}
</init>
<!-- 5*5储罐容量 -->
<init>
function LiquidCapfff(LC){
switch(LC['gt.mte.id']){
case 17042:{return 8000000;}
case 17047:{return 8000000;}
case 17048:{return 12000000;}
case 17046:{return 16000000;}
case 17043:{return 32000000;}
case 17044:{return 32000000;}
case 17045:{return 512000000;}
case 17049:{return 64000000;}
case 17062:{return 32000000;}
case 17067:{return 32000000;}
case 17068:{return 48000000;}
case 17066:{return 64000000;}
case 17063:{return 128000000;}
case 17064:{return 128000000;}
case 17065:{return 2048000000;}
case 17069:{return 256000000;}
}
}
</init>
<!-- 坩埚温度上限 -->
<init>
function KevinCap(Kevin){
switch(Kevin){
case 1000:{return 1375;}
case 1001:{return 2091;}
case 1002:{return 1875;}
case 1003:{return 1875;}
case 1004:{return 2250;}
case 1005:{return 2500;}
case 1019:{return 4750;}
case 1020:{return 1696;}
case 1021:{return 2395;}
case 1022:{return 2557;}
case 1041:{return 2341;}
case 1025:{return 2428;}
case 1026:{return 2807;}
case 1045:{return 2807;}
case 1031:{return 2513;}
case 1032:{return 2807;}
case 1027:{return 2682;}
case 1028:{return 3695;}
case 1029:{return 2888;}
case 1023:{return 2426;}
case 1033:{return 2725;}
case 1034:{return 3620;}
case 1035:{return 3437;}
case 1036:{return 4112;}
case 1037:{return 4132;}
case 1039:{return 3398;}
case 1040:{return 2931;}
case 1038:{return 2728;}
case 1024:{return 4618;}
case 1030:{return 3750;}
case 1044:{return 5245;}
case 1043:{return 5328;}
case 1048:{return 5000;}
case 1049:{return 6531;}
default :{
if(Kevin >= 1750){
return KevinCap(Kevin - 750);
}
if(Kevin >= 1050){
return KevinCap(Kevin - 50);
}
}
}
}
</init>
<!-- 获取物品名称 -->
<init>
function getName(mID,Type){
try{
return ID2Name(mID,Type);
}
catch(e){
return mID;
}
}
</init>
<!-- 加工机器能量单位 -->
<init>
function ID2EnergyType(mID){
if(mID > 20000 && mID < 21000){
switch(parseInt(mID / 10) % 2000){
case 0:{return "HU";}
case 1:{return "RU";}
case 2:{return "KU";}
case 4:{return "RU";}
case 5:{return "KU";}
case 6:{return "RU";}
case 7:{return "KU";}
case 8:{return "RU";}
case 9:{return "EU";}
case 10:{return "KU";}
case 11:{return "RU";}
case 12:{return "RU";}
case 13:{return "RU";}
case 14:{return "RU";}
case 15:{return "RU";}
case 16:{return "EU";}
case 17:{return "HU";}
case 18:{return "RU";}
case 19:{return "HU";}
case 20:{return "HU";}
case 21:{return "RU";}
case 22:{return "MU";}
case 23:{return "KU";}
case 24:{return "HU";}
case 25:{return "HU";}
case 26:{return "EU";}
case 27:{return "EU";}
case 28:{return "EU";}
case 29:{return "RU";}
case 30:{return "MU";}
case 31:{return "HU";}
case 32:{return "LU";}
case 33:{return "LU";}
case 34:{return "EU";}
case 35:{return "EU";}
case 36:{return "EU";}
case 37:{return "EU";}
case 38:{return "EU";}
case 39:{return "HU";}
case 41:{return "QU";}
case 42:{return "QU";}
case 43:{return "QU";}
case 51:{return "RU";}
case 52:{return "RU";}
case 53:{return "EU";}
case 54:{return "EU";}
case 55:{return "RU";}
case 56:{return "CU";}
case 57:{return "CU";}
case 58:{return "EU";}
case 59:{return "EU";}
}
}
switch(mID){
case 22000:{return "TU";}
case 22001:{return "TU";}
case 22002:{return "TU";}
case 22003:{return "HU";}
case 22004:{return "TU";}
}
}
</init>
<!-- 加工机器物品存储 -->
<init>
function IOInv(nbt,solt,IO){
var inAmount;
var outAmount;
var blueprint = 0;
var mID = nbt['gt.mte.id'];
if(mID > 20000 && mID < 21000){
switch(parseInt(mID / 10) % 2000){
case 0:{inAmount = 1;outAmount = 1;break;}
case 1:{inAmount = 1;outAmount = 6;break;}
case 2:{inAmount = 1;outAmount = 4;break;}
case 4:{inAmount = 1;outAmount = 2;break;}
case 5:{inAmount = 1;outAmount = 12;break;}
case 6:{inAmount = 1;outAmount = 3;break;}
case 7:{inAmount = 1;outAmount = 1;break;}
case 8:{inAmount = 1;outAmount = 6;break;}
case 9:{inAmount = 2;outAmount = 6;break;}
case 10:{inAmount = 1;outAmount = 1;break;}
case 11:{inAmount = 1;outAmount = 1;break;}
case 12:{inAmount = 1;outAmount = 1;break;}
case 13:{inAmount = 1;outAmount = 1;break;}
case 14:{inAmount = 1;outAmount = 1;break;}
case 15:{inAmount = 1;outAmount = 1;break;}
case 16:{inAmount = 2;outAmount = 2;break;}
case 17:{inAmount = 1;outAmount = 3;break;}
case 18:{inAmount = 6;outAmount = 1;break;}
case 19:{inAmount = 1;outAmount = 2;break;}
case 20:{inAmount = 2;outAmount = 1;break;}
case 21:{inAmount = 6;outAmount = 1;break;}
case 22:{inAmount = 1;outAmount = 1;break;}
case 23:{inAmount = 3;outAmount = 1;break;}
case 24:{inAmount = 1;outAmount = 1;break;}
case 25:{inAmount = 1;outAmount = 1;break;}
case 26:{inAmount = 2;outAmount = 1;break;}
case 27:{inAmount = 2;outAmount = 1;break;}
case 28:{inAmount = 2;outAmount = 2;break;}
case 29:{inAmount = 1;outAmount = 9;break;}
case 30:{inAmount = 1;outAmount = 6;break;}
case 31:{inAmount = 1;outAmount = 1;break;}
case 32:{inAmount = 2;outAmount = 1;break;}
case 33:{inAmount = 6;outAmount = 1;break;}
case 34:{inAmount = 9;outAmount = 12;blueprint = 1;break;}
case 35:{inAmount = 6;outAmount = 1;break;}
case 36:{inAmount = 6;outAmount = 1;break;}
case 37:{inAmount = 1;outAmount = 12;break;}
case 38:{inAmount = 2;outAmount = 2;break;}
case 39:{inAmount = 2;outAmount = 1;break;}
case 41:{inAmount = 1;outAmount = 1;break;}
case 42:{inAmount = 2;outAmount = 1;break;}
case 43:{inAmount = 3;outAmount = 3;break;}
case 51:{inAmount = 1;outAmount = 2;break;}
case 52:{inAmount = 6;outAmount = 1;break;}
case 53:{inAmount = 2;outAmount = 1;break;}
case 54:{inAmount = 2;outAmount = 1;break;}
case 55:{inAmount = 1;outAmount = 2;break;}
case 56:{inAmount = 1;outAmount = 1;break;}
case 57:{inAmount = 6;outAmount = 1;break;}
case 58:{inAmount = 2;outAmount = 1;break;}
case 59:{inAmount = 1;outAmount = 2;break;}
}
}
switch(mID){
case 22000:{inAmount = 0;outAmount = 1;break;}
case 22001:{inAmount = 1;outAmount = 1;break;}
case 22002:{inAmount = 6;outAmount = 6;break;}
case 22003:{inAmount = 1;outAmount = 1;break;}
case 22004:{inAmount = 2;outAmount = 3;break;}
}
var i = 0;
if(IO == 'I'){
if((solt + 1) > inAmount){
}
for(i = 0;i < inAmount;i++){
if(nbt['gt.invlist'][i.toString()]['s'] == solt){
return nbt['gt.invlist'][i.toString()]['Count'] + Unit("个 ") + name(nbt['gt.invlist'][i.toString()]);
}
}
}
else if(IO == 'O'){
if((solt + 1) > outAmount){
}
else{
for(i = 0;i < (inAmount + outAmount);i++){
if(nbt['gt.invlist'][i.toString()]['s'] == (solt + inAmount)){
return nbt['gt.invlist'][i.toString()]['Count'] + Unit("个 ") + name(nbt['gt.invlist'][i.toString()]);
}
}
}
}
else if(IO == 'B'){
if(blueprint == 1){
for(i = 0;i < (inAmount + outAmount);i++){
if(nbt['gt.invlist'][i.toString()]['s'] == 21){
return nbt['gt.invlist'][i.toString()]['Count'] + Unit("个 ") + name(nbt['gt.invlist'][i.toString()]);
}
}
return RED + "请放置蓝图";
}
}
}
</init>
<!-- 坩埚 -->
<tileentity id = "gt.multitileentity.smeltery">
<!-- TODO: 烫伤警告/爆炸警告 -->
<line displayname = "当前温度">
return nbt['gt.temperature'] + Unit("K") + " / " + KevinCap(nbt['gt.mte.id']) + Unit("K");
</line>
<line displayname = "熔炼物种数">
return nbt['gt.materials']['size'] + Unit("种");
</line>
<line displayname = "熔炼物1-4情况">
if(nbt['gt.materials']['0'] != undefined){
var str = '';
var i = 0;
while(i < 4){
if(nbt['gt.materials'][i.toString()] != undefined){
str += parseInt(nbt['gt.materials'][i.toString()]['a'] / 648648000 * 1000) / 1000 + Unit("份 ") + getName(nbt['gt.materials'][i.toString()]['i'],"material");
}
if(((i + 1) < 4) && (nbt['gt.materials'][(i + 1).toString()] != undefined)){
str += " | ";
}
i++;
}
return str;
}
</line>
<line displayname = "熔炼物5-8情况">
if(nbt['gt.materials']['4'] != undefined){
var str = '';
var i = 4;
while(i < 8){
if(nbt['gt.materials'][i.toString()] != undefined){
str += parseInt(nbt['gt.materials'][i.toString()]['a'] / 648648000 * 1000) / 1000 + Unit("份 ") + getName(nbt['gt.materials'][i.toString()]['i'],"material");
}
if(((i + 1) < 8) && (nbt['gt.materials'][(i + 1).toString()] != undefined)){
str += " | ";
}
i++;
}
return str;
}
</line>
<line displayname = "熔炼物9-12情况">
if(nbt['gt.materials']['8'] != undefined){
var str = '';
var i = 8;
while(i < 12){
if(nbt['gt.materials'][i.toString()] != undefined){
str += parseInt(nbt['gt.materials'][i.toString()]['a'] / 648648000 * 1000) / 1000 + Unit("份 ") + getName(nbt['gt.materials'][i.toString()]['i'],"material");
}
if(((i + 1) < 12) && (nbt['gt.materials'][(i + 1).toString()] != undefined)){
str += " | ";
}
i++;
}
return str;
}
</line>
<line displayname = "熔炼物13-16情况">
if(nbt['gt.materials']['12'] != undefined){
var str = '';
var i = 12;
while(i < 16){
if(nbt['gt.materials'][i.toString()] != undefined){
str += parseInt(nbt['gt.materials'][i.toString()]['a'] / 648648000 * 1000) / 1000 + Unit("份 ") + getName(nbt['gt.materials'][i.toString()]['i'],"material");
}
if(((i + 1) < 16) && (nbt['gt.materials'][(i + 1).toString()] != undefined)){
str += " | ";
}
i++;
}
return str;
}
</line>
<line displayname = "熔炼物17-20情况">
if(nbt['gt.materials']['16'] != undefined){
var str = '';
var i = 16;
while(i < 20){
if(nbt['gt.materials'][i.toString()] != undefined){
str += parseInt(nbt['gt.materials'][i.toString()]['a'] / 648648000 * 1000) / 1000 + Unit("份 ") + getName(nbt['gt.materials'][i.toString()]['i'],"material");
}
if(((i + 1) < 20) && (nbt['gt.materials'][(i + 1).toString()] != undefined)){
str += " | ";
}
i++;
}
return str;
}
</line>
</tileentity>
<!-- 大型坩埚 -->
<tileentity id = "gt.multitileentity.multiblock.crucible">
<!-- TODO: 烫伤警告/爆炸警告 -->
<line displayname = "当前温度">
return nbt['gt.temperature'] + Unit("K") + " / " + KevinCap(nbt['gt.mte.id']) + Unit("K");
</line>
<line displayname = "熔炼物种数">
return nbt['gt.materials']['size'] + Unit("种");
</line>
<line displayname = "熔炼物1-4情况">
if(nbt['gt.materials']['0'] != undefined){
var str = '';
var i = 0;
while(i < 4){
if(nbt['gt.materials'][i.toString()] != undefined){
str += parseInt(nbt['gt.materials'][i.toString()]['a'] / 648648000 * 1000) / 1000 + Unit("份 ") + getName(nbt['gt.materials'][i.toString()]['i'],"material");
}
if(((i + 1) < 4) && (nbt['gt.materials'][(i + 1).toString()] != undefined)){
str += " | ";
}
i++;
}
return str;
}
</line>
<line displayname = "熔炼物5-8情况">
if(nbt['gt.materials']['4'] != undefined){
var str = '';
var i = 4;
while(i < 8){
if(nbt['gt.materials'][i.toString()] != undefined){
str += parseInt(nbt['gt.materials'][i.toString()]['a'] / 648648000 * 1000) / 1000 + Unit("份 ") + getName(nbt['gt.materials'][i.toString()]['i'],"material");
}
if(((i + 1) < 8) && (nbt['gt.materials'][(i + 1).toString()] != undefined)){
str += " | ";
}
i++;
}
return str;
}
</line>
<line displayname = "熔炼物9-12情况">
if(nbt['gt.materials']['8'] != undefined){
var str = '';
var i = 8;
while(i < 12){
if(nbt['gt.materials'][i.toString()] != undefined){
str += parseInt(nbt['gt.materials'][i.toString()]['a'] / 648648000 * 1000) / 1000 + Unit("份 ") + getName(nbt['gt.materials'][i.toString()]['i'],"material");
}
if(((i + 1) < 12) && (nbt['gt.materials'][(i + 1).toString()] != undefined)){
str += " | ";
}
i++;
}
return str;
}
</line>
<line displayname = "熔炼物13-16情况">
if(nbt['gt.materials']['12'] != undefined){
var str = '';
var i = 12;
while(i < 16){
if(nbt['gt.materials'][i.toString()] != undefined){
str += parseInt(nbt['gt.materials'][i.toString()]['a'] / 648648000 * 1000) / 1000 + Unit("份 ") + getName(nbt['gt.materials'][i.toString()]['i'],"material");
}
if(((i + 1) < 16) && (nbt['gt.materials'][(i + 1).toString()] != undefined)){
str += " | ";
}
i++;
}
return str;
}
</line>
<line displayname = "熔炼物17-20情况">
if(nbt['gt.materials']['16'] != undefined){
var str = '';
var i = 16;
while(i < 20){
if(nbt['gt.materials'][i.toString()] != undefined){
str += parseInt(nbt['gt.materials'][i.toString()]['a'] / 648648000 * 1000) / 1000 + Unit("份 ") + getName(nbt['gt.materials'][i.toString()]['i'],"material");
}
if(((i + 1) < 20) && (nbt['gt.materials'][(i + 1).toString()] != undefined)){
str += " | ";
}
i++;
}
return str;
}
</line>
</tileentity>
<!-- 模具 -->
<tileentity id = "gt.multitileentity.mold">
<!-- TODO: 烫伤警告 -->
<line displayname = "当前温度">
return nbt['gt.temperature'] + Unit("K") + " / " + KevinCap(nbt['gt.mte.id']) + Unit("K");
</line>
<line displayname = "铸造模具">
try{
if(nbt['gt.mold'] != undefined){
return Mold2Recipes(nbt['gt.mold']);
}
return "无";
}
catch(e){}
</line>
<line displayname = "连通方向">
var str = "";
if((nbt['gt.connection'] & 4) == 4){
str += "北";
if((nbt['gt.connection'] & 8) == 8 || (nbt['gt.connection'] & 16) == 16 || (nbt['gt.connection'] & 32) == 32){
str += " | ";
}
}
if((nbt['gt.connection'] & 8) == 8){
str += "南";
if((nbt['gt.connection'] & 16) == 16 || (nbt['gt.connection'] & 32) == 32){
str += " | ";
}
}
if((nbt['gt.connection'] & 16) == 16){
str += "西";
if((nbt['gt.connection'] & 32) == 32){
str += " | ";
}
}
if((nbt['gt.connection'] & 32) == 32){
str += "东";
}
if(str != ""){
return str;
}
return "无";
</line>
<line displayname = "自动输入">
if(nbt['gt.mode'] != undefined){
return BLUE + "当提供红石信号时,进行自动输入";
}
return BLUE + "当提供红石信号时,不能自动输入";
</line>
<line displayname = "铸造材料">
return getName(nbt['gt.materials']['i'],"material");
</line>
<line displayname = "输出产物">
return nbt['gt.invlist']['0']['Count'] + Unit("个 ") + name(nbt['gt.invlist']['0']);
</line>
</tileentity>