-
Notifications
You must be signed in to change notification settings - Fork 71
/
RotaryRecipes.java
1596 lines (1287 loc) · 102 KB
/
RotaryRecipes.java
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 Reika Kalseki
*
* Copyright 2017
*
* All rights reserved.
* Distribution of the software in any form is only allowed with
* explicit, prior permission from the owner.
******************************************************************************/
package Reika.RotaryCraft;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Random;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.oredict.OreDictionary;
import net.minecraftforge.oredict.ShapedOreRecipe;
import net.minecraftforge.oredict.ShapelessOreRecipe;
import Reika.DragonAPI.ModList;
import Reika.DragonAPI.ASM.DependentMethodStripper.ModDependent;
import Reika.DragonAPI.Auxiliary.Trackers.ItemMaterialController;
import Reika.DragonAPI.Instantiable.ItemMaterial;
import Reika.DragonAPI.Instantiable.PreferentialItemStack;
import Reika.DragonAPI.Instantiable.Data.Collections.OneWayCollections.OneWayList;
import Reika.DragonAPI.Instantiable.Formula.MathExpression;
import Reika.DragonAPI.Instantiable.IO.CustomRecipeList;
import Reika.DragonAPI.Instantiable.Recipe.ItemMatch;
import Reika.DragonAPI.Interfaces.Registry.OreType;
import Reika.DragonAPI.Libraries.ReikaRecipeHelper;
import Reika.DragonAPI.Libraries.Java.ReikaJavaLibrary;
import Reika.DragonAPI.Libraries.Java.ReikaReflectionHelper;
import Reika.DragonAPI.Libraries.Java.ReikaStringParser;
import Reika.DragonAPI.Libraries.Registry.ReikaDyeHelper;
import Reika.DragonAPI.Libraries.Registry.ReikaItemHelper;
import Reika.DragonAPI.Libraries.Registry.ReikaOreHelper;
import Reika.DragonAPI.ModInteract.DeepInteract.MoleculeHelper;
import Reika.DragonAPI.ModInteract.DeepInteract.ReikaThaumHelper;
import Reika.DragonAPI.ModInteract.DeepInteract.TinkerMaterialHelper;
import Reika.DragonAPI.ModInteract.ItemHandlers.AppEngHandler;
import Reika.DragonAPI.ModInteract.ItemHandlers.IC2Handler.IC2Stacks;
import Reika.DragonAPI.ModInteract.ItemHandlers.ThaumItemHelper;
import Reika.DragonAPI.ModInteract.ItemHandlers.ThaumOreHandler;
import Reika.DragonAPI.ModInteract.ItemHandlers.TinkerBlockHandler;
import Reika.DragonAPI.ModInteract.ItemHandlers.TinkerToolHandler.ToolParts;
import Reika.DragonAPI.ModInteract.ItemHandlers.TinkerToolHandler.WeaponParts;
import Reika.DragonAPI.ModInteract.Power.ReikaBuildCraftHelper;
import Reika.DragonAPI.ModInteract.RecipeHandlers.SmelteryRecipeHandler;
import Reika.DragonAPI.ModInteract.RecipeHandlers.ThermalRecipeHelper;
import Reika.DragonAPI.ModRegistry.ModOreList;
import Reika.ReactorCraft.Auxiliary.ReactorStacks;
import Reika.ReactorCraft.Registry.CraftingItems;
import Reika.RotaryCraft.Auxiliary.DecoTankSettingsRecipe;
import Reika.RotaryCraft.Auxiliary.ItemStacks;
import Reika.RotaryCraft.Auxiliary.RecyclingRecipe;
import Reika.RotaryCraft.Auxiliary.ReservoirComboRecipe;
import Reika.RotaryCraft.Auxiliary.RotaryDescriptions;
import Reika.RotaryCraft.Auxiliary.RecipeManagers.ExtractorModOres;
import Reika.RotaryCraft.Auxiliary.RecipeManagers.RecipeHandler;
import Reika.RotaryCraft.Auxiliary.RecipeManagers.RecipeHandler.RecipeLevel;
import Reika.RotaryCraft.Auxiliary.RecipeManagers.RecipesBlastFurnace;
import Reika.RotaryCraft.Auxiliary.RecipeManagers.RecipesCentrifuge;
import Reika.RotaryCraft.Auxiliary.RecipeManagers.RecipesCompactor;
import Reika.RotaryCraft.Auxiliary.RecipeManagers.RecipesCrystallizer;
import Reika.RotaryCraft.Auxiliary.RecipeManagers.RecipesDryingBed;
import Reika.RotaryCraft.Auxiliary.RecipeManagers.RecipesFrictionHeater;
import Reika.RotaryCraft.Auxiliary.RecipeManagers.RecipesGrinder;
import Reika.RotaryCraft.Auxiliary.RecipeManagers.RecipesLavaMaker;
import Reika.RotaryCraft.Auxiliary.RecipeManagers.RecipesMagnetizer;
import Reika.RotaryCraft.Auxiliary.RecipeManagers.RecipesPulseFurnace;
import Reika.RotaryCraft.Auxiliary.RecipeManagers.RecipesWetter;
import Reika.RotaryCraft.Auxiliary.RecipeManagers.WorktableRecipes;
import Reika.RotaryCraft.Items.ItemVoidMetalRailgunAmmo;
import Reika.RotaryCraft.Items.Tools.ItemEngineUpgrade.Upgrades;
import Reika.RotaryCraft.ModInterface.BedrockRevealingInfusion;
import Reika.RotaryCraft.Registry.BlockRegistry;
import Reika.RotaryCraft.Registry.ConfigRegistry;
import Reika.RotaryCraft.Registry.DifficultyEffects;
import Reika.RotaryCraft.Registry.EngineType;
import Reika.RotaryCraft.Registry.ExtraConfigIDs;
import Reika.RotaryCraft.Registry.Flywheels;
import Reika.RotaryCraft.Registry.GearboxTypes;
import Reika.RotaryCraft.Registry.GearboxTypes.GearPart;
import Reika.RotaryCraft.Registry.ItemRegistry;
import Reika.RotaryCraft.Registry.MachineRegistry;
import Reika.RotaryCraft.Registry.MaterialRegistry;
import Reika.RotaryCraft.TileEntities.Processing.TileEntityFuelConverter;
import Reika.RotaryCraft.TileEntities.Processing.TileEntityFuelConverter.FuelConversion;
import Reika.RotaryCraft.TileEntities.Processing.TileEntityFuelConverter.UsablilityCondition;
import Reika.Satisforestry.API.AltRecipe;
import Reika.Satisforestry.API.SFAPI;
import blusunrize.immersiveengineering.api.crafting.BlastFurnaceRecipe;
import blusunrize.immersiveengineering.api.energy.DieselHandler;
import blusunrize.immersiveengineering.api.energy.DieselHandler.SqueezerRecipe;
import buildcraft.energy.fuels.CoolantManager;
import buildcraft.energy.fuels.FuelManager;
import buildcraft.silicon.ItemRedstoneChipset;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.registry.GameRegistry;
import forestry.api.fuels.GeneratorFuel;
import ic2.api.recipe.IRecipeInput;
import ic2.api.recipe.ISemiFluidFuelManager.BurnProperty;
import ic2.api.recipe.RecipeInputItemStack;
import ic2.api.recipe.RecipeOutput;
import ic2.api.recipe.Recipes;
import minechem.api.RecipeAPI;
import mods.railcraft.api.crafting.RailcraftCraftingManager;
import thaumcraft.api.ThaumcraftApi;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.api.crafting.InfusionRecipe;
import thaumcraft.api.crafting.ShapedArcaneRecipe;
public class RotaryRecipes {
public static void addRecipes() {
if (RotaryCraft.instance.isLocked())
return;
addMachines();
addCraftItems();
addMultiTypes();
addToolItems();
addMisc();
addFurnace();
if (ModList.THERMALEXPANSION.isLoaded())
addThermalExpansion();
Fluid ethanol = FluidRegistry.getFluid("rc ethanol");
if (ModList.BCENERGY.isLoaded()) {
FuelManager.INSTANCE.addFuel(ethanol, ReikaBuildCraftHelper.getFuelRFPerTick()*3/2, 1500); //ethanol generates about 50% more power, but burns fast
CoolantManager.INSTANCE.addCoolant(FluidRegistry.getFluid("rc liquid nitrogen"), 0.01F);
}
if (ModList.FORESTRY.isLoaded()) {
int power = forestry.api.fuels.FuelManager.generatorFuel.get(FluidRegistry.getFluid("bioethanol")).eu*36/32; //36/32 (1.125x) forestry ethanol
forestry.api.fuels.FuelManager.generatorFuel.put(ethanol, new GeneratorFuel(new FluidStack(ethanol, 1), power, 3)); //25% less burn time
}
if (ModList.IC2.isLoaded() && !Recipes.semiFluidGenerator.getBurnProperties().isEmpty()) {
BurnProperty eth = Recipes.semiFluidGenerator.getBurnProperties().get("bioethanol");
if (eth == null)
eth = Recipes.semiFluidGenerator.getBurnProperties().get("fuel");
if (eth != null) {
double power = eth.power*18/16; //1.125x again
BurnProperty fuel = Recipes.semiFluidGenerator.getBurnProperties().get("fuel");
power = Math.max(power, fuel.power*3/2); //50% more than fuel
Recipes.semiFluidGenerator.addFluid(ethanol.getName(), Math.max(8, fuel.amount*4), power);
}
}
if (ModList.IMMERSIVEENG.isLoaded()) {
DieselHandler.squeezerList.add(new SqueezerRecipe(ItemRegistry.CANOLA.getStackOf(), 15, new FluidStack(FluidRegistry.getFluid("plantoil"), 20), null)); //4x less but 6x faster
int base = BlastFurnaceRecipe.getBlastFuelTime(ReikaItemHelper.charcoal)*5/2;
BlastFurnaceRecipe.addBlastFuel(ItemStacks.coke, base);
BlastFurnaceRecipe.addBlastFuel(ItemStacks.cokeblock, base*10);
}
if (ModList.RAILCRAFT.isLoaded()) {
Fluid f = FluidRegistry.getFluid("fuel");
int base = 48000;
int amt = f != null ? mods.railcraft.api.fuel.FuelManager.getBoilerFuelValue(f) : base;
if (amt <= 0)
amt = base;
mods.railcraft.api.fuel.FuelManager.addBoilerFuel(ethanol, amt/3);
//This would be unnecessary if you just used the oredict or something...
List<ItemStack> unmodifiable = RailcraftCraftingManager.blastFurnace.getFuels();
List<ItemStack> inner = ReikaReflectionHelper.getUnmodifiableListInner(unmodifiable);
inner.add(ItemStacks.coke);
inner.add(ItemStacks.cokeblock);
}
}
private static void addProps() {
ItemMaterialController.instance.addItem(ItemStacks.scrap, ItemMaterial.STEEL);
ItemMaterialController.instance.addItem(ItemStacks.ironscrap, ItemMaterial.IRON);
ItemMaterialController.instance.addItem(ItemStacks.steelblock, ItemMaterial.STEEL);
ItemMaterialController.instance.addItem(ItemRegistry.STEELAXE.getStackOf(), ItemMaterial.STEEL);
ItemMaterialController.instance.addItem(ItemRegistry.STEELPICK.getStackOf(), ItemMaterial.STEEL);
ItemMaterialController.instance.addItem(ItemRegistry.STEELSHOVEL.getStackOf(), ItemMaterial.STEEL);
ItemMaterialController.instance.addItem(ItemRegistry.STEELHELMET.getStackOf(), ItemMaterial.STEEL);
ItemMaterialController.instance.addItem(ItemRegistry.STEELLEGS.getStackOf(), ItemMaterial.STEEL);
ItemMaterialController.instance.addItem(ItemRegistry.STEELBOOTS.getStackOf(), ItemMaterial.STEEL);
ItemMaterialController.instance.addItem(ItemRegistry.STEELCHEST.getStackOf(), ItemMaterial.STEEL);
ItemMaterialController.instance.addItem(ItemRegistry.STEELSWORD.getStackOf(), ItemMaterial.STEEL);
ItemMaterialController.instance.addItem(ItemRegistry.STEELSICKLE.getStackOf(), ItemMaterial.STEEL);
ItemMaterialController.instance.addItem(ItemRegistry.STEELSHEARS.getStackOf(), ItemMaterial.STEEL);
}
private static void addCompat() {
for (int i = 0; i < ModOreList.oreList.length; i++) {
ModOreList ore = ModOreList.oreList[i];
String tag = ore.getProductOreDictName();
ArrayList<ItemStack> in = OreDictionary.getOres(tag);
for (int h = 0; h < in.size(); h++) {
ItemStack from = in.get(h);
ItemStack to = ItemStacks.getModOreIngot(ore);
if (!ItemRegistry.MODINGOTS.matchItem(from))
GameRegistry.addShapelessRecipe(to.copy(), from.copy());
}
}
}
private static void addThermalExpansion() {
FluidStack ethanol = FluidRegistry.getFluidStack("rc ethanol", 1000);
int energy = 750;
ThermalRecipeHelper.addCrucibleRecipe(ItemRegistry.ETHANOL.getStackOf(), ethanol, energy);
ThermalRecipeHelper.addCrucibleRecipe(ItemStacks.cleansludge, ethanol, energy*5/4);
//ThermalRecipeHelper.addInductionSmelter(ItemStacks.steelingot.copy(), bedrock, ItemStacks.bedingot.copy(), 48000);
//ItemStack transmissionCoil = GameRegistry.findItemStack(ModList.THERMALEXPANSION.modLabel, "powerCoilSilver", 1);
//ItemStack energyCell = GameRegistry.findItemStack(ModList.THERMALEXPANSION.modLabel, "cellReinforced", 1);
//ItemStack conductanceCoil = GameRegistry.findItemStack(ModList.THERMALEXPANSION.modLabel, "powerCoilElectrum", 1);
ThermalRecipeHelper.addCoolant(RotaryCraft.nitrogenFluid, 40000);
ThermalRecipeHelper.addCompressionFuel(RotaryCraft.ethanolFluid, 250000); //1/2 of forestry
}
public static void addPostLoadRecipes() {
if (RotaryCraft.instance.isLocked())
return;
for (Flywheels f : Flywheels.list) {
Object raw = f.getRawMaterial();
if (raw instanceof String) {
if (OreDictionary.getOres((String)raw).isEmpty())
raw = null;
}
if (raw != null)
GameRegistry.addRecipe(new ShapedOreRecipe(f.getCore(), "WWW", "WGW", "WWW", 'W', raw, 'G', ItemStacks.steelgear));
}
Object[] bin = getBlastFurnaceIngredients();
addOreRecipeToBoth(MachineRegistry.BLASTFURNACE.getCraftedProduct(), bin);
RotaryCraft.logger.log("Blast Furnace materials set to "+Arrays.toString(bin));
bin = getWorktableIngredients();
addRecipeToBoth(MachineRegistry.WORKTABLE.getCraftedProduct(), bin);
RotaryCraft.logger.log("Worktable materials set to "+Arrays.toString(bin));
addProps();
CustomRecipeList.addFieldLookup("rotarycraft_stack", ItemStacks.class);
for (RecipeHandler h : recipeHandlers) {
h.addPostLoadRecipes();
h.loadCustomRecipeFiles();
}
//RecipesExtractor.recipes().addModRecipes();
MachineRegistry.COMPRESSOR.addCrafting("SsS", " G ", "CPC", 's', getConverterGatingItem(), 'S', ItemStacks.steelingot, 'G', Blocks.glass, 'P', Blocks.piston, 'C', ItemStacks.compressor);
MachineRegistry.PNEUENGINE.addCrafting("ppS", "sT ", "PPP", 'S', ItemStacks.steelingot, 's', ItemStacks.shaftitem, 'p', ItemStacks.pipe, 'P', ItemStacks.basepanel, 'T', ItemStacks.impeller);
ItemStack plate = ModList.RAILCRAFT.isLoaded() ? new ItemStack(GameRegistry.findItem(ModList.RAILCRAFT.modLabel, "part.plate"), 1, 1) : null;
MachineRegistry.STEAMTURBINE.addCrafting("sPs", "GTG", "ScS", 's', ConfigRegistry.HARDCONVERTERS.getState() && plate != null ? plate : ItemStacks.steelingot, 'c', ItemStacks.diamondshaftcore, 'G', Blocks.glass, 'S', ItemStacks.steelingot, 'T', ItemStacks.turbine, 'P', ItemStacks.basepanel);
MachineRegistry.BOILER.addCrafting("SPS", "G G", "sIs", 's', getConverterGatingItem(), 'S', ItemStacks.steelingot, 'I', ItemStacks.impeller, 'P', ItemStacks.pipe, 'G', Blocks.glass);
MachineRegistry.GENERATOR.addCrafting("gpS", "iGs", "psp", 'S', getConverterGatingItem(), 'p', ItemStacks.basepanel, 'g', Items.gold_ingot, 's', ItemStacks.steelingot, 'G', ItemStacks.generator, 'i', ItemStacks.impeller, 's', ItemStacks.shaftcore);
ItemStack cool = null;
if (ModList.IC2.isLoaded()) {
if (ConfigRegistry.IC2BLAZECOMPRESS.getState()) {
changeIC2BlazePowderCompression();
}
cool = IC2Stacks.COOLANT6.getItem();
}
MachineRegistry.ELECTRICMOTOR.addCrafting("cGS", "BCB", "SGS", 'c', ConfigRegistry.HARDCONVERTERS.getState() && cool != null ? cool : ItemStacks.steelingot, 'G', ItemStacks.goldcoil, 'S', ItemStacks.steelingot, 'B', ItemStacks.basepanel, 'C', ItemStacks.diamondshaftcore);
ItemStack coil = ModList.THERMALEXPANSION.isLoaded() ? GameRegistry.findItemStack(ModList.THERMALEXPANSION.modLabel, "powerCoilSilver", 1) : ItemStacks.power;
MachineRegistry.DYNAMO.addOreRecipe(" C ", "GiG", "IRI", 'C', coil, 'i', getConverterGatingItem(), 'I', ItemStacks.steelingot, 'G', ItemStacks.steelgear, 'R', Items.redstone);
coil = ModList.THERMALEXPANSION.isLoaded() ? GameRegistry.findItemStack(ModList.THERMALEXPANSION.modLabel, "powerCoilGold", 1) : ItemStacks.goldcoil;
Object ps = new PreferentialItemStack(Items.iron_ingot, "ingotLead").blockItem(ItemRegistry.MODINGOTS.getItemInstance()).getItem();
Item crys = ModList.BUILDCRAFT.isLoaded() ? GameRegistry.findItem(ModList.BCSILICON.modLabel, "redstoneCrystal") : null;
MachineRegistry.MAGNETIC.addOreRecipe("LCl", "scs", "PSP", 'L', ConfigRegistry.HARDCONVERTERS.getState() && crys != null ? crys : ps, 'c', ItemStacks.conductive.getItem(), 'C', coil, 'P', ItemStacks.basepanel, 'S', ItemStacks.diamondshaftcore, 'l', ps, 's', "ingotSilver");
ItemStack enderium = ModList.THERMALFOUNDATION.isLoaded() ? GameRegistry.findItemStack(ModList.THERMALFOUNDATION.modLabel, "ingotEnderium", 1) : ItemStacks.bedingot;
ItemStack electrum = ModList.THERMALFOUNDATION.isLoaded() ? GameRegistry.findItemStack(ModList.THERMALFOUNDATION.modLabel, "ingotElectrum", 1) : ItemStacks.redgoldingot;
ItemRegistry.UPGRADE.addMetaRecipe(Upgrades.FLUX.ordinal(), "BeB", "tEt", "BeB", 'e', electrum, 'B', ItemStacks.basepanel, 'E', enderium, 't', ItemStacks.tungsteningot);
ItemStack ender = ModList.BCSILICON.isLoaded() ? ItemRedstoneChipset.Chipset.PULSATING.getStack() : new ItemStack(Items.ender_pearl);
ItemStack latch = ReikaItemHelper.lookupItem("ProjRed|Integration:projectred.integration.gate:17");
if (latch == null)
latch = new ItemStack(Items.clock);
ItemRegistry.UPGRADE.addMetaRecipe(9, "rQr", "qsq", "rEr", 'r', Items.redstone, 's', ItemStacks.steelingot, 'q', Items.quartz, 'E', ender, 'Q', latch);
if (ModList.TINKERER.isLoaded()) {
GameRegistry.addRecipe(BlockRegistry.DECOTANK.getCraftedMetadataProduct(4, 1), "SGS", "GGG", "SGS", 'S', ItemStacks.steelingot, 'G', new ItemStack(TinkerBlockHandler.getInstance().clearPaneID, 1, 0));
String f = "molten hsla";
int temp = 750;
ItemStack bk = ItemStacks.steelblock;
int base = SmelteryRecipeHandler.INGOT_AMOUNT;
SmelteryRecipeHandler.addIngotMelting(ItemStacks.steelingot, bk, temp, f);
SmelteryRecipeHandler.addIngotCasting(ItemStacks.steelingot, f, 40);
SmelteryRecipeHandler.addMelting(ItemStacks.steelblock, bk, temp, base*9, f);
SmelteryRecipeHandler.addMelting(ItemStacks.scrap, bk, temp, base/9, f);
SmelteryRecipeHandler.addMelting(ItemStacks.ballbearing, bk, temp, base/4, f);
SmelteryRecipeHandler.addMelting(ItemStacks.wormgear, bk, temp, base*5/DifficultyEffects.PARTCRAFT.getInt()+2*27/DifficultyEffects.PARTCRAFT.getInt(), f);
SmelteryRecipeHandler.addBlockCasting(ItemStacks.steelblock, base*9, f, 120);
SmelteryRecipeHandler.addReversibleCasting(ItemStacks.gearCast, ItemStacks.steelgear, bk, temp, f, base*5/DifficultyEffects.PARTCRAFT.getInt(), 80);
SmelteryRecipeHandler.addReversibleCasting(ItemStacks.drillCast, ItemStacks.drill, bk, temp, f, base*7, 80);
SmelteryRecipeHandler.addReversibleCasting(ItemStacks.panelCast, ItemStacks.basepanel, bk, temp, f, base*3/DifficultyEffects.PARTCRAFT.getInt(), 80);
SmelteryRecipeHandler.addReversibleCasting(ItemStacks.shaftCast, ItemStacks.shaftitem, bk, temp, f, base*3/DifficultyEffects.PARTCRAFT.getInt(), 80);
SmelteryRecipeHandler.addReversibleCasting(ItemStacks.propCast, ItemStacks.prop, bk, temp, f, base*3, 80);
SmelteryRecipeHandler.addMelting(ItemStacks.ironscrap, new ItemStack(Blocks.iron_block), 600, base, "iron.molten");
ArrayList<OreType> ores = ReikaJavaLibrary.makeListFrom(ModOreList.COPPER, ModOreList.TIN, ModOreList.ALUMINUM, ModOreList.NETHERIRON, ModOreList.NETHERGOLD, ModOreList.NETHERSILVER, ModOreList.SILVER, ModOreList.NICKEL, ModOreList.LEAD, ModOreList.PLATINUM, ModOreList.COBALT, ModOreList.ARDITE);
ores.addAll(0, ReikaJavaLibrary.makeListFromArray(ReikaOreHelper.oreList));
for (OreType ore : ores) {
if (ore.existsInGame()) {
String suff = ore == ReikaOreHelper.EMERALD ? "liquid" : "molten";
f = ore == ReikaOreHelper.REDSTONE ? "redstone" : ore.name().toLowerCase(Locale.ENGLISH)+"."+suff;
if (FluidRegistry.isFluidRegistered(f)) {
base = ore == ReikaOreHelper.EMERALD ? 640 : SmelteryRecipeHandler.INGOT_AMOUNT;
int flakeYield = (int)(base*ore.getDropCount()*ConfigRegistry.getSmelteryFlakeYield());
temp = ore == ModOreList.ALUMINUM || ore == ModOreList.TIN || ore == ModOreList.LEAD ? 300 : 600;
if (ore == ModOreList.COBALT || ore == ModOreList.ARDITE)
temp = 800;
if (ore == ReikaOreHelper.GOLD || ore == ReikaOreHelper.REDSTONE)
temp = 500;
if (ore == ReikaOreHelper.EMERALD || ore == ReikaOreHelper.DIAMOND)
temp = 700;
ItemStack block = ore.getFirstOreBlock();
if (ore instanceof ReikaOreHelper) {
switch((ReikaOreHelper)ore) {
case COAL:
block = new ItemStack(Blocks.coal_block);
break;
case IRON:
block = new ItemStack(Blocks.iron_block);
break;
case GOLD:
block = new ItemStack(Blocks.gold_block);
break;
case REDSTONE:
block = new ItemStack(Blocks.redstone_block);
break;
case LAPIS:
block = new ItemStack(Blocks.lapis_block);
break;
case DIAMOND:
block = new ItemStack(Blocks.diamond_block);
break;
case EMERALD:
block = new ItemStack(Blocks.emerald_block);
break;
case QUARTZ:
block = new ItemStack(Blocks.quartz_block);
break;
}
}
else if (ore instanceof ModOreList) {
ArrayList<ItemStack> compact = OreDictionary.getOres("block"+ReikaStringParser.capFirstChar(ore.name()));
if (!compact.isEmpty())
block = compact.get(0);
}
if (ore instanceof ReikaOreHelper) {
SmelteryRecipeHandler.addMelting(ItemStacks.getFlake((ReikaOreHelper)ore), block, temp, flakeYield, f);
}
else if (ore instanceof ModOreList) {
SmelteryRecipeHandler.addMelting(ExtractorModOres.getFlakeProduct((ModOreList)ore), block, temp, flakeYield, f);
SmelteryRecipeHandler.addMelting(ExtractorModOres.getSmeltedIngot((ModOreList)ore), block, temp*5/4, base, f);
}
}
}
}
//Bedrock parts
int id = ExtraConfigIDs.BEDROCKID.getValue();
int id2 = ExtraConfigIDs.HSLAID.getValue();
for (int i = 0; i < ToolParts.partList.length; i++) {
ToolParts p = ToolParts.partList[i];
if (TinkerMaterialHelper.instance.isPartEnabled(id, p)) {
ItemStack is = p.getItem(id);
if (is != null) {
ItemStack part = p.getItem(id2);
RecipesBlastFurnace.getRecipes().add3x3Crafting(is, 1000, 4, 0, " D ", "DPD", " D ", 'D', ItemStacks.bedrockdust, 'P', part);
}
}
}
for (int i = 0; i < WeaponParts.partList.length; i++) {
WeaponParts p = WeaponParts.partList[i];
if (TinkerMaterialHelper.instance.isPartEnabled(id, p)) {
ItemStack is = p.getItem(id);
if (is != null) {
ItemStack part = p.getItem(id2);
RecipesBlastFurnace.getRecipes().add3x3Crafting(is, 1000, 4, 0, " D ", "DPD", " D ", 'D', ItemStacks.bedrockdust, 'P', part);
}
}
}
}
/* No longer necessary
if (ModList.THERMALEXPANSION.isLoaded()) {
ItemStack hardGlass = GameRegistry.findItemStack(ModList.THERMALEXPANSION.modLabel, "hardenedGlass", 1);
if (hardGlass == null)
hardGlass = GameRegistry.findItemStack(ModList.THERMALEXPANSION.modLabel, "glassHardened", 1);
if (ConfigRegistry.TEGLASS.getState() && hardGlass != null) {
//GameRegistry.addRecipe(new ShapedOreRecipe(hardGlass, " L ", "LGL", " L ", 'L', "nuggetLead", 'G', RotaryCraft.obsidianglass));
ReikaRecipeHelper.replaceIngredientInAllRecipes(hardGlass, BlockRegistry.BLASTGLASS.getStackOf(), true);
}
}
*/
if (ModList.PROJRED.isLoaded()) {
ItemStack saw = ItemRegistry.BEDSAW.getStackOf();
ItemStack siliconWafer = GameRegistry.findItemStack(ModList.PROJRED.modLabel, "projectred.core.part", 1);
ItemStack siliconCylinder = GameRegistry.findItemStack(ModList.PROJRED.modLabel, "projectred.core.part", 1);
siliconWafer.setItemDamage(12);
siliconCylinder.setItemDamage(11);
GameRegistry.addRecipe(ReikaItemHelper.getSizedItemStack(siliconWafer, 16), "S", "s", 'S', saw, 's', siliconCylinder);
}
if (ModList.ENDERIO.isLoaded()) {
ItemStack eiosilicon = ReikaItemHelper.lookupItem("EnderIO:itemMaterial");
GameRegistry.addShapelessRecipe(eiosilicon, ItemStacks.silicon);
}
if (ModList.THAUMCRAFT.isLoaded()) {
addThaumcraft();
}
if (ModList.BOTANIA.isLoaded()) {
ItemStack livingwood = new ItemStack(GameRegistry.findBlock(ModList.BOTANIA.modLabel, "livingwood"));
ItemStack livingwoodslab = new ItemStack(GameRegistry.findBlock(ModList.BOTANIA.modLabel, "livingwood0Slab"));
ItemStack livingrock = new ItemStack(GameRegistry.findBlock(ModList.BOTANIA.modLabel, "livingrock"));
ItemStack livingrockslab = new ItemStack(GameRegistry.findBlock(ModList.BOTANIA.modLabel, "livingrock0Slab"));
GameRegistry.addRecipe(GearboxTypes.LIVINGWOOD.getPart(GearPart.GEAR), " s ", "sss", " s ", 's', livingwood);
GameRegistry.addRecipe(GearboxTypes.LIVINGWOOD.getShaftUnitItem(), " s", " s ", "s ", 's', livingwood);
GameRegistry.addRecipe(ReikaItemHelper.getSizedItemStack(GearboxTypes.LIVINGROCK.getPart(GearPart.GEAR), 2), " s ", "sss", " s ", 's', livingrock);
GameRegistry.addRecipe(ReikaItemHelper.getSizedItemStack(GearboxTypes.LIVINGROCK.getShaftUnitItem(), 2), " s", " s ", "s ", 's', livingrock);
}
if (ModList.MINECHEM.isLoaded()) {
RecipeAPI.addDecompositionRecipe(ItemRegistry.ETHANOL.getStackOf(), "8 ethanol");
RecipeAPI.addDecompositionRecipe(ItemStacks.steelingot.copy(), "8 Fe", "1 S", "0.25 P", "1 C", "0.5 Si");
RecipeAPI.addDecompositionRecipe(ItemStacks.aluminumpowder.copy(), "1 Al");
MoleculeHelper.addMoleculeWithDecomposition("octane", "8 C", "18 H");
MoleculeHelper.addMoleculeWithDecomposition("hexane", "6 C", "14 H");
MoleculeHelper.addMoleculeWithDecomposition("decane", "10 C", "22 H");
MoleculeHelper.addMoleculeWithDecomposition("methylhexane", "7 C", "16 H");
MoleculeHelper.addMoleculeWithDecomposition("cyclohexane", "6 C", "12 H");
MoleculeHelper.addMoleculeWithDecomposition("methylcyclohexane", "7 C", "14 H");
MoleculeHelper.addMoleculeWithDecomposition("benzene", "6 C", "6 H");
MoleculeHelper.addMoleculeWithDecomposition("napthalene", "10 C", "8 H");
RecipeAPI.addDecompositionFluidRecipe(new FluidStack(FluidRegistry.getFluid("rc jet fuel"), 100), "4 octane", "2.2 hexane", "2.1 decane", "3.7 methylhexane", "1.2 cyclohexane", "2.3 methylcyclohexane", "0.5 benzene", "1.3 toluene", "0.5 napthalene");
}
if (ModList.IMMERSIVEENG.isLoaded()) {
RecipesBlastFurnace.getRecipes().add3x3Crafting(ItemRegistry.BEDDRILL.getStackOf(), 1200, 2, 0, "bbb", "bdb", " b ", 'b', ItemStacks.bedrockdust, 'd', ItemStacks.drill);
}
if (ModList.CHISEL.isLoaded()) {
RecipesBlastFurnace.getRecipes().add3x3Crafting(ItemRegistry.BEDCHISEL.getStackOf(), 1200, 2, 0, " ob", " bo", "s ", 'o', Blocks.obsidian, 'b', ItemStacks.bedingot, 's', ItemStacks.shaftitem);
}
if (ModList.PROJRED.isLoaded() && ModList.APPENG.isLoaded())
MachineRegistry.BUNDLEDBUS.addCrafting("BrB", "CpF", "BrB", 'C', ItemStacks.pcb, 'B', ItemStacks.basepanel, 'r', ReikaItemHelper.lookupItem("ProjRed|Transmission:projectred.transmission.wire:17"), 'p', AppEngHandler.getInstance().getGoldProcessor(), 'F', AppEngHandler.getInstance().getFluixCrystal());
if (ModList.SATISFORESTRY.isLoaded()) {
Fluid turbo = SFAPI.genericLookups.getTurbofuel();
if (turbo != null) {
FuelConversion f = TileEntityFuelConverter.addRecipe("fuel", turbo.getName(), 25, 1, 0.003F, new ItemMatch(SFAPI.genericLookups.getCompactedCoal())); //1.2 per bucket
f.setUsability(new UsablilityCondition() {
@Override
public boolean isUsable(TileEntityFuelConverter te) {
return this.getRecipe().playerHas(te.worldObj, te.getPlacerID());
}
@Override
public String getDescription() {/*
AltRecipe rec = this.getRecipe();
String ret = "";
ItemStack in = rec.getRequiredItem();
if (in != null)
ret += in.stackSize+" "+in.getDisplayName()+"\n";
else
ret += "No required item\n";
String pwr = rec.getRequiredPowerDesc();
if (pwr != null)
ret += pwr;
else
ret += "No required power";
return ret;*/
return "Alternate Recipe: "+this.getRecipe().getDisplayName()+"\nSee Satisforestry Requirements";
}
private AltRecipe getRecipe() {
return SFAPI.altRecipeHandler.getRecipeByID(SFAPI.altRecipeHandler.getTurbofuelID());
}
});
}
}
}
private static void changeIC2BlazePowderCompression() {
Map<IRecipeInput, RecipeOutput> map = Recipes.compressor.getRecipes();
for (Entry<IRecipeInput, RecipeOutput> e : new ArrayList<Entry<IRecipeInput, RecipeOutput>>(map.entrySet())) {
IRecipeInput in = e.getKey();
if (in.matches(new ItemStack(Items.blaze_powder)) && in.getAmount() < 8) {
RecipeOutput out = e.getValue();
for (ItemStack is : out.items) {
if (is.getItem() == Items.blaze_rod) {
in = new RecipeInputItemStack(new ItemStack(Items.blaze_powder), 8);
map.put(in, e.getValue());
map.remove(e.getKey());
return;
}
}
}
}
}
@ModDependent(ModList.THAUMCRAFT)
private static void addThaumcraft() {
ReikaThaumHelper.addBookCategory(new ResourceLocation("rotarycraft", "textures/blocks/worktable_top.png"), "rotarycraft");
//ItemStack in = ItemRegistry.BEDHELM.getEnchantedStack();
//ItemStack out = ItemRegistry.BEDREVEAL.getEnchantedStack();
AspectList al = new AspectList();
al.add(Aspect.FIRE, 2);
al.add(Aspect.ENTROPY, 10);
al.add(Aspect.EARTH, 1);
String desc = "Imparting the power of the eldritch onto high-velocity munitions";
Object[] in = {
"vv ", "van", " n ",
'a', ItemRegistry.RAILGUN.getStackOfMetadata(ItemVoidMetalRailgunAmmo.EQUIVALENT),
'v', ThaumItemHelper.ItemEntry.VOIDMETAL.getItem(),
'n', ThaumItemHelper.ItemEntry.VOIDSEED.getItem(),
};
ShapedArcaneRecipe sr = new ShapedArcaneRecipe("VOIDRAIL", ItemRegistry.VOIDRAIL.getCraftedProduct(6), al, in);
ThaumcraftApi.getCraftingRecipes().add(sr);
String page = RotaryDescriptions.getParentPage()+"thaum.xml";
ReikaThaumHelper.addArcaneRecipeBookEntryViaXML(RotaryCraft.instance, "VOIDRAIL", desc, "rotarycraft", sr, MathExpression.self, -2, 0, RotaryCraft.class, page).setParents("VOIDMETAL");
ThaumcraftApi.addWarpToItem(ItemRegistry.VOIDRAIL.getStackOf(), 1);
ThaumcraftApi.addWarpToResearch("VOIDRAIL", 3);
MathExpression cost = new MathExpression() {
@Override
public double evaluate(double arg) throws ArithmeticException {
return arg/5D;
}
@Override
public double getBaseValue() {
return 0;
}
@Override
public String toString() {
return "/5";
}
};
//ItemStack in = ItemRegistry.BEDHELM.getEnchantedStack();
//ItemStack out = ItemRegistry.BEDREVEAL.getEnchantedStack();
al = new AspectList();
al.add(Aspect.MIND, 10);
al.add(Aspect.SENSES, 25);
al.add(Aspect.AURA, 10);
al.add(Aspect.ARMOR, 25);
al.add(Aspect.MAGIC, 25);
ItemStack[] recipe = {
ThaumItemHelper.ItemEntry.THAUMOMETER.getItem(),
new ItemStack(Items.gold_ingot),
ThaumItemHelper.ItemEntry.SALIS.getItem(),
ThaumOreHandler.getInstance().getItem(ModOreList.CINNABAR),
ThaumItemHelper.ItemEntry.THAUMOMETER.getItem(),
new ItemStack(Items.gold_ingot),
ThaumItemHelper.ItemEntry.SALIS.getItem(),
ThaumOreHandler.getInstance().getItem(ModOreList.CINNABAR),
};
desc = "Combining the protection of bedrock with the power of a Thaumometer";
//InfusionRecipe ir = ThaumcraftApi.addInfusionCraftingRecipe("GOGGLES", out, 7, al, in, recipe);
InfusionRecipe ir = new BedrockRevealingInfusion(6, al, recipe);
ThaumcraftApi.getCraftingRecipes().add(ir);
ReikaThaumHelper.addInfusionRecipeBookEntryViaXML(RotaryCraft.instance, "BEDREVEAL", desc, "rotarycraft", ir, cost, 0, 0, RotaryCraft.class, page).setParents("GOGGLES");
al = new AspectList();
al.add(Aspect.ORDER, 5);
al.add(Aspect.ENTROPY, 1);
desc = "One multitool inside another";
in = new Object[]{
"gsh", "sSs", "hsg",
'S', ItemRegistry.SCREWDRIVER.getStackOf(),
'h', ItemStacks.steelingot,
'g', Blocks.glass,
's', ThaumOreHandler.getInstance().getShard(ThaumOreHandler.getInstance().metaVisShard),
};
sr = new ShapedArcaneRecipe("SCREWFOCUS", ItemRegistry.SCREWFOCUS.getStackOf(), al, in);
ThaumcraftApi.getCraftingRecipes().add(sr);
ArrayList<String> li = new ArrayList();
if (Loader.isModLoaded("thaumicenergistics")) {
li.add("thaumicenergistics.TEFOCUSWRENCH");
}
else {
li.add("FOCUSFIRE");
}
ReikaThaumHelper.addArcaneRecipeBookEntryViaXML(RotaryCraft.instance, "SCREWFOCUS", desc, "rotarycraft", sr, cost, 2, 0, RotaryCraft.class, page).setParents(li.toArray(new String[li.size()]));
for (ReikaOreHelper ore : ReikaOreHelper.oreList) {
ItemStack flake = ItemStacks.getFlake(ore);
ItemStack out = ItemStacks.getSmeltedProduct(ore);
out.stackSize = calculateThaumBonusStackSize(ore);
ReikaThaumHelper.addSmeltingBonusWithStackSize(flake, out);
}
for (ModOreList ore : ModOreList.oreList) {
ItemStack flake = ExtractorModOres.getFlakeProduct(ore);
ItemStack out = ExtractorModOres.getSmeltedIngot(ore);
out.stackSize = calculateThaumBonusStackSize(ore);
ReikaThaumHelper.addSmeltingBonusWithStackSize(flake, out);
}
}
private static int calculateThaumBonusStackSize(OreType ore) { //at stacksize 0, average drop is 0.25 base or 0.44 per bellow (up to three bellows = 1.32)
int drops = ore.getDropCount();
if (drops > 1) {
return -1+drops*3/4;
}
return -1;
}
public static ItemStack getConverterGatingItem() {
ItemStack ctr = ItemStacks.steelingot;
switch(ConfigRegistry.LATEDYNAMO.getValue()) {
case 1:
ctr = ItemStacks.redgoldingot;
break;
case 2:
ctr = ItemStacks.tungsteningot;
break;
case 3:
ctr = ItemStacks.bedingot;
break;
case 4:
if (ModList.REACTORCRAFT.isLoaded())
ctr = CraftingItems.ALLOY.getItem();
break;
case 5:
if (ModList.REACTORCRAFT.isLoaded())
ctr = ReactorStacks.maxMagnet;
break;
default:
break;
}
return ctr;
}
private static void addMachines() {
MachineRegistry.COMPACTOR.addCrafting("SPS", "PGP", "#P#", '#', ItemStacks.basepanel, 'S', ItemStacks.steelingot, 'P', ItemStacks.presshead, 'G', GearboxTypes.TUNGSTEN.getPart(GearPart.UNIT16));
MachineRegistry.FAN.addOreRecipe("WWW", "WIW", "#s#", '#', ItemStacks.basepanel, 'W', "plankWood", 'I', ItemStacks.impeller, 's', ItemStacks.shaftitem);
MachineRegistry.AEROSOLIZER.addCrafting("BRB", "RIR", "BRB", 'B', ItemStacks.basepanel, 'R', MachineRegistry.RESERVOIR.getCraftedProduct(), 'I', ItemStacks.impeller);
MachineRegistry.HEATRAY.addCrafting("OOO", "BLb", "#P#", '#', ItemStacks.basepanel, 'B', ItemStacks.bulb, 'b', ItemStacks.barrel, 'P', ItemStacks.power, 'L', ItemStacks.lens, 'O', Blocks.obsidian);
MachineRegistry.FLOODLIGHT.addCrafting("ISO", "Ggd", "I#O", '#', ItemStacks.basepanel, 'I', Items.iron_ingot, 'd', Items.gold_ingot, 'S', ItemStacks.steelingot, 'G', Blocks.glass, 'g', Blocks.glowstone, 'O', Blocks.obsidian);
if (ReikaItemHelper.oreItemsExist("ingotCopper", "ingotSilver"))
MachineRegistry.FLOODLIGHT.addOreRecipe("ISO", "Ggd", "I#O", '#', ItemStacks.basepanel, 'I', "ingotSilver", 'd', "ingotCopper", 'S', ItemStacks.steelingot, 'G', Blocks.glass, 'g', Blocks.glowstone, 'O', Blocks.obsidian);
NBTTagCompound nbt = new NBTTagCompound();
nbt.setBoolean("cross", true);
MachineRegistry.SHAFT.addNBTCrafting(nbt, " S ", "SSS", " M ", 'M', ItemStacks.mount, 'S', ItemStacks.shaftitem); //Shaft cross
//addRecipeToBoth(MachineRegistry.WORKTABLE.getCraftedProduct(), " C ", "SBS", "srs", 'r', Items.redstone, 'S', ItemStacks.steelingot, 'B', Blocks.brick_block, 'C', Blocks.crafting_table, 's', ReikaItemHelper.stoneSlab);
MachineRegistry.BEVELGEARS.addSizedCrafting(4, "ISB", "SGB", "BBB", 'B', ItemStacks.basepanel, 'I', ItemStacks.steelingot, 'S', ItemStacks.shaftitem, 'G', ItemStacks.steelgear);
nbt = new NBTTagCompound();
nbt.setBoolean("bedrock", false);
MachineRegistry.SPLITTER.addSizedNBTCrafting(nbt, 2, "ISP", "SGP", "ISP", 'P', ItemStacks.basepanel, 'I', ItemStacks.steelingot, 'S', ItemStacks.shaftitem, 'G', ItemStacks.steelgear);
MachineRegistry.CLUTCH.addCrafting("S", "M", "R", 'M', ItemStacks.mount, 'S', ItemStacks.shaftitem, 'R', Items.redstone);
//MachineRegistry.CLUTCH.addCrafting("S", "R", 'S', MachineRegistry.SHAFT.getCraftedMetadataProduct(2), 'R', Items.redstone);
MachineRegistry.DYNAMOMETER.addSizedCrafting(2, " S ", " E ", " Ms", 's', ItemStacks.screen, 'M', ItemStacks.mount, 'S', ItemStacks.shaftitem, 'E', Items.ender_pearl);
MachineRegistry.DYNAMOMETER.addSizedCrafting(4, " S ", " E ", " Ms", 's', ItemStacks.screen, 'M', ItemStacks.mount, 'S', ItemStacks.shaftitem, 'E', ItemStacks.silicon);
MachineRegistry.BEDROCKBREAKER.addCrafting("BDt", "BSO", "BDt", 't', ItemStacks.tungsteningot, 'S', ItemStacks.steelingot, 'D', Items.diamond, 'O', Blocks.obsidian, 'B', ItemStacks.basepanel);
MachineRegistry.FERMENTER.addCrafting("BPB", "PIP", "BPB", 'B', ItemStacks.steelingot, 'I', ItemStacks.impeller, 'P', ItemStacks.basepanel);
MachineRegistry.FERMENTER.addOreRecipe("BPB", "PIP", "BPB", 'B', "ingotTin", 'I', ItemStacks.impeller, 'P', ItemStacks.basepanel);
MachineRegistry.GRINDER.addCrafting("B B", "SGS", "PPP", 'B', ItemStacks.steelingot, 'G', ItemStacks.steelgear, 'P', ItemStacks.basepanel, 'S', ItemStacks.saw);
MachineRegistry.RESERVOIR.addCrafting("B B", "B B", "BBB", 'B', ItemStacks.basepanel);
nbt = new NBTTagCompound();
nbt.setBoolean("cover", true);
MachineRegistry.RESERVOIR.addNBTCrafting(nbt, "BPB", "B B", "BBB", 'B', ItemStacks.basepanel, 'P', Blocks.glass_pane);
MachineRegistry.FIREWORK.addCrafting("BEB", "BDB", "BRB", 'B', ItemStacks.basepanel, 'R', Items.redstone, 'E', Items.ender_eye, 'D', Blocks.dispenser);
MachineRegistry.AUTOBREEDER.addCrafting("B B", "BBB", 'B', ItemStacks.basepanel);
MachineRegistry.FRACTIONATOR.addCrafting("GFG", "GIG", "GPG", 'P', ItemStacks.basepanel, 'I', ItemStacks.mixer, 'G', Items.gold_ingot, 'F', ItemStacks.fuelline);
MachineRegistry.BAITBOX.addCrafting("BBB", "BAB", "BBB", 'B', Blocks.iron_bars, 'A', MachineRegistry.AUTOBREEDER.getCraftedProduct());
MachineRegistry.WINDER.addCrafting(" ss", " hg", "ppp", 'h', ItemStacks.shaftitem, 's', ItemStacks.steelingot, 'g', ItemStacks.gearunit, 'p', ItemStacks.basepanel);
MachineRegistry.ECU.addCrafting("IPI", "IGI", "IRI", 'I', ItemStacks.steelingot, 'G', Items.gold_ingot, 'P', ItemStacks.pcb, 'R', Items.redstone);
if (ReikaItemHelper.oreItemExists("ingotElectrum"))
MachineRegistry.ECU.addOreRecipe("IPI", "IGI", "IRI", 'I', ItemStacks.steelingot, 'G', "ingotElectrum", 'P', ItemStacks.pcb, 'R', Items.redstone);
else if (ReikaItemHelper.oreItemExists("ingotCopper"))
MachineRegistry.ECU.addOreRecipe("IPI", "IGI", "IRI", 'I', ItemStacks.steelingot, 'G', "ingotCopper", 'P', ItemStacks.pcb, 'R', Items.redstone);
MachineRegistry.WOODCUTTER.addCrafting("IS ", "PGS", "PPI", 'I', ItemStacks.steelingot, 'S', ItemStacks.saw, 'P', ItemStacks.basepanel, 'G', ItemStacks.gearunit);
MachineRegistry.VACUUM.addCrafting("SwS", "wIw", "SCS", 'C', Blocks.chest, 'S', ItemStacks.steelingot, 'I', ItemStacks.impeller, 'w', ReikaItemHelper.blackWool);
MachineRegistry.BORER.addCrafting("SSS", "DGC", "BBB", 'B', ItemStacks.basepanel, 'S', ItemStacks.steelingot, 'D', ItemStacks.drill, 'G', ItemStacks.gearunit, 'C', ItemStacks.pcb);
MachineRegistry.SPRINKLER.addSizedCrafting(4, " s ", " p ", " i ", 's', ItemStacks.steelingot, 'p', ItemStacks.pipe, 'i', ItemStacks.impeller);
MachineRegistry.SPRINKLER.addSizedOreRecipe(4, " s ", " p ", " i ", 's', "ingotTin", 'p', ItemStacks.pipe, 'i', ItemStacks.impeller);
MachineRegistry.SPAWNERCONTROLLER.addCrafting("PCP", "OGO", "g g", 'O', Blocks.obsidian, 'P', ItemStacks.basepanel, 'G', Items.gold_ingot, 'g', Blocks.glowstone, 'C', ItemStacks.pcb);
MachineRegistry.PLAYERDETECTOR.addCrafting("LRL", "OGO", "OPO", 'L', ReikaItemHelper.lapisDye, 'R', ItemStacks.radar, 'O', Blocks.obsidian, 'P', ItemStacks.basepanel, 'G', Items.gold_ingot);
MachineRegistry.OBSIDIAN.addCrafting("SpS", "PMP", "BBB", 'M', ItemStacks.mixer, 'B', ItemStacks.basepanel, 'S', ItemStacks.steelingot, 'p', Blocks.glass_pane, 'P', ItemStacks.pipe);
if (ReikaItemHelper.oreItemExists("ingotInvar"))
MachineRegistry.OBSIDIAN.addOreRecipe("SpS", "PMP", "BBB", 'M', ItemStacks.mixer, 'B', ItemStacks.basepanel, 'S', "ingotInvar", 'p', Blocks.glass_pane, 'P', ItemStacks.pipe);
MachineRegistry.HEATER.addCrafting("sBs", "prp", "scs", 'r', ItemStacks.tungsteningot, 's', ItemStacks.steelingot, 'B', Blocks.iron_bars, 'p', ItemStacks.basepanel, 'c', ItemStacks.combustor);
MachineRegistry.GPR.addCrafting("SsS", "PCP", "SRS", 'S', ItemStacks.steelingot, 's', ItemStacks.screen, 'P', ItemStacks.basepanel, 'R', ItemStacks.radar, 'C', ItemStacks.pcb);
MachineRegistry.PULSEJET.addCrafting("OCD", "PcO", "BBB", 'B', ItemStacks.basepanel, 'O', Blocks.obsidian, 'C', ItemStacks.compressor, 'D', ItemStacks.diffuser, 'c', ItemStacks.combustor, 'P', ItemStacks.pipe);
MachineRegistry.EXTRACTOR.addOreRecipe("SWS", "siD", "PIN", 'D', ItemStacks.drill, 'P', ItemStacks.basepanel, 'S', ItemStacks.steelingot, 'I', ItemStacks.shaftitem, 's', Blocks.stone, 'i', ItemStacks.impeller, 'N', Blocks.netherrack, 'W', "plankWood");
MachineRegistry.LIGHTBRIDGE.addCrafting("GgG", "BgS", "BBD", 'B', ItemStacks.basepanel, 'S', ItemStacks.steelingot, 'D', Items.diamond, 'G', Items.gold_ingot, 'g', Blocks.glass);
MachineRegistry.PILEDRIVER.addCrafting("PGP", "gFg", "PDP", 'P', ItemStacks.basepanel, 'G', ItemStacks.gearunit8, 'g', ItemStacks.shaftitem, 'F', Flywheels.TUNGSTEN.getCore(), 'D', ItemStacks.drill);
MachineRegistry.PUMP.addCrafting("SGS", "pIp", "PpP", 'P', ItemStacks.basepanel, 'p', ItemStacks.pipe, 'I', ItemStacks.impeller, 'G', Blocks.glass_pane, 'S', ItemStacks.steelingot);
MachineRegistry.MOBRADAR.addCrafting(" rs", " g ", "pcp", 'r', ItemStacks.radar, 's', ItemStacks.screen, 'c', ItemStacks.pcb, 'g', ItemStacks.gearunit, 'p', ItemStacks.basepanel);
MachineRegistry.TNTCANNON.addCrafting("sgc", "pcp", "pCr", 'g', Blocks.redstone_block, 'C', ItemStacks.compressor, 'c', ItemStacks.screen, 's', ItemStacks.steelingot, 'c', ItemStacks.pcb, 'r', Blocks.chest, 'p', ItemStacks.basepanel);
MachineRegistry.SONICWEAPON.addCrafting("psp", "sts", "psp", 't', ItemStacks.turbine, 's', ItemStacks.sonar, 'p', ItemStacks.basepanel);
MachineRegistry.FORCEFIELD.addCrafting("lnl", "ddd", "sgs", 'd', Items.diamond, 's', ItemStacks.basepanel, 'n', Items.nether_star, 'g', Items.gold_ingot, 'l', ReikaItemHelper.lapisDye);
MachineRegistry.MUSICBOX.addSizedCrafting(4, "sns", "ncn", "sns", 'n', Blocks.noteblock, 's', ItemStacks.steelingot, 'c', ItemStacks.pcb);
MachineRegistry.MUSICBOX.addSizedOreRecipe(4, "sns", "ncn", "sns", 'n', Blocks.noteblock, 's', "ingotSilver", 'c', ItemStacks.pcb);
MachineRegistry.WEATHERCONTROLLER.addCrafting("s s", "sls", "pcp", 'l', Blocks.daylight_detector, 's', ItemStacks.steelingot, 'c', ItemStacks.pcb, 'p', ItemStacks.basepanel);
MachineRegistry.MOBHARVESTER.addCrafting("shs", "sps", 'h', ItemStacks.igniter, 'p', Items.ender_pearl, 's', ItemStacks.basepanel);
MachineRegistry.PROJECTOR.addCrafting("sss", "gcl", "ppp", 'c', ItemStacks.pcb, 's', ItemStacks.steelingot, 'g', Blocks.glass, 'l', Blocks.glowstone, 'p', ItemStacks.basepanel);
MachineRegistry.REFRESHER.addCrafting("ses", "epe", "ses", 'p', Items.ender_pearl, 's', ItemStacks.steelingot, 'e', ReikaItemHelper.lapisDye);
MachineRegistry.CAVESCANNER.addCrafting("sps", "pcp", "sns", 'n', ItemStacks.sonar, 's', ItemStacks.steelingot, 'c', ItemStacks.pcb, 'p', ItemStacks.basepanel);
MachineRegistry.SCALECHEST.addCrafting("sss", "scs", "sss", 'c', Blocks.chest, 's', ItemStacks.steelingot);
MachineRegistry.SPILLER.addCrafting("sps", "s s", 'p', ItemStacks.pipe, 's', ItemStacks.steelingot);
MachineRegistry.FILLER.addCrafting("sss", "sps", "s s", 'p', Blocks.chest, 's', ItemStacks.steelingot);
MachineRegistry.SMOKEDETECTOR.addCrafting(" S ", "RRR", " N ", 'S', ReikaItemHelper.stoneSlab, 'R', Items.redstone, 'N', Blocks.noteblock);
MachineRegistry.IGNITER.addCrafting("OGO", "GCG", "OGO", 'O', Blocks.obsidian, 'G', Items.gold_ingot, 'C', ItemStacks.combustor);
MachineRegistry.CONTAINMENT.addCrafting("lnl", "ddd", "sgs", 'd', Items.diamond, 's', ItemStacks.basepanel, 'n', Items.nether_star, 'g', Items.gold_ingot, 'l', ReikaItemHelper.purpleDye);
MachineRegistry.MAGNETIZER.addCrafting("p p", "gmg", "prp", 'r', Items.redstone, 'p', ItemStacks.basepanel, 'm', ItemStacks.mount, 'g', ItemStacks.goldcoil);
MachineRegistry.FREEZEGUN.addCrafting(" ss", "iig", "sb ", 'b', ItemStacks.railbase, 'i', Blocks.ice, 'p', ItemStacks.basepanel, 's', ItemStacks.steelingot, 'g', ItemStacks.gearunit);
MachineRegistry.SCREEN.addCrafting("sss", "mcs", "ppp", 'p', ItemStacks.basepanel, 's', ItemStacks.steelingot, 'm', ItemStacks.screen, 'c', ItemStacks.pcb);
MachineRegistry.CCTV.addCrafting(" g ", "brs", " p ", 'p', ItemStacks.basepanel, 's', ItemStacks.steelingot, 'b', Blocks.glass_pane, 'r', Items.redstone, 'g', Items.gold_ingot);
MachineRegistry.PURIFIER.addCrafting("sbs", "prp", "sps", 'p', ItemStacks.basepanel, 's', ItemStacks.steelingot, 'r', Items.redstone, 'b', Blocks.iron_bars);
MachineRegistry.MIRROR.addCrafting("bmb", " g ", "pcp", 'b', BlockRegistry.BLASTGLASS.getStackOf(), 'p', ItemStacks.basepanel, 'c', ItemStacks.pcb, 'm', ItemStacks.mirror, 'g', ItemStacks.steelgear);
MachineRegistry.SOLARTOWER.addOreRecipe("pPp", "iPi", "pPp", 'p', ItemStacks.basepanel, 'P', ItemStacks.pipe, 'i', "dyeBlack");
MachineRegistry.RAILGUN.addCrafting(" H ", " A ", " B ", 'B', ItemStacks.railbase, 'A', ItemStacks.railaim, 'H', ItemStacks.railhead);
MachineRegistry.LASERGUN.addCrafting("CLB", "APG", " b ", 'b', ItemStacks.railbase, 'C', ItemStacks.bulb, 'L', ItemStacks.lens, 'P', ItemStacks.power, 'B', ItemStacks.barrel, 'A', ItemStacks.railaim, 'G', ItemStacks.gearunit);
MachineRegistry.ITEMCANNON.addCrafting("s c", "pcp", "pCr", 'C', ItemStacks.compressor, 'c', ItemStacks.screen, 's', ItemStacks.steelingot, 'c', ItemStacks.gearunit, 'r', Blocks.chest, 'p', ItemStacks.basepanel);
MachineRegistry.BLOCKCANNON.addCrafting("s c", "pcp", "pCr", 'C', ItemStacks.compressor, 'c', ItemStacks.screen, 's', ItemStacks.steelingot, 'c', ItemStacks.pcb, 'r', Blocks.chest, 'p', ItemStacks.basepanel);
MachineRegistry.FRICTION.addCrafting("S ", "Sss", "SPP", 'P', ItemStacks.basepanel, 'S', ItemStacks.steelingot, 's', ItemStacks.shaftitem);
MachineRegistry.LANDMINE.addCrafting(" P ", "RGR", "SIS", 'P', Blocks.stone_pressure_plate, 'S', ItemStacks.steelingot, 'I', ItemStacks.igniter, 'R', Items.redstone, 'G', Items.gold_ingot);
MachineRegistry.BUCKETFILLER.addCrafting("SPS", "PCP", "SPS", 'P', ItemStacks.pipe, 'S', ItemStacks.steelingot, 'C', Blocks.chest);
MachineRegistry.SPYCAM.addCrafting("SCS", "PRP", "SGS", 'P', ItemStacks.basepanel, 'S', ItemStacks.steelingot, 'C', ItemStacks.pcb, 'G', Blocks.glass_pane, 'R', Items.redstone);
MachineRegistry.COOLINGFIN.addSizedCrafting(3, "SSS", "SSS", "PPP", 'P', ItemStacks.basepanel, 'S', ItemStacks.shaftitem);
MachineRegistry.COOLINGFIN.addSizedOreRecipe(2, "SSS", "SSS", "PPP", 'P', "ingotTin", 'S', "ingotCopper");
MachineRegistry.SELFDESTRUCT.addCrafting("STS", "TCs", "STS", 'T', Blocks.tnt, 'S', ItemStacks.steelingot, 's', ItemStacks.shaftitem, 'C', ItemStacks.pcb);
//MachineRegistry.DISPLAY.addCrafting("SES", "SCS", " P ", 'P', ItemStacks.basepanel, 'E', Items.ender_pearl, 'S', ItemStacks.steelingot, 'C', ItemStacks.pcb);
MachineRegistry.DISPLAY.addCrafting("SES", "SCS", " P ", 'P', ItemStacks.basepanel, 'E', ItemStacks.silicon, 'S', ItemStacks.steelingot, 'C', ItemStacks.pcb);
MachineRegistry.LAMP.addCrafting("SGS", "GgG", "SGS", 'S', ItemStacks.steelingot, 'G', Blocks.glass, 'g', Blocks.glowstone);
MachineRegistry.MULTICLUTCH.addCrafting("PSP", "SGS", "RSR", 'R', Items.redstone, 'I', ItemStacks.steelingot, 'S', ItemStacks.shaftitem, 'G', ItemStacks.gearunit, 'P', ItemStacks.basepanel);
MachineRegistry.FUELENHANCER.addCrafting("PGP", "gMg", "PGP", 'G', Blocks.glass_pane, 'M', ItemStacks.mixer, 'P', ItemStacks.basepanel, 'g', Items.gold_ingot);
MachineRegistry.LINEBUILDER.addCrafting("sbs", "sps", "PgP", 'g', ItemStacks.gearunit, 'p', Blocks.piston, 'P', ItemStacks.basepanel, 'b', ItemStacks.bedingot, 's', ItemStacks.steelingot);
MachineRegistry.TERRAFORMER.addCrafting("SsS", "ici", "PiP", 'i', ItemStacks.impeller, 'S', ItemStacks.steelingot, 'c', ItemStacks.pcb, 'P', ItemStacks.basepanel, 's', ItemStacks.screen);
MachineRegistry.EMP.addCrafting("GDG", "GsG", "PnP", 'P', ItemStacks.basepanel, 'n', Items.nether_star, 'G', ItemStacks.goldcoil, 'D', Blocks.diamond_block, 's', GearboxTypes.BEDROCK.getPart(GearPart.SHAFTCORE));
MachineRegistry.ARROWGUN.addCrafting("SSS", "BDB", "SBS", 'B', ItemStacks.basepanel, 'S', ItemStacks.steelingot, 'D', Blocks.dispenser);
MachineRegistry.FERTILIZER.addCrafting("PIP", " S ", "BCB", 'P', ItemStacks.pipe, 'S', ItemStacks.shaftitem, 'I', ItemStacks.impeller, 'C', Blocks.chest, 'B', ItemStacks.basepanel);
MachineRegistry.LAVAMAKER.addCrafting("SRS", "PGP", "SsS", 's', ItemStacks.shaftitem, 'S', ItemStacks.steelingot, 'R', MachineRegistry.RESERVOIR.getCraftedProduct(), 'P', ItemStacks.basepanel, 'G', ItemStacks.steelgear);
MachineRegistry.BEAMMIRROR.addCrafting(" m ", " s ", " p ", 'p', ItemStacks.basepanel, 'm', ItemStacks.mirror, 's', ItemStacks.steelingot);
MachineRegistry.VALVE.addSizedCrafting(4, "sGs", "OGO", "sGs", 'O', Blocks.redstone_block, 'G', Blocks.glass, 's', ItemStacks.steelingot);
MachineRegistry.BYPASS.addSizedCrafting(4, "OGO", "OGO", "OGO", 'O', Blocks.sandstone, 'G', Blocks.glass, 's', ItemStacks.steelingot);
MachineRegistry.SEPARATION.addSizedCrafting(4, "sGs", "OGO", "sGs", 'O', Blocks.lapis_block, 'G', Blocks.glass, 's', ItemStacks.steelingot);
MachineRegistry.SONICBORER.addCrafting("ss ", "Icp", "bbb", 'p', ItemStacks.pipe, 's', ItemStacks.steelingot, 'c', ItemStacks.compressor, 'b', ItemStacks.basepanel, 'I', Blocks.iron_bars);
MachineRegistry.AIRGUN.addCrafting("sps", "I S", "sps", 'I', ItemStacks.impeller, 'p', ItemStacks.basepanel, 's', ItemStacks.steelingot, 'S', ItemStacks.sonar);
MachineRegistry.FUELENGINE.addCrafting("CGC", "fgs", "bIb", 'g', GearboxTypes.TUNGSTEN.getPart(GearPart.UNIT8), 'C', ItemStacks.aluminumcylinder, 'G', ItemStacks.tungsteningot, 'f', ItemStacks.gearunit, 'b', ItemStacks.basepanel, 'I', ItemStacks.impeller, 's', ItemStacks.shaftcore);
MachineRegistry.AGGREGATOR.addCrafting("SPS", "GCG", "SsS", 's', ItemStacks.shaftitem, 'G', Blocks.glass_pane, 'S', ItemStacks.steelingot, 'P', ItemStacks.basepanel, 'C', ItemStacks.compressor);
MachineRegistry.FILLINGSTATION.addCrafting("ppS", " iR", "ppB", 'B', ItemStacks.basepanel, 'S', ItemStacks.steelingot, 'i', ItemStacks.impeller, 'p', ItemStacks.pipe, 'R', MachineRegistry.RESERVOIR.getCraftedProduct());
MachineRegistry.BELT.addSizedCrafting(2, "sBs", " G ", "sBs", 'B', ItemStacks.basepanel, 'G', ItemStacks.hub, 's', ItemStacks.steelingot);
MachineRegistry.SPLITBELT.addSizedCrafting(2, " B ", "SgS", " B ", 'S', ItemStacks.shaftitem, 'B', MachineRegistry.BELT.getCraftedProduct(), 'g', ItemStacks.steelgear);
MachineRegistry.VANDEGRAFF.addCrafting("shs", "gbg", "php", 'h', ItemStacks.hub, 'p', ItemStacks.basepanel, 'b', ItemStacks.belt, 'g', Blocks.glass_pane, 's', ItemStacks.steelingot);
MachineRegistry.DISTILLER.addCrafting("PGP", "gMg", "PGP", 'G', Blocks.glass_pane, 'M', ItemStacks.mixer, 'P', ItemStacks.basepanel, 'g', Items.iron_ingot);
MachineRegistry.BIGFURNACE.addCrafting("SFS", "FRF", "SRS", 'S', ItemStacks.basepanel, 'F', Blocks.furnace, 'R', MachineRegistry.RESERVOIR.getCraftedProduct());
MachineRegistry.SUCTION.addSizedCrafting(4, "SGS", "SGS", "SGS", 'S', Blocks.nether_brick, 'G', Blocks.glass);
MachineRegistry.SORTING.addCrafting("SHS", " C ", "P P", 'P', ItemStacks.basepanel, 'S', ItemStacks.steelingot, 'H', Blocks.hopper, 'C', ItemStacks.pcb);
MachineRegistry.CRYSTALLIZER.addCrafting("SFS", "FIF", "BBB", 'S', ItemStacks.steelingot, 'B', ItemStacks.basepanel, 'F', MachineRegistry.COOLINGFIN.getCraftedProduct(), 'I', ItemStacks.impeller);
MachineRegistry.POWERBUS.addSizedCrafting(4, "SMS", "MCM", "SMS", 'S', ItemStacks.steelingot, 'M', ItemStacks.bearing, 'C', ItemStacks.belt);
MachineRegistry.BUSCONTROLLER.addCrafting("SMS", "MCM", "SMS", 'S', ItemStacks.steelingot, 'M', ItemStacks.bearing, 'C', ItemStacks.pcb);
MachineRegistry.PARTICLE.addSizedCrafting(4, "SDS", "PCP", "SIS", 'S', ItemStacks.steelingot, 'P', ItemStacks.basepanel, 'C', ItemStacks.pcb, 'D', Blocks.dispenser, 'I', ItemStacks.impeller);
MachineRegistry.PARTICLE.addSizedOreRecipe(4, "SDS", "PCP", "SIS", 'S', "ingotTin", 'P', ItemStacks.basepanel, 'C', ItemStacks.pcb, 'D', Blocks.dispenser, 'I', ItemStacks.impeller);
MachineRegistry.LAWNSPRINKLER.addCrafting("PPP", " P ", "BIB", 'I', ItemStacks.impeller, 'P', ItemStacks.pipe, 'B', ItemStacks.basepanel);
MachineRegistry.GRINDSTONE.addCrafting("S S", "sBs", "ppp", 'p', ItemStacks.basepanel, 's', ItemStacks.shaftitem, 'S', ItemStacks.steelingot, 'B', Blocks.stone);
MachineRegistry.BLOWER.addSizedCrafting(DifficultyEffects.PIPECRAFT.getInt(), "BBB", "PIP", "BBB", 'B', ItemStacks.basepanel, 'I', ItemStacks.impeller, 'P', ItemStacks.pipe);
MachineRegistry.DEFOLIATOR.addCrafting("P P", "SPS", "BIB", 'B', ItemStacks.basepanel, 'P', ItemStacks.pipe, 'I', ItemStacks.impeller, 'S', ItemStacks.steelingot);
MachineRegistry.REFRIGERATOR.addCrafting("SPS", "CcD", "pPp", 'p', ItemStacks.basepanel, 'P', ItemStacks.pipe, 'D', ItemStacks.diffuser, 'C', ItemStacks.compressor, 'c', ItemStacks.condenser, 'S', ItemStacks.steelingot);
MachineRegistry.COMPOSTER.addCrafting(" S ", "S S", "BBB", 'B', ItemStacks.basepanel, 'S', ItemStacks.steelingot);
MachineRegistry.COMPOSTER.addOreRecipe(" S ", "S S", "BBB", 'B', ItemStacks.basepanel, 'S', "ingotTin");
MachineRegistry.GASTANK.addCrafting("SIS", "PRP", "PPP", 'P', ItemStacks.basepanel, 'S', ItemStacks.steelingot, 'I', ItemStacks.impeller, 'R', MachineRegistry.RESERVOIR.getCraftedProduct());
MachineRegistry.CRAFTER.addCrafting("SCS", "PcP", "SPS", 'S', ItemStacks.steelingot, 'C', Blocks.crafting_table, 'P', ItemStacks.basepanel, 'c', ItemStacks.pcb);
MachineRegistry.ANTIAIR.addCrafting("sss", "ppc", " Ba", 'p', ItemStacks.pipe, 'c', ItemStacks.compressor, 's', ItemStacks.steelingot, 'a', ItemStacks.railaim, 'B', ItemStacks.railbase);
MachineRegistry.PIPEPUMP.addCrafting("BBB", "PIP", "BBB", 'B', ItemStacks.steelingot, 'I', ItemStacks.impeller, 'P', ItemStacks.pipe);
MachineRegistry.CHAIN.addSizedCrafting(2, "sBs", " G ", "sBs", 'B', ItemStacks.basepanel, 'G', ItemStacks.steelgear, 's', ItemStacks.steelingot);
MachineRegistry.CENTRIFUGE.addCrafting("SGS", "S S", "PgP", 'P', ItemStacks.basepanel, 'g', ItemStacks.gearunit4, 'S', ItemStacks.steelingot, 'G', Blocks.glass_pane);
MachineRegistry.DRYING.addCrafting("S S", "SPS", "S S", 'P', ItemStacks.basepanel, 'S', ItemStacks.steelingot);
MachineRegistry.WETTER.addCrafting("S S", "gmg", "SPS", 'g', Blocks.glass_pane, 'm', ItemStacks.mixer, 'P', ItemStacks.basepanel, 'S', ItemStacks.steelingot);
MachineRegistry.CHUNKLOADER.addCrafting("sSs", "BSB", "PGP", 'B', ItemStacks.steelingot, 'S', ItemStacks.bedrockshaft, 's', Items.nether_star, 'P', ItemStacks.basepanel, 'G', GearboxTypes.BEDROCK.getPart(GearPart.UNIT16));
MachineRegistry.DROPS.addCrafting("PSP", "PDP", "PSP", 'S', ItemStacks.steelingot, 'D', ItemStacks.drill, 'P', ItemStacks.basepanel);
MachineRegistry.ITEMFILTER.addCrafting("sSs", "CCC", "PRP", 's', ItemStacks.steelingot, 'S', ItemStacks.screen, 'C', ItemStacks.pcb, 'R', Items.redstone, 'P', ItemStacks.basepanel);
MachineRegistry.HYDRATOR.addOreRecipe("sls", "p p", "PpP", 's', ItemStacks.steelingot, 'p', "plankWood", 'l', Blocks.ladder, 'P', ItemStacks.basepanel);
MachineRegistry.GATLING.addCrafting("PPG", " GA", " B", 'B', ItemStacks.railbase, 'A', ItemStacks.railaim, 'G', ItemStacks.steelgear, 'P', ItemStacks.cylinder);
MachineRegistry.FLAMETURRET.addCrafting("FIP", "GFS", " FB", 'B', ItemStacks.railbase, 'F', ItemStacks.fuelline, 'I', ItemStacks.igniter, 'P', ItemStacks.pipe, 'g', ItemStacks.impeller, 'S', ItemStacks.shaftitem);
MachineRegistry.SPILLWAY.addCrafting("S ", "PSP", "PpP", 'S', ItemStacks.steelingot, 'P', ItemStacks.basepanel, 'p', ItemStacks.pipe);
MachineRegistry.DISTRIBCLUTCH.addCrafting("sgs", "SGS", "PrP", 'r', ItemStacks.pcb, 's', ItemStacks.steelingot, 'P', ItemStacks.basepanel, 'S', ItemStacks.shaftitem, 'g', ItemStacks.steelgear, 'G', ItemStacks.gearunit);
}
private static void addCraftItems() {
GameRegistry.addRecipe(ItemStacks.impeller, " S ", "SGS", " S ", 'S', ItemStacks.steelingot, 'G', ItemStacks.steelgear);
GameRegistry.addRecipe(new ShapedOreRecipe(ItemStacks.impeller, " S ", "SGS", " S ", 'S', "ingotTin", 'G', ItemStacks.steelgear));
GameRegistry.addRecipe(ItemStacks.compressor, "SSS", "SGS", "SSS", 'S', ItemStacks.steelingot, 'G', ItemStacks.steelgear);
GameRegistry.addRecipe(ItemStacks.turbine, "sss", "sGs", "sss", 's', ItemStacks.prop, 't', ItemStacks.tungsteningot, 'G', ItemStacks.compressor);
GameRegistry.addRecipe(ItemStacks.diffuser, " SS", "S ", " SS", 'S', ItemStacks.steelingot);
GameRegistry.addRecipe(ItemStacks.radiator, "GGG", "PPP", "SSS", 'G', Items.gold_ingot, 'S', ItemStacks.steelingot, 'P', ItemStacks.pipe);
GameRegistry.addRecipe(ReikaItemHelper.getSizedItemStack(ItemStacks.condenser, DifficultyEffects.SMALLERCRAFT.getInt()), "SPS", "PSP", "SPS", 'S', ItemStacks.steelingot, 'P', ItemStacks.pipe);
GameRegistry.addRecipe(ItemStacks.goldcoil, "GGG", "GSG", "GGG", 'S', ItemStacks.steelingot, 'G', Items.gold_ingot);
ReikaRecipeHelper.addOreRecipe(ItemStacks.goldcoil, "GGG", "GSG", "GGG", 'S', ItemStacks.steelingot, 'G', "ingotElectrum");
GameRegistry.addRecipe(ItemStacks.combustor, "SSS", "SRS", "SGS", 'S', ItemStacks.steelingot, 'G', ItemStacks.igniter, 'R', Items.redstone);
//GameRegistry.addRecipe(ItemStacks.highcombustor, "SiS", "iRi", "SGS", 'i', ItemStacks.redgoldingot, 'S', ItemStacks.steelingot, 'G', ItemStacks.igniter, 'R', Items.redstone);
RecipesBlastFurnace.getRecipes().add3x3Crafting(ItemStacks.highcombustor, 1100, 1, 0, "SiS", "iRi", "SGS", 'i', ItemStacks.redgoldingot, 'S', ItemStacks.steelingot, 'G', ItemStacks.igniter, 'R', Items.redstone);
GameRegistry.addRecipe(ReikaItemHelper.getSizedItemStack(ItemStacks.cylinder, 2), new Object[]{
"SSS", "S S", "SSS", 'S', ItemStacks.steelingot});
GameRegistry.addRecipe(ReikaItemHelper.getSizedItemStack(ItemStacks.aluminumcylinder, 2), new Object[]{
"SSS", "S S", "SSS", 'S', ItemStacks.silumin});
GameRegistry.addRecipe(ItemStacks.compoundturb, new Object[]{
" tS", "tst", "St ", 'S', ItemStacks.turbine, 's', GearboxTypes.TUNGSTEN.getPart(GearPart.SHAFTCORE), 't', ItemStacks.tungsteningot});
GameRegistry.addRecipe(ItemStacks.compoundcompress, new Object[]{
" tS", "tst", "St ", 'S', ItemStacks.compressor, 's', GearboxTypes.TUNGSTEN.getPart(GearPart.SHAFTCORE), 't', ItemStacks.tungsteningot});
for (GearboxTypes gear : GearboxTypes.typeList) {
GameRegistry.addRecipe(new ShapedOreRecipe(gear.getPart(GearPart.SHAFTCORE), new Object[]{" s", " S ", "s ", 'S', gear.getBaseItem(), 's', gear.getShaftUnitItem()}));
}
GameRegistry.addRecipe(ItemStacks.igniter, new Object[]{
"G G", "SRS", "SSS", 'S', ItemStacks.steelingot, 'R', Items.redstone, 'G', Items.gold_ingot});
ReikaRecipeHelper.addOreRecipe(ItemStacks.igniter, "G G", "SRS", "SSS", 'S', ItemStacks.steelingot, 'R', Items.redstone, 'G', "ingotElectrum");
GameRegistry.addRecipe(ItemStacks.waterplate, new Object[]{
"PPP", "PPP", "SSS", 'P', ItemStacks.basepanel, 'S', ItemStacks.springingot});
GameRegistry.addRecipe(ItemStacks.prop, new Object[]{
" S ", " I ", " P ", 'P', ItemStacks.basepanel, 'S', ItemStacks.shaftitem, 'I', ItemStacks.steelingot});
GameRegistry.addRecipe(ItemStacks.prop, new Object[]{
" P ", " I ", " S ", 'P', ItemStacks.basepanel, 'S', ItemStacks.shaftitem, 'I', ItemStacks.steelingot});
GameRegistry.addRecipe(ItemStacks.hub, new Object[]{
" B", " C ", "G ", 'G', ItemStacks.steelgear, 'B', ItemStacks.bearing, 'C', ItemStacks.shaftcore});
GameRegistry.addRecipe(ItemStacks.mirror, new Object[]{
"GGG", "III", 'G', Blocks.glass, 'I', Items.iron_ingot});
ReikaRecipeHelper.addOreRecipe(ItemStacks.mirror, "GGG", "III", 'G', Blocks.glass, 'I', "ingotSilver");
GameRegistry.addRecipe(ItemStacks.railhead, new Object[]{
"LLL", "LGL", "LLL", 'G', ItemStacks.power, 'L', ItemStacks.lim});
GameRegistry.addRecipe(ItemStacks.railbase, new Object[]{
" S ", "PGP", 'P', ItemStacks.basepanel, 'G', ItemStacks.gearunit, 'S', ItemStacks.steelgear});
GameRegistry.addRecipe(ItemStacks.railaim, new Object[]{
"sds", "CRC", "sgs", 'R', ItemStacks.radar, 'C', ItemStacks.pcb, 's', ItemStacks.steelingot, 'd', Items.diamond, 'g', ItemStacks.generator});
/*
GameRegistry.addRecipe(ItemStacks.bedingot, new Object[]{
" B ", "BSB", " B ", 'S', ItemStacks.steelingot, 'B', ItemStacks.bedrockdust});*/
GameRegistry.addRecipe(ReikaItemHelper.getSizedItemStack(ItemStacks.basepanel, DifficultyEffects.PARTCRAFT.getInt()), new Object[]{
"SSS", 'S', ItemStacks.steelingot});