Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
30 changes: 30 additions & 0 deletions src/main/java/com/dreammaster/recipes/RecipeRemover.java
Original file line number Diff line number Diff line change
Expand Up @@ -3008,6 +3008,36 @@ public static void run() {
removeRecipeShapelessDelayed(
getModItem(BiomesOPlenty.ID, "misc", 1, 6, missing),
getModItem(BiomesOPlenty.ID, "plants", 1, 7, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "sacredoakFence", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "cherryFence", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "darkFence", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "firFence", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "etherealFence", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "magicFence", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "mangroveFence", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "palmFence", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "redwoodFence", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "willowFence", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "bamboothatchingFence", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "pineFence", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "hell_barkFence", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "jacarandaFence", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "mahoganyFence", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "sacredoakFenceGate", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "cherryFenceGate", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "darkFenceGate", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "firFenceGate", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "etherealFenceGate", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "magicFenceGate", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "mangroveFenceGate", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "palmFenceGate", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "redwoodFenceGate", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "willowFenceGate", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "bamboothatchingFenceGate", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "pineFenceGate", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "hell_barkFenceGate", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "jacarandaFenceGate", 1, 0, missing));
removeRecipeByOutputDelayed(getModItem(BiomesOPlenty.ID, "mahoganyFenceGate", 1, 0, missing));
removeRecipeShapelessDelayed(GTOreDictUnificator.get(OrePrefixes.gem, Materials.Ruby, 1L));
removeRecipeShapelessDelayed(GTOreDictUnificator.get(OrePrefixes.gem, Materials.Sapphire, 1L));
removeRecipeShapelessDelayed(getModItem(Minecraft.ID, "dye", 1, 4, missing));
Expand Down
94 changes: 94 additions & 0 deletions src/main/java/com/dreammaster/scripts/ScriptBiomesOPlenty.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import static gregtech.api.enums.Mods.Chisel;
import static gregtech.api.enums.Mods.Forestry;
import static gregtech.api.enums.Mods.HardcoreEnderExpansion;
import static gregtech.api.enums.Mods.HodgePodge;
import static gregtech.api.enums.Mods.IguanaTweaksTinkerConstruct;
import static gregtech.api.enums.Mods.Minecraft;
import static gregtech.api.enums.Mods.PamsHarvestCraft;
Expand Down Expand Up @@ -36,6 +37,7 @@
import java.util.Arrays;
import java.util.List;

import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.FluidRegistry;

import com.dreammaster.chisel.ChiselHelper;
Expand Down Expand Up @@ -66,6 +68,7 @@ public List<String> getDependencies() {
Chisel.ID,
Forestry.ID,
HardcoreEnderExpansion.ID,
HodgePodge.ID,
IguanaTweaksTinkerConstruct.ID,
PamsHarvestCraft.ID,
Railcraft.ID,
Expand Down Expand Up @@ -550,5 +553,96 @@ public void loadRecipes() {
"tanzanite",
GTOreDictUnificator.get(OrePrefixes.block, Materials.Tanzanite, 1L));
ChiselHelper.addVariationFromStack("tanzanite", getModItem(BiomesOPlenty.ID, "gemOre", 1, 9, missing));

// Fence and Fence Gate recipes:

enum WoodTypes{sacredoak,cherry,dark,fir,ethereal,magic,mangrove,palm,redwood,willow,bamboothatching,pine,hell_bark,jacaranda,mahogany}

for (WoodTypes woodType : WoodTypes.values()) {
ItemStack plank = getModItem(BiomesOPlenty.ID, "planks", 1, woodType.ordinal());

// Fences

addShapedRecipe(
getModItem(BiomesOPlenty.ID, woodType.name() + "Fence", 1, 0, missing),
"stickWood",
plank,
"stickWood",
"stickWood",
plank,
"stickWood",
"stickWood",
plank,
"stickWood");

addShapedRecipe(
getModItem(BiomesOPlenty.ID, woodType.name() + "Fence", 2, 0, missing),
"screwIron",
"craftingToolScrewdriver",
"screwIron",
"stickWood",
plank,
"stickWood",
"stickWood",
plank,
"stickWood");

addShapedRecipe(
getModItem(BiomesOPlenty.ID, woodType.name() + "Fence", 4, 0, missing),
"screwSteel",
"craftingToolScrewdriver",
"screwSteel",
"stickWood",
plank,
"stickWood",
"stickWood",
plank,
"stickWood");

// Fence Gates

addShapedRecipe(
getModItem(BiomesOPlenty.ID, woodType.name() + "FenceGate", 1, 0, missing),
getModItem(Minecraft.ID, "flint", 1, 0, missing),
null,
getModItem(Minecraft.ID, "flint", 1, 0, missing),
plank,
"stickWood",
plank,
plank,
"stickWood",
plank);

addShapedRecipe(
getModItem(BiomesOPlenty.ID, woodType.name() + "FenceGate", 2, 0, missing),
"screwIron",
"craftingToolScrewdriver",
"screwIron",
plank,
"stickWood",
plank,
plank,
"stickWood",
plank);

addShapedRecipe(
getModItem(BiomesOPlenty.ID, woodType.name() + "FenceGate", 4, 0, missing),
"screwSteel",
"craftingToolScrewdriver",
"screwSteel",
plank,
"stickWood",
plank,
plank,
"stickWood",
plank);

GTValues.RA.stdBuilder()
.itemInputs(
getModItem(Minecraft.ID, "stick", 2, 0, missing),
getModItem(BiomesOPlenty.ID, "planks", 2, woodType.ordinal()))
.itemOutputs(getModItem(BiomesOPlenty.ID, woodType.name() + "FenceGate", 1, 0, missing))
.duration(15 * SECONDS).eut(8).addTo(assemblerRecipes);
}
}
}