package carpentersblocks.util.registry;

import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.Configuration;
import carpentersblocks.item.ItemCarpentersBed;
import carpentersblocks.item.ItemCarpentersChisel;
import carpentersblocks.item.ItemCarpentersDoor;
import carpentersblocks.item.ItemCarpentersHammer;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;

public class ItemRegistry {

    public static Item itemCarpentersHammer;
    public static Item itemCarpentersChisel;
    public static Item itemCarpentersDoor;
    public static Item itemCarpentersBed;

    public static int itemCarpentersHammerID;
    public static int itemCarpentersChiselID;
    public static int itemCarpentersDoorID;
    public static int itemCarpentersBedID;

    public static boolean enableHammer = true;
    public static boolean enableChisel = true;
    public static int itemCarpentersToolsUses = 300;
    public static boolean itemCarpentersToolsDamageable = true;

    /**
     * Registers item IDs.
     */
    public static void initItems(FMLPreInitializationEvent event, Configuration config)
    {
        int baseItemID = 5401;

        enableHammer                  = config.get("tools",            "Enable Hammer",                  enableHammer).getBoolean(enableHammer);
        enableChisel                  = config.get("tools",            "Enable Chisel",                  enableChisel).getBoolean(enableChisel);
        itemCarpentersToolsUses       = config.get("tools",       "Vanilla Tools Uses",       itemCarpentersToolsUses).getInt(itemCarpentersToolsUses);
        itemCarpentersToolsDamageable = config.get("tools", "Vanilla Tools Damageable", itemCarpentersToolsDamageable).getBoolean(itemCarpentersToolsDamageable);

        itemCarpentersHammerID        = config.getItem("Hammer", baseItemID++).getInt(baseItemID);
        itemCarpentersChiselID        = config.getItem("Chisel", baseItemID++).getInt(baseItemID);
        itemCarpentersDoorID          = config.getItem(  "Door", baseItemID++).getInt(baseItemID);
        itemCarpentersBedID           = config.getItem(   "Bed", baseItemID++).getInt(baseItemID);
    }

    /**
     * Registers items.
     */
    public static void registerItems()
    {
        if (enableHammer) {
            itemCarpentersHammer = new ItemCarpentersHammer(itemCarpentersHammerID - 256);
            GameRegistry.registerItem(itemCarpentersHammer, "itemCarpentersHammer");
            GameRegistry.addRecipe(new ItemStack(itemCarpentersHammer, 1), new Object[] { "XX ", " YX", " Y ", 'X', Item.ingotIron, 'Y', BlockRegistry.blockCarpentersBlock });
        }

        if (enableChisel) {
            itemCarpentersChisel = new ItemCarpentersChisel(itemCarpentersChiselID - 256);
            GameRegistry.registerItem(itemCarpentersChisel, "itemCarpentersChisel");
            GameRegistry.addRecipe(new ItemStack(itemCarpentersChisel, 1), new Object[] { "X", "Y", 'X', Item.ingotIron, 'Y', BlockRegistry.blockCarpentersBlock });
        }

        if (BlockRegistry.enableDoor) {
            itemCarpentersDoor = new ItemCarpentersDoor(itemCarpentersDoorID - 256);
            GameRegistry.registerItem(itemCarpentersDoor, "itemCarpentersDoor");
            GameRegistry.addRecipe(new ItemStack(itemCarpentersDoor, BlockRegistry.recipeQuantityDoor), new Object[] {"XX", "XX", "XX", 'X', BlockRegistry.blockCarpentersBlock});
        }

        if (BlockRegistry.enableBed) {
            itemCarpentersBed = new ItemCarpentersBed(itemCarpentersBedID - 256);
            GameRegistry.registerItem(itemCarpentersBed, "itemCarpentersBed");
            GameRegistry.addRecipe(new ItemStack(itemCarpentersBed, BlockRegistry.recipeQuantityBed), new Object[] {"XXX", "YYY", 'X', Block.cloth, 'Y', BlockRegistry.blockCarpentersBlock});
        }
    }

}

@@ -1026,9 +1026,9 @@
 s = 
-3
+4
 00;%0A

Increase default tool durability.