From ace63dd126c4ac4c91c2d6d545c4c6343a6fe0ae Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Wed, 3 Apr 2024 23:50:46 -0400 Subject: [PATCH] added recipes for red alloy wires --- .../gt4r/loader/crafting/ToolCraftingTableRecipes.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common/src/main/java/trinsdar/gt4r/loader/crafting/ToolCraftingTableRecipes.java b/common/src/main/java/trinsdar/gt4r/loader/crafting/ToolCraftingTableRecipes.java index c4526c20..b449845e 100644 --- a/common/src/main/java/trinsdar/gt4r/loader/crafting/ToolCraftingTableRecipes.java +++ b/common/src/main/java/trinsdar/gt4r/loader/crafting/ToolCraftingTableRecipes.java @@ -2,6 +2,7 @@ import com.google.common.collect.ImmutableSet; import com.mojang.datafixers.util.Pair; +import io.github.gregtechintergalactical.gtcore.block.RedstoneWire; import muramasa.antimatter.AntimatterAPI; import muramasa.antimatter.AntimatterConfig; import muramasa.antimatter.data.AntimatterDefaultTools; @@ -20,6 +21,7 @@ import java.util.function.Consumer; import java.util.stream.Collectors; +import static muramasa.antimatter.data.AntimatterMaterialTypes.PLATE; import static muramasa.antimatter.pipe.PipeSize.*; import static trinsdar.gt4r.data.Materials.Rubber; @@ -61,6 +63,13 @@ public static void loadRecipes(Consumer output, AntimatterRecipe AntimatterDefaultTools.WIRE_CUTTER.getTag(), AntimatterMaterialTypes.PLATE.getMaterialTag(wire.getMaterial())); } }); + AntimatterAPI.all(RedstoneWire.class, wire -> { + if (wire.getMaterial().has(PLATE)) { + provider.shapeless(output, wire.getMaterial().getId() + "_plate_to_wire","wire", + new ItemStack(wire.getBlockItem(VTINY), wireAmount), + AntimatterDefaultTools.WIRE_CUTTER.getTag(), PLATE.get(wire.getMaterial())); + } + }); } private static void twoToOne(Map wires, PipeSize from, PipeSize to, Consumer output, AntimatterRecipeProvider provider) {