Skip to content

Commit

Permalink
added recipes for red alloy wires
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Apr 4, 2024
1 parent a0efa39 commit ace63dd
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;

Expand Down Expand Up @@ -61,6 +63,13 @@ public static void loadRecipes(Consumer<FinishedRecipe> 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<PipeSize, Item> wires, PipeSize from, PipeSize to, Consumer<FinishedRecipe> output, AntimatterRecipeProvider provider) {
Expand Down

0 comments on commit ace63dd

Please sign in to comment.