public int getId() { int id = ModLoader.getUniqueEntityId(); boolean isUsed = false; do { isUsed = false; for (ComputerBox c : storageBoxes) { for (NBTTagCompound nbt : c.getStoredPokemon()) { if (nbt != null) { if (nbt.getInteger("pixelmonID") == id) { id = ModLoader.getUniqueEntityId(); isUsed = true; } } } } for (ComputerBox c : storageBoxes) { for (int i = 0; i < ComputerBox.boxLimit; i++) { if (c.getStoredPokemon()[i] != null) { if (c.getStoredPokemon()[i].getInteger("pixelmonID") == id) { id = ModLoader.getUniqueEntityId(); isUsed = true; } } } } } while (isUsed); return id; }
public static void init() { try { /*ModLoaderMp.registerNetClientHandlerEntity(MissileBoosterEntity.class, 144); ModLoaderMp.registerNetClientHandlerEntity(MissileMinerBoosterEntity.class, 145); ModLoaderMp.registerNetClientHandlerEntity(MissilePassengerBoosterEntity.class, 146); ModLoaderMp.registerNetClientHandlerEntity(MissilePassengerWarheadEntity.class, 147); ModLoaderMp.registerNetClientHandlerEntity(MissileWarheadEntity.class, 148); ModLoaderMp.registerNetClientHandlerEntity(ParachuteEntity.class, 149); ModLoaderMp.registerNetClientHandlerEntity(RangefinderEntity.class, 150);*/ missileModelID = ModLoader.getUniqueBlockModelID(instance, true); warheadModelID = ModLoader.getUniqueBlockModelID(instance, true); machineModelID = ModLoader.getUniqueBlockModelID(instance, true); optionsFile = new File(Minecraft.getMinecraftDir(), "/config/RocketScience.cfg"); func_22024_func_21238_readOptions(); booster = new MissileBoosterBlock(boosterID, 0).setBlockName("Missile"); warhead = new MissileWarheadBlock(warheadID).setBlockName("If you have this block, it's a glitch."); RSmachine = new BlockRSMachine(machineID).setBlockName("RS Machine"); RSgenerator = new BlockRSGenerator(generatorID).setBlockName("RS Generator"); superconductor = new BlockSuperconductor(superconductorID).setBlockName("Superconductor"); parachute = (ItemRS) new ItemRS(parachuteID, 0).setItemName("Parachute"); passengerModule = (ItemRS) new ItemRS(passengerModuleID, 1).setItemName("Passenger Module"); boosterModule = (ItemRS) new ItemRS(boosterModuleID, 2).setItemName("Booster Module"); tntModule = (ItemRS) new ItemRS(tntModuleID, 3).setItemName("TNT Warhead"); incendiaryModule = (ItemRS) new ItemRS(incendiaryModuleID, 4).setItemName("Incendiary Warhead"); nuclearModule = (ItemRS) new ItemRS(nuclearModuleID, 5).setItemName("Nuclear Warhead"); rangefinderItem = (ItemRS) new RangefinderItem(rangefinderItemID, 6).setItemName("Laser Rangefinder"); parachuteArmor = (ItemArmorRS) new ItemArmorRS( parachuteArmorID, 7, EnumArmorMaterial.CLOTH, ModLoader.addArmor("parachute"), 1, 1000) .setItemName("Parachute Pack"); superconductorUncompressed = (ItemRS) new ItemRS(superconductorUncompressedID, 8).setItemName("SuperUncompressed"); cellDeuterium = (ItemRS) (new ItemRS(deuteriumID, 9)).setItemName("itemCellDeuterium"); copperCoil = (ItemRS) new ItemRS(copperCoilID, 10).setItemName("CopperCoil"); copperCoils = (ItemRS) new ItemRS(copperCoilsID, 11).setItemName("CopperCoils"); superCoil = (ItemRS) new ItemRS(superCoilID, 12).setItemName("SuperCoil"); superCoils = (ItemRS) new ItemRS(superCoilsID, 13).setItemName("SuperCoils"); ohmicHeater = (ItemRS) new ItemRS(ohmicHeaterID, 14).setItemName("OhmicHeater"); neutralHeater = (ItemRS) new ItemRS(neutralHeaterID, 15).setItemName("NeutralHeater"); rfHeater = (ItemRS) new ItemRS(rfHeaterID, 16).setItemName("RFHeater"); vacuum = (ItemVacuum) new ItemVacuum(vacuumID, 17).setItemName("Vacuum"); handPump = (ItemHandPump) new ItemHandPump(handPumpID, 20).setItemName("HandPump"); ionDrive = (ItemRS) new ItemRS(ionDriveID, 21).setItemName("IonDrive"); passengerDepleted = (ItemPassengerDepleted) new ItemPassengerDepleted(passengerDepletedID, 22).setItemName("PassengerDepleted"); finder = (ItemAutominerFinder) new ItemAutominerFinder(finderID, 23).setItemName("Finder"); lithium = (ItemRS) new ItemRS(lithiumID, 24).setItemName("Lithium"); lithiumCell = (ItemRS) new ItemRS(lithiumCellID, 25).setItemName("LithiumCell"); lithium6Cell = (ItemRS) new ItemRS(lithium6CellID, 26).setItemName("Lithium6Cell"); tritiumCell = (ItemRS) new ItemRS(tritiumCellID, 27).setItemName("TritiumCell"); thermoModule = (ItemRS) new ItemRS(thermoModuleID, 5).setItemName("Thermonuclear Warhead"); ModLoader.registerBlock(booster, MissileItem.class); ModLoader.registerBlock(warhead, null); ModLoader.registerBlock(superconductor); ModLoader.registerBlock(RSmachine, ItemMachineRS.class); ModLoader.registerBlock(RSgenerator); ModLoader.registerTileEntity(MissileTileEntity.class, "Missile"); ModLoader.registerTileEntity(TileEntitySuperconductor.class, "Superconductor"); ModLoader.registerTileEntity(TileEntityIsotope.class, "Isotopic Separator"); ModLoader.registerTileEntity(TileEntityFusion.class, "Fusion Reactor"); ModLoader.registerTileEntity(TileEntityAutoMiner.class, "Autominer"); ModLoader.registerTileEntity(TileEntityDefense.class, "Missile Defense"); ModLoader.registerTileEntity(TileEntityOffense.class, "Missile Targeting"); ModLoader.registerTileEntity(TileEntityLaser.class, "Defense Laser"); ModLoader.registerTileEntity(TileEntityRadar.class, "Radar"); TileEntityIsotope.initRecipes(); ModLoader.addName(boosterModule, "Booster Module"); ModLoader.addName(passengerModule, "Passenger Module"); ModLoader.addName(parachute, "Parachute"); ModLoader.addName(booster, "Missile"); ModLoader.addName(warhead, "If you have this block, it's a glitch."); ModLoader.addName(tntModule, "TNT Warhead"); ModLoader.addName(incendiaryModule, "Incendiary Warhead"); ModLoader.addName(nuclearModule, "Nuclear Warhead"); ModLoader.addName(rangefinderItem, "Laser Rangefinder"); ModLoader.addName(parachuteArmor, "Parachute Pack"); ModLoader.addName(superconductor, "Superconductor"); ModLoader.addName(superconductorUncompressed, "Graphene-Gold Lattice"); ModLoader.addName(cellDeuterium, "Deuterium Cell"); ModLoader.addName(copperCoil, "Copper Loop"); ModLoader.addName(copperCoils, "Copper Coils"); ModLoader.addName(superCoil, "Superconductor Loop"); ModLoader.addName(superCoils, "Superconducting Coils"); ModLoader.addName(ohmicHeater, "Ohmic Heating System"); ModLoader.addName(neutralHeater, "Neutral-Beam Heating System"); ModLoader.addName(rfHeater, "RF Cyclotron Heating System"); ModLoader.addName(new ItemStack(booster, 1, 14), "Missile"); ModLoader.addName(new ItemStack(booster, 1, 15), "Reusable Passenger Rocket (half charge)"); ModLoader.addName(new ItemStack(booster, 1, 0), "Reusable Passenger Rocket"); ModLoader.addName(new ItemStack(booster, 1, 4), "Incendiary Missile"); ModLoader.addName(new ItemStack(booster, 1, 8), "Nuclear Missile"); ModLoader.addName(new ItemStack(booster, 1, 12), "Passenger Rocket"); ModLoader.addName(new ItemStack(booster, 1, 13), "Thermonuclear Missile"); ModLoader.addName(new ItemStack(RSmachine, 1, 0), "Isotopic Separator"); ModLoader.addName(new ItemStack(RSmachine, 1, 1), "Mobile Auto-Miner"); ModLoader.addName(new ItemStack(RSmachine, 1, 2), "Missile Defense System"); ModLoader.addName(new ItemStack(RSmachine, 1, 3), "Missile Targeting System"); ModLoader.addName(new ItemStack(RSmachine, 1, 4), "Missile Defense Laser"); ModLoader.addName(new ItemStack(RSmachine, 1, 5), "Radar"); ModLoader.addName(new ItemStack(RSgenerator, 1, 0), "Fusion Reactor"); ModLoader.addName(vacuum, "Wet/Dry Vac"); ModLoader.addName(handPump, "Hand Pump"); ModLoader.addName(ionDrive, "Ion Drive"); ModLoader.addName(passengerDepleted, "Discharged Passenger Rocket"); ModLoader.addName(finder, "Autominer Location Device"); ModLoader.addName(lithium, "Lithium"); ModLoader.addName(lithiumCell, "Lithium Cell"); ModLoader.addName(lithium6Cell, "Lithium-6 Cell"); ModLoader.addName(tritiumCell, "Tritium Cell"); ModLoader.addName(thermoModule, "Thermonuclear Warhead"); ModLoader.addRecipe( new ItemStack(boosterModule, 2), new Object[] { "#X#", "#X#", "#X#", Character.valueOf('#'), Ic2Items.refinedIronIngot, Character.valueOf('X'), Ic2Items.coalfuelCell }); ModLoader.addRecipe( new ItemStack(boosterModule, 2), new Object[] { "#X#", "#X#", "#X#", Character.valueOf('#'), Ic2Items.refinedIronIngot, Character.valueOf('X'), Ic2Items.biofuelCell }); ModLoader.addRecipe( new ItemStack(parachute, 1), new Object[] { "XXX", "O O", " O ", Character.valueOf('X'), Item.leather, Character.valueOf('O'), Item.silk }); ModLoader.addRecipe( new ItemStack(parachuteArmor, 1), new Object[] { "L L", "LPL", "LLL", Character.valueOf('L'), Item.leather, Character.valueOf('P'), parachute }); ModLoader.addRecipe( new ItemStack(passengerModule, 1), new Object[] { "P", "M", Character.valueOf('P'), parachute, Character.valueOf('M'), Item.minecartEmpty }); ModLoader.addRecipe( new ItemStack(tntModule, 1), new Object[] { " I ", "ITI", Character.valueOf('I'), Ic2Items.refinedIronIngot, Character.valueOf('T'), Block.tnt }); ModLoader.addRecipe( new ItemStack(incendiaryModule, 1), new Object[] { " I ", "ITI", Character.valueOf('I'), Ic2Items.refinedIronIngot, Character.valueOf('T'), Ic2Items.lavaCell }); ModLoader.addRecipe( new ItemStack(nuclearModule, 1), new Object[] { " I ", "ITI", Character.valueOf('I'), Ic2Items.refinedIronIngot, Character.valueOf('T'), Ic2Items.nuke }); ModLoader.addRecipe( new ItemStack(booster, 1, 12), new Object[] { "P", "M", Character.valueOf('P'), passengerModule, Character.valueOf('M'), boosterModule }); ModLoader.addRecipe( new ItemStack(booster, 1, 8), new Object[] { "P", "M", Character.valueOf('P'), nuclearModule, Character.valueOf('M'), boosterModule }); ModLoader.addRecipe( new ItemStack(booster, 1, 4), new Object[] { "P", "M", Character.valueOf('P'), incendiaryModule, Character.valueOf('M'), boosterModule }); ModLoader.addRecipe( new ItemStack(booster, 1, 14), new Object[] { "P", "M", Character.valueOf('P'), tntModule, Character.valueOf('M'), boosterModule }); ModLoader.addRecipe( new ItemStack(superconductorUncompressed), new Object[] { " C ", " D ", " G ", Character.valueOf('C'), Ic2Items.carbonPlate, Character.valueOf('D'), Item.redstone, Character.valueOf('G'), Item.ingotGold }); ModLoader.addRecipe( new ItemStack(RSmachine, 1, 0), new Object[] { "ICI", "RER", "IAI", Character.valueOf('E'), Ic2Items.extractor, Character.valueOf('I'), Ic2Items.refinedIronIngot, Character.valueOf('R'), Item.redstone, Character.valueOf('A'), Ic2Items.advancedMachine, Character.valueOf('C'), Ic2Items.advancedCircuit }); ModLoader.addRecipe( new ItemStack(RSgenerator, 1, 0), new Object[] { "CCC", "CAC", "CCC", Character.valueOf('C'), Ic2Items.reactorChamber, Character.valueOf('A'), Ic2Items.advancedMachine }); ModLoader.addRecipe( new ItemStack(copperCoil, 1), new Object[] {"CCC", "C C", "CCC", Character.valueOf('C'), Ic2Items.copperIngot}); ModLoader.addRecipe( new ItemStack(copperCoils, 1), new Object[] {"CCC", "C C", "CCC", Character.valueOf('C'), copperCoil}); ModLoader.addRecipe( new ItemStack(superCoil, 1), new Object[] {"CCC", "C C", "CCC", Character.valueOf('C'), superconductor}); ModLoader.addRecipe( new ItemStack(superCoils, 1), new Object[] {"CCC", "C C", "CCC", Character.valueOf('C'), superCoil}); ModLoader.addRecipe( new ItemStack(ohmicHeater, 1), new Object[] { "WWW", "C W", "WWW", Character.valueOf('W'), Ic2Items.insulatedCopperCableItem, Character.valueOf('C'), Ic2Items.electronicCircuit }); ModLoader.addRecipe( new ItemStack(rfHeater, 1), new Object[] { "F", "A", "M", Character.valueOf('M'), Ic2Items.machine, Character.valueOf('A'), Ic2Items.advancedCircuit, Character.valueOf('F'), Ic2Items.frequencyTransmitter }); ModLoader.addRecipe( new ItemStack(neutralHeater, 1), new Object[] { "AMW", " I ", Character.valueOf('I'), Ic2Items.refinedIronIngot, Character.valueOf('M'), Ic2Items.machine, Character.valueOf('A'), Ic2Items.advancedCircuit, Character.valueOf('W'), Ic2Items.insulatedCopperCableItem }); ModLoader.addRecipe( new ItemStack(rangefinderItem, 1), new Object[] { "III", "ICD", "III", Character.valueOf('I'), Ic2Items.refinedIronIngot, Character.valueOf('C'), Ic2Items.electronicCircuit, Character.valueOf('D'), Item.diamond }); ModLoader.addRecipe( new ItemStack(vacuum), new Object[] { "R", "P", "B", Character.valueOf('R'), Ic2Items.rubber, Character.valueOf('B'), Ic2Items.reBattery, Character.valueOf('P'), Ic2Items.pump }); ModLoader.addRecipe( new ItemStack(handPump), new Object[] { "RB", " C", Character.valueOf('C'), Ic2Items.cell, Character.valueOf('B'), Ic2Items.bronzeIngot, Character.valueOf('R'), Ic2Items.rubber }); ModLoader.addRecipe( new ItemStack(ionDrive), new Object[] { "ACA", "ARA", "AGA", Character.valueOf('A'), Ic2Items.advancedAlloy, Character.valueOf('C'), new ItemStack(Ic2Items.energyCrystal.getItem(), 1, 26), Character.valueOf('R'), Ic2Items.advancedCircuit, Character.valueOf('G'), Block.glowStone }); ModLoader.addRecipe( new ItemStack(ionDrive), new Object[] { "ACA", "ARA", "AGA", Character.valueOf('A'), Ic2Items.advancedAlloy, Character.valueOf('C'), new ItemStack(Ic2Items.energyCrystal.getItem(), 1, 27), Character.valueOf('R'), Ic2Items.advancedCircuit, Character.valueOf('G'), Block.glowStone }); ModLoader.addRecipe( new ItemStack(passengerDepleted, 1, 10001), new Object[] { "P", "I", Character.valueOf('P'), passengerModule, Character.valueOf('I'), ionDrive }); ModLoader.addRecipe( new ItemStack(RSmachine, 1, 1), new Object[] { "CTC", "AMA", "I I", Character.valueOf('C'), Ic2Items.advancedCircuit, Character.valueOf('T'), Block.chest, Character.valueOf('A'), Ic2Items.advancedMachine, Character.valueOf('M'), Ic2Items.miner, Character.valueOf('I'), ionDrive }); ModLoader.addRecipe( new ItemStack(thermoModule), new Object[] { " T ", "DND", " T ", Character.valueOf('T'), tritiumCell, Character.valueOf('D'), cellDeuterium, Character.valueOf('N'), nuclearModule }); ModLoader.addRecipe( new ItemStack(thermoModule), new Object[] { " D ", "TNT", " D ", Character.valueOf('T'), tritiumCell, Character.valueOf('D'), cellDeuterium, Character.valueOf('N'), nuclearModule }); ModLoader.addRecipe( new ItemStack(booster, 1, 13), new Object[] { "P", "M", Character.valueOf('P'), thermoModule, Character.valueOf('M'), boosterModule }); ModLoader.addRecipe( new ItemStack(RSmachine, 1, 2), new Object[] { "GAG", "RMR", "GCG", Character.valueOf('G'), Block.thinGlass, Character.valueOf('A'), Ic2Items.advancedCircuit, Character.valueOf('R'), Item.redstone, Character.valueOf('M'), Ic2Items.machine, Character.valueOf('C'), Ic2Items.electronicCircuit }); ModLoader.addRecipe( new ItemStack(RSmachine, 1, 3), new Object[] { "GCG", "RMR", "GAG", Character.valueOf('G'), Block.thinGlass, Character.valueOf('A'), Ic2Items.advancedCircuit, Character.valueOf('R'), Item.redstone, Character.valueOf('M'), Ic2Items.machine, Character.valueOf('C'), Ic2Items.electronicCircuit }); ModLoader.addRecipe( new ItemStack(RSmachine, 1, 4), new Object[] { " E ", "GCG", "AMA", Character.valueOf('E'), new ItemStack(Ic2Items.energyCrystal.getItem(), 1, 26), Character.valueOf('G'), Item.lightStoneDust, Character.valueOf('C'), Ic2Items.advancedCircuit, Character.valueOf('A'), Ic2Items.advancedAlloy, Character.valueOf('M'), Ic2Items.advancedMachine }); ModLoader.addRecipe( new ItemStack(RSmachine, 1, 5), new Object[] { "IFI", " I ", " M ", Character.valueOf('I'), Ic2Items.refinedIronIngot, Character.valueOf('F'), Ic2Items.frequencyTransmitter, Character.valueOf('M'), Ic2Items.machine }); ModLoader.addShapelessRecipe( StackUtil.copyWithSize(Ic2Items.copperIngot, 64), new Object[] {copperCoils}); ModLoader.addShapelessRecipe( StackUtil.copyWithSize(Ic2Items.copperIngot, 8), new Object[] {copperCoil}); ModLoader.addShapelessRecipe(new ItemStack(superconductor, 64), new Object[] {superCoils}); ModLoader.addShapelessRecipe(new ItemStack(superconductor, 8), new Object[] {superCoil}); ModLoader.addShapelessRecipe( new ItemStack(finder, 1), new Object[] {Ic2Items.frequencyTransmitter, new ItemStack(Item.dyePowder, 1, 1)}); ModLoader.addShapelessRecipe( new ItemStack(lithiumCell, 1), new Object[] {Ic2Items.cell, lithium}); ModLoader.registerEntityID( MissileBoosterEntity.class, "Missile", ModLoader.getUniqueEntityId()); ModLoader.registerEntityID( MissileWarheadEntity.class, "Warhead", ModLoader.getUniqueEntityId()); ModLoader.registerEntityID( MissilePassengerBoosterEntity.class, "Passenger Missile", ModLoader.getUniqueEntityId()); ModLoader.registerEntityID( MissilePassengerWarheadEntity.class, "Passenger Warhead", ModLoader.getUniqueEntityId()); ModLoader.registerEntityID( RangefinderEntity.class, "Rangefinder", ModLoader.getUniqueEntityId()); ModLoader.registerEntityID( MissileMinerBoosterEntity.class, "Miner", ModLoader.getUniqueEntityId()); ModLoader.registerEntityID( EntityDefenseLaser.class, "Defense Laser", ModLoader.getUniqueEntityId()); Ic2Recipes.addCompressorRecipe( new ItemStack(superconductorUncompressed), new ItemStack(superconductor)); Ic2Recipes.addExtractorRecipe(new ItemStack(Item.clay), new ItemStack(lithium)); ModLoader.setInGameHook(instance, true, false); } catch (Exception exception) { System.out.println("Rocket Science: Failed to initialize"); exception.printStackTrace(); } }
@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); }