|
1 | 1 | package gregtech.integration.exnihilo.recipes; |
2 | 2 |
|
| 3 | +import exnihilocreatio.ModItems; |
| 4 | + |
3 | 5 | import gregtech.api.recipes.ModHandler; |
4 | 6 | import gregtech.api.recipes.builders.SimpleRecipeBuilder; |
5 | 7 | import gregtech.api.recipes.chance.output.ChancedOutputLogic; |
|
15 | 17 | import gregtech.loaders.recipe.MetaTileEntityLoader; |
16 | 18 |
|
17 | 19 | import net.minecraft.init.Blocks; |
| 20 | +import net.minecraft.init.Items; |
18 | 21 | import net.minecraft.item.ItemStack; |
19 | 22 |
|
20 | 23 | import exnihilocreatio.ModBlocks; |
|
25 | 28 | import java.util.ArrayList; |
26 | 29 | import java.util.Arrays; |
27 | 30 |
|
| 31 | +import static gregtech.api.unification.material.Materials.*; |
| 32 | +import static gregtech.api.unification.ore.OrePrefix.stick; |
| 33 | +import static gregtech.api.unification.ore.OrePrefix.stone; |
28 | 34 | import static gregtech.common.blocks.BlockSteamCasing.SteamCasingType.BRONZE_HULL; |
29 | 35 | import static gregtech.integration.exnihilo.ExNihiloModule.*; |
30 | 36 | import static gregtech.loaders.recipe.CraftingComponent.*; |
@@ -67,6 +73,35 @@ public static void registerGTRecipes() { |
67 | 73 | 'P', new UnificationEntry(OrePrefix.plate, Materials.Steel)); |
68 | 74 | } |
69 | 75 |
|
| 76 | + public static void registerCraftingRecipes() { |
| 77 | + |
| 78 | + // Pebbles |
| 79 | + ModHandler.addShapedRecipe("basalt", OreDictUnifier.get(stone, Basalt, 1), "PP", "PP", 'P', |
| 80 | + new ItemStack(ExNihiloModule.GTPebbles, 1, 0)); |
| 81 | + ModHandler.addShapedRecipe("black_granite", OreDictUnifier.get(stone, GraniteBlack, 1), "PP", "PP", 'P', |
| 82 | + new ItemStack(ExNihiloModule.GTPebbles, 1, 1)); |
| 83 | + ModHandler.addShapedRecipe("marble", OreDictUnifier.get(stone, Marble, 1), "PP", "PP", 'P', |
| 84 | + new ItemStack(ExNihiloModule.GTPebbles, 1, 2)); |
| 85 | + ModHandler.addShapedRecipe("red_granite", OreDictUnifier.get(stone, GraniteRed, 1), "PP", "PP", 'P', |
| 86 | + new ItemStack(ExNihiloModule.GTPebbles, 1, 3)); |
| 87 | + |
| 88 | + // Meshes |
| 89 | + if (ExNihiloConfig.harderMeshes) { |
| 90 | + ModHandler.removeRecipeByName("exnihilocreatio:item_mesh_2"); |
| 91 | + ModHandler.addShapedRecipe("bronze_mesh", new ItemStack(ModItems.mesh, 1, 2), "TST", "STS", "TST", |
| 92 | + 'T', new UnificationEntry(stick, Materials.Bronze), |
| 93 | + 'S', new ItemStack(Items.STRING)); |
| 94 | + ModHandler.removeRecipeByName("exnihilocreatio:item_mesh_3"); |
| 95 | + ModHandler.addShapedRecipe("steel_mesh", new ItemStack(ModItems.mesh, 1, 3), "TST", "STS", "TST", |
| 96 | + 'T', new UnificationEntry(stick, Steel), |
| 97 | + 'S', new ItemStack(Items.STRING)); |
| 98 | + ModHandler.removeRecipeByName("exnihilocreatio:item_mesh_4"); |
| 99 | + ModHandler.addShapedRecipe("aluminium_mesh", new ItemStack(ModItems.mesh, 1, 4), "TST", "STS", "TST", |
| 100 | + 'T', new UnificationEntry(stick, Aluminium), |
| 101 | + 'S', new ItemStack(Items.STRING)); |
| 102 | + } |
| 103 | + } |
| 104 | + |
70 | 105 | // Has to be done in init phase because of ExNi registering outside the Registry event |
71 | 106 | public static void registerExNihiloRecipes() { |
72 | 107 | // Mirror Ex Nihilo Sifter recipes to Sifter RecipeMap |
|
0 commit comments