Skip to content

Commit 213ada6

Browse files
committed
[add] gte2 patch
1 parent e1ab805 commit 213ada6

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

src/main/java/gregtech/common/ConfigHolder.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ public static class RecipeOptions {
143143
@Config.Comment({"Whether to nerf Wood crafting to 2 Planks from 1 Log, and 2 Sticks from 2 Planks.", "Default: false"})
144144
public boolean nerfWoodCrafting = false;
145145

146+
@Config.Comment({"Whether to halve the number of wood and sticks crafted when nerfWoodCrafting is enabled.", "Default: false"})
147+
public boolean moreNerfWoodCrafting = false;
148+
146149
@Config.Comment({"Whether to nerf the Paper crafting recipe.", "Default: true"})
147150
public boolean nerfPaperCrafting = true;
148151

src/main/java/gregtech/loaders/recipe/VanillaOverrideRecipes.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ private static void woodRecipes() {
5757
ModHandler.addShapedRecipe("stick_normal", new ItemStack(Items.STICK, 2), "P", "P", 'P', new UnificationEntry(OrePrefix.plank, Materials.Wood));
5858
}
5959

60+
if (ConfigHolder.recipes.moreNerfWoodCrafting) {
61+
ModHandler.removeRecipeByName(new ResourceLocation("minecraft:stick"));
62+
ModHandler.addShapedRecipe("stick_saw", new ItemStack(Items.STICK, 2), "s", "P", "P", 'P', new UnificationEntry(OrePrefix.plank, Materials.Wood));
63+
ModHandler.addShapedRecipe("stick_normal", new ItemStack(Items.STICK, 1), "P", "P", 'P', new UnificationEntry(OrePrefix.plank, Materials.Wood));
64+
}
65+
6066
if (ConfigHolder.recipes.nerfPaperCrafting) {
6167
ModHandler.removeRecipeByName(new ResourceLocation("minecraft:paper"));
6268
ModHandler.removeRecipeByName(new ResourceLocation("minecraft:sugar"));

src/main/java/gregtech/loaders/recipe/WoodMachineRecipes.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ private static void processLogOreDictionary() {
5050
//remove the old recipe
5151
ModHandler.removeRecipeByName(outputRecipe.getRegistryName());
5252

53+
if (ConfigHolder.recipes.moreNerfWoodCrafting) {
54+
originalOutput = 2;
55+
}
56+
5357
// new wood recipes
5458
//noinspection ConstantConditions
5559
ModHandler.addShapelessRecipe(outputRecipe.getRegistryName().toString(),

0 commit comments

Comments
 (0)