Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
added recipes for mining pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Aug 7, 2023
1 parent dba340d commit f708c6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ public static void loadRecipes(Consumer<FinishedRecipe> output, AntimatterRecipe
.put('P', PLATE.get(Wood))
.build(),
" R ", "PPP", " R ");
provider.addItemRecipe(output, "mining_pipes", "has_hammer", provider.hasSafeItem(HAMMER.getTag()), MINING_PIPE_THIN,
of('H', HAMMER.getTag(), 'P', FLUID_PIPE_STEEL.getBlockItem(PipeSize.SMALL), 'F', FILE.getTag()), "HPF");
}

private static void tieredItems(Consumer<FinishedRecipe> output, AntimatterRecipeProvider provider){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
import muramasa.antimatter.pipe.PipeSize;
import muramasa.antimatter.pipe.types.Wire;
import muramasa.antimatter.recipe.ingredient.RecipeIngredient;
import muramasa.gregtech.data.GregTechData;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;

import static muramasa.gregtech.data.GregTechData.FLUID_PIPE_STEEL;
import static muramasa.gregtech.data.RecipeMaps.WIRE_MILLING;
import static muramasa.antimatter.data.AntimatterMaterialTypes.*;

Expand All @@ -18,9 +20,10 @@ public static void init() {
RecipeIngredient ing = t.getMaterial().has(INGOT) ? INGOT.getMaterialIngredient(t.getMaterial(),1) : DUST.getMaterialIngredient(t.getMaterial(),1);
WIRE_MILLING.RB().ii(ing).io(stack).add(t.getMaterial().getId() + "_wire", 100,4);
if (WIRE_FINE.allowItemGen(t.getMaterial())) {
WIRE_MILLING.RB().ii(RecipeIngredient.of(wireItem,1)).io(WIRE_FINE.get(t.getMaterial(),4)).add(t.getMaterial().getId() + "_wire_fine", 200,8);
WIRE_MILLING.RB().ii(wireItem).io(WIRE_FINE.get(t.getMaterial(),4)).add(t.getMaterial().getId() + "_wire_fine", 200,8);
}
});
WIRE_MILLING.RB().ii(FLUID_PIPE_STEEL.getBlockItem(PipeSize.TINY)).io(GregTechData.MINING_PIPE_THIN.asItem()).add("mining_pipe", 200, 16);

}
}

0 comments on commit f708c6a

Please sign in to comment.