package vorquel.mod.similsaxtranstructors;

import net.minecraftforge.fml.common.FMLCommonHandler;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;

import static vorquel.mod.similsaxtranstructors.Config.showOverlay;

@Mod(modid = SimilsaxTranstructors.MOD_ID, name = "Similsax Transtructors", version = "@MOD_VERSION@")
public class SimilsaxTranstructors {

    public static final String MOD_ID = "SimilsaxTranstructors";
    public static final ItemSimilsaxTranstructor itemSimilsaxTranstructor = new ItemSimilsaxTranstructor();

    @SidedProxy(clientSide = "vorquel.mod.similsaxtranstructors.ClientProxy", serverSide = "vorquel.mod.similsaxtranstructors.Proxy")
    private static Proxy proxy;

    @Mod.EventHandler
    public void preInit(FMLPreInitializationEvent event) {
        Config.init(event.getSuggestedConfigurationFile());
        ServerConfig.init();
        GameRegistry.registerItem(itemSimilsaxTranstructor, "similsaxTranstructor");
    }

    @Mod.EventHandler
    public void init(FMLInitializationEvent event) {
        proxy.registerItemModel();
        if(showOverlay) proxy.registerBlockOverlay();
        FMLCommonHandler.instance().bus().register(new ServerConfig());
        GameRegistry.addRecipe(new ItemStack(itemSimilsaxTranstructor, 1, 0),
                "x x",
                "xox",
                " / ",
                'x', Items.iron_ingot,
                'o', Items.ender_pearl,
                '/', Items.stick);
        GameRegistry.addRecipe(new ItemStack(itemSimilsaxTranstructor, 1, ItemSimilsaxTranstructor.advancedThreshold),
                "o o",
                "oxo",
                " x ",
                'x', Items.diamond,
                'o', Items.ender_pearl);
    }
}

@@ -312,32 +312,99 @@
 alizationEvent;%0A
+import net.minecraftforge.fml.common.event.FMLServerStartingEvent;%0A
 import net.minec
@@ -2098,11 +2098,379 @@
 );%0A    %7D
+%0A%0A    @Mod.EventHandler%0A    public void serverStarting(FMLServerStartingEvent event) %7B%0A        ItemSimilsaxTranstructor item = SimilsaxTranstructors.itemSimilsaxTranstructor;%0A        item.basicUses = Config.basicUses;%0A        item.advancedUses = Config.advancedUses;%0A        item.basicRange = Config.basicRange;%0A        item.advancedRange = Config.advancedRange;%0A    %7D
 %0A%7D%0A

Patch #3