99import com .brandon3055 .draconicevolution .DEFeatures ;
1010
1111import gregtech .api .metatileentity .multiblock .CleanroomType ;
12+ import gregtech .api .recipes .GTRecipeHandler ;
1213import gregtech .api .recipes .ModHandler ;
1314import gregtech .api .recipes .RecipeBuilder ;
1415import gregtech .api .recipes .RecipeMaps ;
1516import gregtech .api .unification .OreDictUnifier ;
1617import gregtech .api .unification .material .Materials ;
1718import gregtech .common .ConfigHolder ;
18- import gregtech .common .blocks .MetaBlocks ;
19- import gregtech .common .items .MetaItems ;
2019
2120import gregicality .multiblocks .api .fluids .GCYMFluidStorageKeys ;
2221
2322import com .github .gtexpert .core .api .GTEValues ;
2423import com .github .gtexpert .core .api .unification .material .GTEMaterials ;
2524import com .github .gtexpert .core .api .util .Mods ;
25+ import com .github .gtexpert .core .loaders .recipe .handlers .GTEImplosionRecipeHandler ;
2626
2727public class DraconicMaterialsRecipe {
2828
@@ -45,6 +45,8 @@ public static void init() {
4545 }
4646 builderDD .buildAndRegister ();
4747
48+ GTRecipeHandler .removeRecipesByInputs (RecipeMaps .MACERATOR_RECIPES ,
49+ new ItemStack (Blocks .DRAGON_EGG ));
4850 RecipeMaps .MACERATOR_RECIPES .recipeBuilder ()
4951 .input (Blocks .DRAGON_EGG )
5052 .output (dust , GTEMaterials .Dragon , 8 )
@@ -60,6 +62,8 @@ public static void init() {
6062 .output (dust , GTEMaterials .Chaos , 2 )
6163 .duration (1200 ).EUt (VA [GTEValues .dedaVoltageTier + 1 ])
6264 .buildAndRegister ();
65+ GTRecipeHandler .removeRecipesByInputs (RecipeMaps .MACERATOR_RECIPES ,
66+ new ItemStack (DEFeatures .chaosShard , 1 , 1 ));
6367 RecipeMaps .MACERATOR_RECIPES .recipeBuilder ()
6468 .inputs (new ItemStack (DEFeatures .chaosShard , 1 , 1 ))
6569 .output (dust , GTEMaterials .Chaos , 1 )
@@ -103,34 +107,10 @@ public static void init() {
103107 ModHandler .addMirroredShapedRecipe ("ceu_draconic_block" ,
104108 OreDictUnifier .get (block , GTEMaterials .AwakenedDraconium ), "B" ,
105109 'B' , new ItemStack (DEFeatures .draconicBlock ));
106- RecipeMaps . IMPLOSION_RECIPES . recipeBuilder ()
110+ GTEImplosionRecipeHandler . register ( builder -> builder
107111 .input (DEFeatures .dragonHeart , 1 )
108112 .input (block , GTEMaterials .Draconium , 4 )
109- .output (block , GTEMaterials .AwakenedDraconium , 3 )
110- .chancedOutput (dust , Materials .DarkAsh , 2500 , 0 )
111- .explosivesType (new ItemStack (MetaBlocks .POWDERBARREL , 8 ))
112- .buildAndRegister ();
113- RecipeMaps .IMPLOSION_RECIPES .recipeBuilder ()
114- .input (DEFeatures .dragonHeart , 1 )
115- .input (block , GTEMaterials .Draconium , 4 )
116- .output (block , GTEMaterials .AwakenedDraconium , 3 )
117- .chancedOutput (dust , Materials .DarkAsh , 2500 , 0 )
118- .explosivesAmount (4 )
119- .buildAndRegister ();
120- RecipeMaps .IMPLOSION_RECIPES .recipeBuilder ()
121- .input (DEFeatures .dragonHeart , 1 )
122- .input (block , GTEMaterials .Draconium , 4 )
123- .output (block , GTEMaterials .AwakenedDraconium , 3 )
124- .chancedOutput (dust , Materials .DarkAsh , 2500 , 0 )
125- .explosivesType (MetaItems .DYNAMITE .getStackForm (2 ))
126- .buildAndRegister ();
127- RecipeMaps .IMPLOSION_RECIPES .recipeBuilder ()
128- .input (DEFeatures .dragonHeart , 1 )
129- .input (block , GTEMaterials .Draconium , 4 )
130- .output (block , GTEMaterials .AwakenedDraconium , 3 )
131- .chancedOutput (dust , Materials .DarkAsh , 2500 , 0 )
132- .explosivesType (new ItemStack (MetaBlocks .ITNT ))
133- .buildAndRegister ();
113+ .output (block , GTEMaterials .AwakenedDraconium , 3 ));
134114 }
135115
136116 public static void remove () {
0 commit comments