예제 #1
0
  @PreInit
  public void postInit(FMLPreInitializationEvent event) {

    // Registers(Kayitlar)
    MinecraftForge.EVENT_BUS.register(new SoundHandler());

    RenderingRegistry.registerEntityRenderingHandler(
        ghost.class, new render(new ghostmodel(), 0.3F));
    RenderingRegistry.registerEntityRenderingHandler(
        Badghost.class, new Badghostrender(new ghostmodel(), 0.3F));
    ClientRegistry.bindTileEntitySpecialRenderer(
        TileEntityCopperWire.class, new RenderCopperWire());
    ClientRegistry.bindTileEntitySpecialRenderer(
        TileEntitySolarGenerator.class, new RenderSolarPanel());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBatteryBox.class, new RenderBattery());
    ClientRegistry.bindTileEntitySpecialRenderer(
        TileEntityCoalGenerator.class, new RenderGenerator());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityEF.class, new RenderEFurnace());

    if (MECLiquid.blockID + 1 != MECLiquidStill.blockID) {
      throw new RuntimeException("Liquid Still id must be Liquid Moving id + 1");
    }
    dirtBucket = (MECBucketHandler) new MECBucketHandler();
    MinecraftForge.EVENT_BUS.register(new MECBucketHandler());
    ModLoader.registerEntityID(Badghost.class, "Banion", 8, x, y);
    ModLoader.registerEntityID(ghost.class, "Mip", 7, x, y);
    ModLoader.getUniqueEntityId();
    ModLoader.addSpawn(ghost.class, 10, 4, 7, EnumCreatureType.ambient, MarbleBiome);
    ModLoader.addSpawn(Badghost.class, 14, 4, 7, EnumCreatureType.ambient, MarbleBiome);

    LanguageRegistry.instance().addStringLocalization("entity.Mip.name", "en_US", "Mip");
    LanguageRegistry.instance().addStringLocalization("entity.Banion.name", "en_US", "Banion");
    IronPlate =
        new IronPlate(ItemID + 5)
            .setMaxStackSize(64)
            .setCreativeTab(MEC)
            .setUnlocalizedName("plateIron");
    GoldPlate =
        new IronPlate(ItemID + 6)
            .setMaxStackSize(64)
            .setCreativeTab(MEC)
            .setUnlocalizedName("plateGold");
    CopperPlate =
        new IronPlate(ItemID + 7)
            .setMaxStackSize(64)
            .setCreativeTab(MEC)
            .setUnlocalizedName("plateCopper");
    SteelPlate =
        new IronPlate(ItemID + 8)
            .setMaxStackSize(64)
            .setCreativeTab(MEC)
            .setUnlocalizedName("plateSteel");
    CopperIngot =
        new ItemMEC(ItemID + 9)
            .setMaxStackSize(64)
            .setCreativeTab(MEC)
            .setUnlocalizedName("ingotCopper");
    SteelIngot =
        new ItemMEC(ItemID + 10)
            .setMaxStackSize(64)
            .setCreativeTab(MEC)
            .setUnlocalizedName("ingotSteel");
    Heart =
        new Heart(ItemID, 10, 12, true)
            .setMaxStackSize(64)
            .setCreativeTab(MEC)
            .setUnlocalizedName("heart");
    GHeart =
        new GHeart(ItemID + 1, -10, 12, true)
            .setMaxStackSize(64)
            .setCreativeTab(MEC)
            .setUnlocalizedName("gheart");
    MECBucket =
        new MECBucket(ItemID + 2)
            .setCreativeTab(MEC)
            .setUnlocalizedName("mbucket")
            .setContainerItem(Item.bucketEmpty);
    MECWrench =
        new MECWrench(ItemID + 17)
            .setMaxStackSize(64)
            .setCreativeTab(MEC)
            .setUnlocalizedName("wrench");
    Batery = new ItemBattery("battery", ItemID + 3).setMaxStackSize(1);
    IBatery = new ItemInfiniteBattery("infinitebattery", ItemID + 4).setMaxDamage(1);
    CPHelmet =
        (ItemArmor)
            (new ItemArmorCP(ItemID + 11, CPA, proxy.addArmor(CPA.name()), 0))
                .setUnlocalizedName("cp_helmet")
                .func_111206_d("cp_helmet");
    CPChestPlate =
        (ItemArmor)
            (new ItemArmorCP(ItemID + 12, CPA, proxy.addArmor(CPA.name()), 1))
                .setUnlocalizedName("cp_chestplate")
                .func_111206_d("cp_chestplate");
    // CPChestPlateWW = (ItemArmor)(new ItemArmorCP(ItemID + 15, CPA, proxy.addArmor(CPA.name()),
    // 1)).setUnlocalizedName("cp_chestplate").func_111206_d("cp_chestplate");
    CPLeggings =
        (ItemArmor)
            (new ItemArmorCP(ItemID + 13, CPA, proxy.addArmor(CPA.name()), 2))
                .setUnlocalizedName("cp_leggings")
                .func_111206_d("cp_leggings");
    CPBoots =
        (ItemArmor)
            (new ItemArmorCP(ItemID + 14, CPA, proxy.addArmor(CPA.name()), 3))
                .setUnlocalizedName("cp_boots")
                .func_111206_d("cp_boots");
    CPSword = new ItemSwordCP(ItemID + 16, CP).setUnlocalizedName("cp_sword");
    CSoulPart = new ItemMEC(ItemID + 18).setUnlocalizedName("csp");
    PSoulPart = new ItemMEC(ItemID + 19).setUnlocalizedName("psp");
    CWSoulPart = new ItemMEC(ItemID + 20).setUnlocalizedName("cwsp");
    ESoulPart = new ItemMEC(ItemID + 21).setUnlocalizedName("esp");
    ZSoulPart = new ItemMEC(ItemID + 22).setUnlocalizedName("zsp");
    CRSoulPart = new ItemMEC(ItemID + 23).setUnlocalizedName("crsp");
    SSoulPart = new ItemMEC(ItemID + 24).setUnlocalizedName("ssp");
    HSoulPart = new ItemMEC(ItemID + 25).setUnlocalizedName("hsp");
    GameRegistry.registerItem(CSoulPart, "Chicken Soul Part");
    GameRegistry.registerItem(PSoulPart, "Pig Soul Part");
    GameRegistry.registerItem(CWSoulPart, "Cow Soul Part");
    GameRegistry.registerItem(ESoulPart, "Enderman Soul Part");
    GameRegistry.registerItem(ZSoulPart, "Zombie Soul Part");
    GameRegistry.registerItem(CRSoulPart, "Creeper Soul Part");
    GameRegistry.registerItem(SSoulPart, "Spider Soul Part");
    GameRegistry.registerItem(HSoulPart, "Horse Soul Part");
    GameRegistry.registerItem(CPSword, "Corruption Sword");
    GameRegistry.registerItem(CPHelmet, "Corruption Helmet");
    GameRegistry.registerItem(CPChestPlate, "Corruption Chestplate");
    GameRegistry.registerItem(CPLeggings, "Corruption Leggings");
    GameRegistry.registerItem(CPBoots, "Corruption Boots");
    GameRegistry.registerItem(IronPlate, "Iron Plate");
    GameRegistry.registerItem(GoldPlate, "Gold Plate");
    GameRegistry.registerItem(CopperPlate, "Copper Plate");
    GameRegistry.registerItem(SteelPlate, "Steel Plate");
    GameRegistry.registerItem(CopperIngot, "Copper Ingot");
    GameRegistry.registerItem(SteelIngot, "Steel Ingot");
    GameRegistry.registerItem(Heart, "Innocent Heart");
    GameRegistry.registerItem(GHeart, "Guilty Heart");
    GameRegistry.registerItem(MECWrench, "MEC Wrench");
    GameRegistry.registerItem(MECBucket, "Pressure Machine Fuel");
    GameRegistry.registerItem(Batery, "Battery");
    GameRegistry.registerItem(IBatery, "Infinite Battery");
    GameRegistry.registerPickupHandler(new PickupHandler());
    GameRegistry.registerCraftingHandler(new CraftingHandler());
    LanguageRegistry.addName(CSoulPart, "\u00A7c" + "Chicken Soul Part");
    LanguageRegistry.addName(PSoulPart, "\u00A7c" + "Pig Soul Part");
    LanguageRegistry.addName(CWSoulPart, "\u00A7c" + "Cow Soul Part");
    LanguageRegistry.addName(ESoulPart, "\u00A7c" + "Enderman Soul Part");
    LanguageRegistry.addName(ZSoulPart, "\u00A7c" + "Zombie Soul Part");
    LanguageRegistry.addName(CRSoulPart, "\u00A7c" + "Creeper Soul Part");
    LanguageRegistry.addName(SSoulPart, "\u00A7c" + "Spider Soul Part");
    LanguageRegistry.addName(HSoulPart, "\u00A7c" + "Horse Soul Part");
    LanguageRegistry.addName(CPSword, "\u00A7e" + "Corruption Sword");
    LanguageRegistry.addName(CPHelmet, "\u00A7e" + "Corruption Helmet");
    LanguageRegistry.addName(CPChestPlate, "\u00A7e" + "Corruption Chestplate");
    LanguageRegistry.addName(CPLeggings, "\u00A7e" + "Corruption Leggings");
    LanguageRegistry.addName(CPBoots, "\u00A7e" + "Corruption Boots");
    LanguageRegistry.addName(IronPlate, "" + "Iron Plate");
    LanguageRegistry.addName(GoldPlate, "Gold Plate");
    LanguageRegistry.addName(CopperPlate, "Copper Plate");
    LanguageRegistry.addName(SteelPlate, "Steel Plate");
    LanguageRegistry.addName(CopperIngot, "Copper Ingot");
    LanguageRegistry.addName(SteelIngot, "Steel Ingot");
    LanguageRegistry.addName(Batery, "Battery");
    LanguageRegistry.addName(IBatery, "Infinite Battery");
    LanguageRegistry.instance().addStringLocalization("itemGroup.MEC", "en_US", "ME-Craft");
    LanguageRegistry.addName(Heart, "Innocent Heart");
    LanguageRegistry.addName(GHeart, "Guilty Heart");
    LanguageRegistry.addName(MECBucket, "Pressure Machine Fuel");
    LanguageRegistry.addName(MECWrench, "MEC Wrench");
    GameRegistry.registerBlock(blocksolar, "Solar Generator");
    GameRegistry.registerBlock(blockbat, "Battery Box");
    GameRegistry.registerBlock(CPSnad, "Corruption Sand");
    GameRegistry.registerBlock(CopperOre, "Copper Ore");
    GameRegistry.registerBlock(Mermer, "Marble");
    GameRegistry.registerBlock(KirikMermer, "Cobblemurble");
    GameRegistry.registerBlock(AMermer, "Light Blue Marble");
    GameRegistry.registerBlock(BMermer, "Light Gray Marble");
    GameRegistry.registerBlock(CMermer, "Lime Marble");
    GameRegistry.registerBlock(DMermer, "Magenta Marble");
    GameRegistry.registerBlock(EMermer, "Gray Marble");
    GameRegistry.registerBlock(FMermer, "Brown Marble");
    GameRegistry.registerBlock(GMermer, "Red Marble");
    GameRegistry.registerBlock(HMermer, "Blue Marble");
    GameRegistry.registerBlock(SMermer, "Fake Marble");
    GameRegistry.registerBlock(IMermer, "Purple Marble");
    GameRegistry.registerBlock(JMermer, "Pink Marble");
    GameRegistry.registerBlock(KMermer, "Yellow Marble");
    GameRegistry.registerBlock(LMermer, "Black Marble");
    GameRegistry.registerBlock(MMermer, "Cyan Marble");
    GameRegistry.registerBlock(NMermer, "Orange Marble");
    GameRegistry.registerBlock(OMermer, "Green Marble");
    GameRegistry.registerBlock(AMermerB, "Light Blue Marble Brick");
    GameRegistry.registerBlock(BMermerB, "Light Gray Marble Brick");
    GameRegistry.registerBlock(CMermerB, "Lime Marble Brick");
    GameRegistry.registerBlock(DMermerB, "Magenta Marble Brick");
    GameRegistry.registerBlock(EMermerB, "Gray Marble Brick");
    GameRegistry.registerBlock(FMermerB, "Brown Marble Brick");
    GameRegistry.registerBlock(GMermerB, "Red Marble Brick");
    GameRegistry.registerBlock(HMermerB, "Blue Marble Brick");
    GameRegistry.registerBlock(IMermerB, "Purple Marble Brick");
    GameRegistry.registerBlock(JMermerB, "Pink Marble Brick");
    GameRegistry.registerBlock(KMermerB, "Yellow Marble Brick");
    GameRegistry.registerBlock(LMermerB, "Black Marble Brick");
    GameRegistry.registerBlock(MMermerB, "Cyan Marble Brick");
    GameRegistry.registerBlock(NMermerB, "Orange Marble Brick");
    GameRegistry.registerBlock(OMermerB, "Green Marble Brick");
    GameRegistry.registerBlock(MermerB, "Marble Brick");
    GameRegistry.registerBlock(Deneme, "Pressure Machine");
    GameRegistry.registerBlock(DenemeB, "Pressure Machine Working");
    ClientRegistry.bindTileEntitySpecialRenderer(
        TileEntityCopperWire.class, new RenderCopperWire());
    ClientRegistry.bindTileEntitySpecialRenderer(
        TileEntitySolarGenerator.class, new RenderSolarPanel());

    GameRegistry.registerTileEntity(TileEntityCopperWire.class, "Copper Cable");
    GameRegistry.registerBlock(CopperCable, ItemBlockCopperWire.class, "");
    proxy.registerCopperWireTileEntity();
    proxy.registerSG();
    proxy.registerBB();
    GameRegistry.registerBlock(MECLiquid, "MECLiquid");
    GameRegistry.registerBlock(MECLiquidStill, "MECLiquidStill");
    GameRegistry.registerTileEntity(MECTileEntity.class, "MECTile");
    NetworkRegistry.instance().registerGuiHandler(this, guihandler);
    LanguageRegistry.addName(blockbat, "Battery Box");
    LanguageRegistry.addName(blocksolar, "Solar Generator");
    LanguageRegistry.addName(MECLiquid, "MECLiquid");
    LanguageRegistry.addName(MECLiquidStill, "MECLiquidStill");
    LanguageRegistry.addName(KirikMermer, "CobbleMurble");
    LanguageRegistry.addName(CPSnad, "Corruption Sand");
    LanguageRegistry.addName(CopperOre, "Copper Ore");
    LanguageRegistry.addName(Mermer, "Marble");
    LanguageRegistry.addName(Deneme, "Pressure Machine");
    LanguageRegistry.addName(DenemeB, "Pressure Machine");
    LanguageRegistry.addName(MermerB, "Marble Brick");
    LanguageRegistry.addName(SMermer, "Fake Marble");
    LanguageRegistry.addName(AMermer, "Light Blue Marble");
    LanguageRegistry.addName(BMermer, "Light Gray Marble");
    LanguageRegistry.addName(CMermer, "Lime Marble");
    LanguageRegistry.addName(DMermer, "Magenta Marble");
    LanguageRegistry.addName(EMermer, "Gray Marble");
    LanguageRegistry.addName(FMermer, "Brown Marble");
    LanguageRegistry.addName(GMermer, "Red Marble");
    LanguageRegistry.addName(HMermer, "Blue Marble");
    LanguageRegistry.addName(IMermer, "Purple Marble");
    LanguageRegistry.addName(JMermer, "Pink Marble");
    LanguageRegistry.addName(KMermer, "Yellow Marble");
    LanguageRegistry.addName(LMermer, "Black Marble");
    LanguageRegistry.addName(MMermer, "Cyan Marble");
    LanguageRegistry.addName(NMermer, "Orange Marble");
    LanguageRegistry.addName(OMermer, "Green Marble");
    LanguageRegistry.addName(AMermerB, "Light Blue Marble Brick");
    LanguageRegistry.addName(BMermerB, "Light Gray Marble Brick");
    LanguageRegistry.addName(CMermerB, "Lime Marble Brick");
    LanguageRegistry.addName(DMermerB, "Magenta Marble Brick");
    LanguageRegistry.addName(EMermerB, "Gray Marble Brick");
    LanguageRegistry.addName(FMermerB, "Brown Marble Brick");
    LanguageRegistry.addName(GMermerB, "Red Marble Brick");
    LanguageRegistry.addName(HMermerB, "Blue Marble Brick");
    LanguageRegistry.addName(IMermerB, "Purple Marble Brick");
    LanguageRegistry.addName(JMermerB, "Pink Marble Brick");
    LanguageRegistry.addName(KMermerB, "Yellow Marble Brick");
    LanguageRegistry.addName(LMermerB, "Black Marble Brick");
    LanguageRegistry.addName(MMermerB, "Cyan Marble Brick");
    LanguageRegistry.addName(NMermerB, "Orange Marble Brick");
    LanguageRegistry.addName(OMermerB, "Green Marble Brick");
    OreDictionary.registerOre("copperWire", new ItemStack(CopperCable, 1, 0));

    UniversalElectricity.isVoltageSensitive = true;
    UniversalElectricity.isNetworkActive = true;
    GameRegistry.registerTileEntity(TileEntityCoalGenerator.class, "Generator");
    GameRegistry.registerTileEntity(TileEntityElectricFurnace.class, "PM");
    GameRegistry.registerTileEntity(TileEntityBatteryBox.class, "BB");
    GameRegistry.registerTileEntity(TileEntityEF.class, "EF");
    GameRegistry.registerTileEntity(TileEntitySolarGenerator.class, "SG");
    GameRegistry.registerBlock(blockMachine, ItemBlockBasicMachine.class, "Temel Machine");
    OreDictionary.registerOre("generator", ((BlockBasicMachine) blockMachine).getCoalGenerator());
    OreDictionary.registerOre("PM", ((BlockBasicMachine) blockMachine).getElectricFurnace());
    OreDictionary.registerOre("EM", ((BlockBasicMachine) blockMachine).getAS());
    OreDictionary.registerOre("SG", new ItemStack(blocksolar, 1));
    LanguageRegistry.addName(blockMachine.getCoalGenerator(), "Generator");
    LanguageRegistry.addName(blockMachine.getElectricFurnace(), "Electric Pressure Machine");
    LanguageRegistry.addName(blockMachine.getAS(), "Electric Furnace");

    LanguageRegistry.addName(CopperCable, "Copper Cable");
    if (CopperCable != null) {
      UniversalElectricity.isNetworkActive = true;
    }
    this.addAchievementLocalizations();
    LanguageRegistry.instance().addStringLocalization("achievement.Marble", "Start the Mod");
    LanguageRegistry.instance()
        .addStringLocalization("achievement.Marble.desc", "You are starting the Mod");
    LanguageRegistry.instance().addStringLocalization("achievement.Marble2", "Get The Marble");
    LanguageRegistry.instance()
        .addStringLocalization("achievement.Marble2.desc", "You are Learning Something!");
    LanguageRegistry.instance().addStringLocalization("achievement.Copper", "Find Copper");
    LanguageRegistry.instance()
        .addStringLocalization("achievement.Copper.desc", "You found a new Ore");
    LanguageRegistry.instance()
        .addStringLocalization("achievement.Pressure", "Make a Pressure Machine");
    LanguageRegistry.instance()
        .addStringLocalization("achievement.Pressure.desc", "You can make awesome things!");
    LanguageRegistry.instance().addStringLocalization("achievement.Heart", "Friend Slayer");
    LanguageRegistry.instance()
        .addStringLocalization("achievement.Heart.desc", "You killed a Friend Mip");
    LanguageRegistry.instance().addStringLocalization("achievement.GHeart", "Enemy Slayer");
    LanguageRegistry.instance()
        .addStringLocalization("achievement.GHeart.desc", "You killed a Enemy Banion");

    MinecraftForge.EVENT_BUS.register(new Sounds());
    ModLoader.addBiome(MarbleBiome);
    GameRegistry.registerWorldGenerator(worldGen);
    GameRegistry.registerWorldGenerator(worldGenCopper);
    GameRegistry.registerWorldGenerator(worldGenML);

    // GameRegistry.registerTileEntity(TileEntityRedstoneWireBlock.class,
    // "TileEntityRedstoneWireBlock");
    AchievementPage.registerAchievementPage(page1);

    GameRegistry.registerTileEntity(TileEntityHiveCore.class, "TileEntityRedstoneNetworkCore");

    // GameRegistry.registerTileEntity(TileEntityRedstoneWireBlock.class,
    // "TileEntityRedstoneWireBlock");

    // Recipes(Formuller):
    ModLoader.addShapelessRecipe(
        new ItemStack(SMermer, 2), Block.stone, new ItemStack(Item.dyePowder, 1, 15));
    ModLoader.addShapelessRecipe(
        new ItemStack(AMermer, 2), Mermer, new ItemStack(Item.dyePowder, 1, 12));
    ModLoader.addShapelessRecipe(
        new ItemStack(BMermer, 2), Mermer, new ItemStack(Item.dyePowder, 1, 7));
    ModLoader.addShapelessRecipe(
        new ItemStack(CMermer, 2), Mermer, new ItemStack(Item.dyePowder, 1, 10));
    ModLoader.addShapelessRecipe(
        new ItemStack(DMermer, 2), Mermer, new ItemStack(Item.dyePowder, 1, 13));
    ModLoader.addShapelessRecipe(
        new ItemStack(EMermer, 2), Mermer, new ItemStack(Item.dyePowder, 1, 8));
    ModLoader.addShapelessRecipe(
        new ItemStack(FMermer, 2), Mermer, new ItemStack(Item.dyePowder, 1, 3));
    ModLoader.addShapelessRecipe(
        new ItemStack(GMermer, 2), Mermer, new ItemStack(Item.dyePowder, 1, 1));
    ModLoader.addShapelessRecipe(
        new ItemStack(HMermer, 2), Mermer, new ItemStack(Item.dyePowder, 1, 4));
    ModLoader.addShapelessRecipe(
        new ItemStack(IMermer, 2), Mermer, new ItemStack(Item.dyePowder, 1, 5));
    ModLoader.addShapelessRecipe(
        new ItemStack(JMermer, 2), Mermer, new ItemStack(Item.dyePowder, 1, 9));
    ModLoader.addShapelessRecipe(
        new ItemStack(KMermer, 2), Mermer, new ItemStack(Item.dyePowder, 1, 11));
    ModLoader.addShapelessRecipe(
        new ItemStack(LMermer, 2), Mermer, new ItemStack(Item.dyePowder, 1, 0));
    ModLoader.addShapelessRecipe(
        new ItemStack(MMermer, 2), Mermer, new ItemStack(Item.dyePowder, 1, 6));
    ModLoader.addShapelessRecipe(
        new ItemStack(NMermer, 2), Mermer, new ItemStack(Item.dyePowder, 1, 14));
    ModLoader.addShapelessRecipe(
        new ItemStack(OMermer, 2), Mermer, new ItemStack(Item.dyePowder, 1, 2));
    ModLoader.addShapelessRecipe(
        new ItemStack(AMermer, 2), SMermer, new ItemStack(Item.dyePowder, 1, 12));
    ModLoader.addShapelessRecipe(
        new ItemStack(BMermer, 2), SMermer, new ItemStack(Item.dyePowder, 1, 7));
    ModLoader.addShapelessRecipe(
        new ItemStack(CMermer, 2), SMermer, new ItemStack(Item.dyePowder, 1, 10));
    ModLoader.addShapelessRecipe(
        new ItemStack(DMermer, 2), SMermer, new ItemStack(Item.dyePowder, 1, 13));
    ModLoader.addShapelessRecipe(
        new ItemStack(EMermer, 2), SMermer, new ItemStack(Item.dyePowder, 1, 8));
    ModLoader.addShapelessRecipe(
        new ItemStack(FMermer, 2), SMermer, new ItemStack(Item.dyePowder, 1, 3));
    ModLoader.addShapelessRecipe(
        new ItemStack(GMermer, 2), SMermer, new ItemStack(Item.dyePowder, 1, 1));
    ModLoader.addShapelessRecipe(
        new ItemStack(HMermer, 2), SMermer, new ItemStack(Item.dyePowder, 1, 4));
    ModLoader.addShapelessRecipe(
        new ItemStack(IMermer, 2), SMermer, new ItemStack(Item.dyePowder, 1, 5));
    ModLoader.addShapelessRecipe(
        new ItemStack(JMermer, 2), SMermer, new ItemStack(Item.dyePowder, 1, 9));
    ModLoader.addShapelessRecipe(
        new ItemStack(KMermer, 2), SMermer, new ItemStack(Item.dyePowder, 1, 11));
    ModLoader.addShapelessRecipe(
        new ItemStack(LMermer, 2), SMermer, new ItemStack(Item.dyePowder, 1, 0));
    ModLoader.addShapelessRecipe(
        new ItemStack(MMermer, 2), SMermer, new ItemStack(Item.dyePowder, 1, 6));
    ModLoader.addShapelessRecipe(
        new ItemStack(NMermer, 2), SMermer, new ItemStack(Item.dyePowder, 1, 14));
    ModLoader.addShapelessRecipe(
        new ItemStack(OMermer, 2), SMermer, new ItemStack(Item.dyePowder, 1, 2));
    ModLoader.addRecipe(new ItemStack(MermerB, 4), "xx", "xx", 'x', Mermer);
    ModLoader.addRecipe(new ItemStack(MermerB, 4), "xx", "xx", 'x', SMermer);
    ModLoader.addRecipe(new ItemStack(AMermerB, 4), "xx", "xx", 'x', AMermer);
    ModLoader.addRecipe(new ItemStack(BMermerB, 4), "xx", "xx", 'x', BMermer);
    ModLoader.addRecipe(new ItemStack(CMermerB, 4), "xx", "xx", 'x', CMermer);
    ModLoader.addRecipe(new ItemStack(DMermerB, 4), "xx", "xx", 'x', DMermer);
    ModLoader.addRecipe(new ItemStack(EMermerB, 4), "xx", "xx", 'x', EMermer);
    ModLoader.addRecipe(new ItemStack(FMermerB, 4), "xx", "xx", 'x', FMermer);
    ModLoader.addRecipe(new ItemStack(GMermerB, 4), "xx", "xx", 'x', GMermer);
    ModLoader.addRecipe(new ItemStack(HMermerB, 4), "xx", "xx", 'x', HMermer);
    ModLoader.addRecipe(new ItemStack(IMermerB, 4), "xx", "xx", 'x', IMermer);
    ModLoader.addRecipe(new ItemStack(JMermerB, 4), "xx", "xx", 'x', JMermer);
    ModLoader.addRecipe(new ItemStack(KMermerB, 4), "xx", "xx", 'x', KMermer);
    ModLoader.addRecipe(new ItemStack(LMermerB, 4), "xx", "xx", 'x', LMermer);
    ModLoader.addRecipe(new ItemStack(MMermerB, 4), "xx", "xx", 'x', MMermer);
    ModLoader.addRecipe(new ItemStack(NMermerB, 4), "xx", "xx", 'x', NMermer);
    ModLoader.addRecipe(new ItemStack(OMermerB, 4), "xx", "xx", 'x', OMermer);
    ModLoader.addRecipe(
        new ItemStack(Deneme, 1),
        "xxx",
        "yzy",
        "xxx",
        'x',
        SteelIngot,
        'y',
        Block.pistonBase,
        'z',
        Block.stone);
    ModLoader.addRecipe(
        new ItemStack(Batery, 1),
        " x ",
        "yzy",
        "yzy",
        'x',
        CopperCable,
        'y',
        SteelIngot,
        'z',
        Item.redstone);
    ModLoader.addRecipe(
        new ItemStack(SteelIngot, 1), " x ", "xyx", " x ", 'x', Item.coal, 'y', Item.ingotIron);
    ModLoader.addSmelting(CopperOre.blockID, new ItemStack(CopperIngot, 1), 2.0f);
    ModLoader.addShapelessRecipe(new ItemStack(SteelIngot, 2), Item.ingotIron, CopperIngot);
    TickRegistry.registerTickHandler(new TickHandler(), Side.SERVER);
  }
예제 #2
0
 @Init
 public void load(FMLInitializationEvent event) {
   proxy.registerRenderers();
 }