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

Commit

Permalink
Make Stencils reusable
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Aug 24, 2014
1 parent 6de3ed2 commit 0278899
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Expand Up @@ -70,6 +70,7 @@ public class Config {
public static boolean easyToolBuilding;
public static boolean easyAdvancedToolBuilding;

public static boolean allowStencilReuse;
public static boolean allowPartReuse;
public static boolean removeStoneTorchRecipe;
public static boolean moreExpensiveSilkyCloth;
Expand Down Expand Up @@ -196,6 +197,7 @@ public void sync()
// ticon tweaks
disableStoneTools = configfile.getBoolean("disableStoneTools", CATEGORY_Tweaks, true, "Stone Tools can only be used to create casts, but no tools");
castsBurnMaterial = configfile.getBoolean("castingBurnsMaterial", CATEGORY_Tweaks, true, "Creating a metal cast burns up the material that was used to create it");
allowStencilReuse = configfile.getBoolean("allowStencilReuse", CATEGORY_Tweaks, false, "Allows to use stencils as blank patterns in the stencil table");
allowPartReuse = configfile.getBoolean("allowPartReuse", CATEGORY_Tweaks, true, "Allows toolparts to be used as material in the Part Builder. Like, turn a Pick head into a Shovel head.!");
allowStringBinding= configfile.getBoolean("allowStringBinding", CATEGORY_Tweaks, true, "Allows you to use a piece of string as a binding");

Expand Down
Expand Up @@ -50,12 +50,19 @@ public void postInit(FMLPostInitializationEvent event)

// add string bindings. yay.
if(Config.allowStringBinding) {
Log.info("Register String binding");
TConstructRegistry.addToolMaterial(40, "String", 0, 33, 1, 0, 0.01F, 0, 0f, EnumChatFormatting.WHITE.toString(), "");
TConstructClientRegistry.addMaterialRenderMapping(40, "tinker", "paper", true);
MinecraftForge.EVENT_BUS.register(new StringBindingHandler());
}


if(Config.allowStencilReuse) {
Log.info("Make stencils reusable");
for (ItemStack stack : StencilBuilder.getStencils())
StencilBuilder.registerBlankStencil(stack);
}

if(Config.castsBurnMaterial) {
Log.info("Burn casting materials to a crisp");
MinecraftForge.EVENT_BUS.register(new CastHandler());
Expand Down

0 comments on commit 0278899

Please sign in to comment.