Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mirrored recipes #313

Merged
merged 1 commit into from
Dec 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -122,21 +122,21 @@ public static void processSimpleToolHead(OrePrefix toolPrefix, Material material

public static void processStick(OrePrefix stickPrefix, Material material, ToolProperty property) {
if (material.hasProperty(PropertyKey.INGOT)) {
ModHandler.addShapedRecipe(String.format("plunger_%s", material),
ModHandler.addMirroredShapedRecipe(String.format("plunger_%s", material),
MetaItems.PLUNGER.getStackForm(material),
"xRR", " SR", "S f",
'S', new UnificationEntry(OrePrefix.stick, material),
'R', new UnificationEntry(OrePrefix.plate, Materials.Rubber));
}

if (material.hasFlag(GENERATE_ROD)) {
ModHandler.addShapedRecipe(String.format("screwdriver_%s", material.toString()),
ModHandler.addMirroredShapedRecipe(String.format("screwdriver_%s", material.toString()),
MetaItems.SCREWDRIVER.getStackForm(material),
" fS", " Sh", "W ",
'S', new UnificationEntry(OrePrefix.stick, material),
'W', new UnificationEntry(OrePrefix.stick, Materials.Wood));

ModHandler.addShapedRecipe(String.format("crowbar_%s", material),
ModHandler.addMirroredShapedRecipe(String.format("crowbar_%s", material),
MetaItems.CROWBAR.getStackForm(material),
"hDS", "DSD", "SDf",
'S', new UnificationEntry(OrePrefix.stick, material),
Expand Down Expand Up @@ -177,7 +177,7 @@ public static void processStick(OrePrefix stickPrefix, Material material, ToolPr
}

public static void processPlate(OrePrefix platePrefix, Material material, ToolProperty property) {
ModHandler.addShapedRecipe(String.format("mining_hammer_%s", material.toString()),
ModHandler.addMirroredShapedRecipe(String.format("mining_hammer_%s", material.toString()),
MetaItems.MINING_HAMMER.getStackForm(material),
"PP ", "PPR", "PP ",
'P', new UnificationEntry(OrePrefix.plate, material),
Expand Down Expand Up @@ -364,7 +364,7 @@ public static void processHammerHead(OrePrefix toolPrefix, Material material, To
.EUt(8 * getVoltageMultiplier(material))
.buildAndRegister();
}
ModHandler.addShapedRecipe(String.format("hammer_%s", material.toString()),
ModHandler.addMirroredShapedRecipe(String.format("hammer_%s", material.toString()),
MetaItems.HARD_HAMMER.getStackForm(material),
"XX ", "XXS", "XX ",
'X', new UnificationEntry(OrePrefix.ingot, material),
Expand Down Expand Up @@ -469,13 +469,13 @@ private static void registerSoftHammerRecipes() {

if (ModHandler.isMaterialWood(material)) {
MetaItems.SOFT_HAMMER.setToolData(itemStack, material, 48, 1, 4.0f, 1.0f);
ModHandler.addShapedRecipe(String.format("soft_hammer_%s", material.toString()), itemStack,
ModHandler.addMirroredShapedRecipe(String.format("soft_hammer_%s", material.toString()), itemStack,
"XX ", "XXS", "XX ",
'X', new UnificationEntry(OrePrefix.plank, material),
'S', new UnificationEntry(OrePrefix.stick, Materials.Wood));
} else {
MetaItems.SOFT_HAMMER.setToolData(itemStack, material, 128 * (1 << i), 1, 4.0f, 1.0f);
ModHandler.addShapedRecipe(String.format("soft_hammer_%s", material.toString()), itemStack,
ModHandler.addMirroredShapedRecipe(String.format("soft_hammer_%s", material.toString()), itemStack,
"XX ", "XXS", "XX ",
'X', new UnificationEntry(OrePrefix.ingot, material),
'S', new UnificationEntry(OrePrefix.stick, Materials.Wood));
Expand Down