Skip to content
This repository has been archived by the owner on Mar 10, 2021. It is now read-only.

Commit

Permalink
Add more expensive silky cloth and jewel config
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Aug 7, 2014
1 parent 33714fc commit c5e2fe2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
Expand Up @@ -56,10 +56,12 @@ public class Config {
public static boolean addFlintRecipe;
public static int recipeGravelPerFlint;
public static boolean disableStoneTools;
public static boolean removeStoneTorchRecipe;
public static boolean castsBurnMaterial;
public static boolean easyToolRepair;
public static boolean allowPartReuse;
public static boolean removeStoneTorchRecipe;
public static boolean moreExpensiveSilkyCloth;
public static boolean moreExpensiveSilkyJewel;

// debug
public static boolean showDebugXP;
Expand Down Expand Up @@ -160,6 +162,8 @@ public void sync()

// stuff
removeStoneTorchRecipe = configfile.getBoolean("removeStoneTorchRecipe", CATEGORY_Tweaks, false, "Removes the recipe for Tinker's Construct's stone torch");
moreExpensiveSilkyCloth = configfile.getBoolean("moreExpensiveSilkyCloth", CATEGORY_Tweaks, true, "Silky Cloth needs gold ingots, instead of nuggets");
moreExpensiveSilkyJewel = configfile.getBoolean("moreExpensiveSilkyJewel", CATEGORY_Tweaks, false, "Silky Jewel needs an emerald block, instead of one emerald");


/** Debug **/
Expand Down
Expand Up @@ -17,12 +17,14 @@
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.oredict.ShapedOreRecipe;
import tconstruct.library.TConstructRegistry;
import tconstruct.library.crafting.CastingRecipe;
import tconstruct.library.crafting.PatternBuilder;
import tconstruct.library.crafting.ToolBuilder;
import tconstruct.library.util.IPattern;
import tconstruct.smeltery.TinkerSmeltery;
import tconstruct.tools.TinkerTools;
import tconstruct.world.TinkerWorld;

import java.lang.reflect.Field;
Expand Down Expand Up @@ -65,6 +67,22 @@ public void postInit(FMLPostInitializationEvent event)
Log.info("Removing stone torch recipe");
RecipeRemover.removeAnyRecipeFor(Item.getItemFromBlock(TinkerWorld.stoneTorch));
}

// silky jewel nerfs
if(Config.moreExpensiveSilkyCloth)
{
Log.info("Making Silky Cloth more expensive");
RecipeRemover.removeAnyRecipe(new ItemStack(TinkerTools.materials, 1, 25));
String[] patSurround = { "###", "#m#", "###" };
GameRegistry.addRecipe(new ItemStack(TinkerTools.materials, 1, 25), patSurround, 'm', new ItemStack(TinkerTools.materials, 1, 14), '#', new ItemStack(Items.string));
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(TinkerTools.materials, 1, 25), patSurround, 'm', "ingotGold", '#', new ItemStack(Items.string)));
}
if(Config.moreExpensiveSilkyJewel)
{
Log.info("Making Silky Jewel more expensive");
RecipeRemover.removeAnyRecipe(new ItemStack(TinkerTools.materials, 1, 26));
GameRegistry.addRecipe(new ItemStack(TinkerTools.materials, 1, 26), " c ", "cec", " c ", 'c', new ItemStack(TinkerTools.materials, 1, 25), 'e', new ItemStack(Item.getItemFromBlock(Blocks.emerald_block)));
}
}

private void flintTweaks()
Expand Down

0 comments on commit c5e2fe2

Please sign in to comment.