Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.smith.mod;
- import net.minecraft.block.Block;
- import net.minecraft.block.BlockFence;
- import net.minecraft.block.BlockFenceGate;
- import net.minecraft.block.material.Material;
- import net.minecraft.creativetab.CreativeTabs;
- import net.minecraft.init.Blocks;
- import net.minecraft.init.Items;
- import net.minecraft.item.Item;
- import net.minecraft.item.Item.ToolMaterial;
- import net.minecraft.item.ItemArmor.ArmorMaterial;
- import net.minecraft.item.ItemStack;
- import net.minecraftforge.common.util.EnumHelper;
- import com.smith.mod.armor.BronzeArmor;
- import com.smith.mod.armor.HeatTreatedIronArmor;
- import com.smith.mod.armor.SteelArmor;
- import com.smith.mod.blocks.AluminiumOre;
- import com.smith.mod.blocks.AmazoniteOre;
- import com.smith.mod.blocks.CopperOre;
- import com.smith.mod.blocks.MagneziumOre;
- import com.smith.mod.blocks.MaterialBlock;
- import com.smith.mod.blocks.PlatinumOre;
- import com.smith.mod.blocks.TinOre;
- import com.smith.mod.doors.BlockCopperDoor;
- import com.smith.mod.doors.BlockCopperOxideDoor;
- import com.smith.mod.doors.BlockGoldenDoor;
- import com.smith.mod.doors.ItemCopperDoor;
- import com.smith.mod.doors.ItemCopperOxideDoor;
- import com.smith.mod.doors.ItemGoldenDoor;
- import com.smith.mod.fences.IronBlockFenceGate;
- import com.smith.mod.food.Alcohol;
- import com.smith.mod.handler.FuelHandler;
- import com.smith.mod.items.GlowingAxe;
- import com.smith.mod.items.GlowingHoe;
- import com.smith.mod.items.GlowingPickaxe;
- import com.smith.mod.items.GlowingShovel;
- import com.smith.mod.items.GlowingSword;
- import com.smith.mod.items.HeatTreatedIronAxe;
- import com.smith.mod.items.HeatTreatedIronHoe;
- import com.smith.mod.items.HeatTreatedIronPickaxe;
- import com.smith.mod.items.HeatTreatedIronShovel;
- import com.smith.mod.items.HeatTreatedIronSword;
- import com.smith.mod.items.SteelAxe;
- import com.smith.mod.items.SteelHoe;
- import com.smith.mod.items.SteelPickaxe;
- import com.smith.mod.items.SteelShovel;
- import com.smith.mod.items.SteelSword;
- import cpw.mods.fml.common.Mod;
- import cpw.mods.fml.common.Mod.EventHandler;
- import cpw.mods.fml.common.Mod.Instance;
- import cpw.mods.fml.common.event.FMLInitializationEvent;
- import cpw.mods.fml.common.event.FMLPostInitializationEvent;
- import cpw.mods.fml.common.event.FMLPreInitializationEvent;
- import cpw.mods.fml.common.registry.GameRegistry;
- import cpw.mods.fml.relauncher.Side;
- import cpw.mods.fml.relauncher.SideOnly;
- @Mod(modid = Smithing.modid, version = Smithing.version)
- public class Smithing {
- public static final String modid = "Master Smith Stuff";
- public static final String version = "Alpha v1.0";
- public static CreativeTabs smithingTab;
- public static ToolMaterial GlowingMaterial = EnumHelper.addToolMaterial("GlowingMaterial", 2, 10, 20.0F, 2, 0);
- public static ToolMaterial HeatTreatedIronMaterial = EnumHelper.addToolMaterial("HeatTreatedIronMaterial", 2, 500, 7.0F, 2, 0);
- public static ToolMaterial SteelMaterial = EnumHelper.addToolMaterial("SteelMaterial", 2, 800, 8.0F, 3, 0);
- public static ArmorMaterial HeatTreatedIronArmorMaterial = EnumHelper.addArmorMaterial("HeatTreatedIronArmor", 17, new int[] {3, 6, 5, 3} , 12);
- public static ArmorMaterial SteelArmorMaterial = EnumHelper.addArmorMaterial("SteelArmor", 17, new int[] {3, 6, 5, 3} , 12);
- public static ArmorMaterial BronzeArmorMaterial = EnumHelper.addArmorMaterial("BronzeArmor", 10, new int[] {2, 3, 3, 2} , 12);
- @Instance(modid)
- public static Smithing instance;
- /**
- * Geeft een java-naam aan je item
- */
- //Items
- //Material
- public static Item itemGlowingIronIngot;
- public static Item itemHeatTreatedIronIngot;
- public static Item itemRustyIronIngot;
- public static Item itemAluminiumIngot;
- public static Item itemCopperIngot;
- public static Item itemCopperOxideIngot;
- public static Item itemTinIngot;
- public static Item itemSteelIngot;
- public static Item itemPlatinumIngot;
- public static Item itemBronzeIngot;
- public static Item itemAmazoniteCrystal;
- //Stuff
- public static Item itemIronStick;
- public static Item itemRustPowder;
- public static Item itemAluminiumPowder;
- public static Item itemThermite;
- //Fuel
- public static Item fuelMaltBucket;
- public static Item fuelBioEthanolBucket;
- public static Item fuelMagnezium;
- //Doors
- public static Item itemCopperDoor;
- public static Item itemCopperOxideDoor;
- public static Item itemGoldenDoor;
- //Blocks
- //Ores
- public static Block oreAluminiumOre;
- public static Block oreCopperOre;
- public static Block oreTinOre;
- public static Block orePlatinumOre;
- public static Block oreAmazoniteOre;
- public static Block oreMagneziumOre;
- //Material Blocks
- public static Block blockAluminiumBlock;
- public static Block blockCopperBlock;
- public static Block blockCopperOxideBlock;
- public static Block blockTinBlock;
- public static Block blockPlatinumBlock;
- public static Block blockAmazoniteBlock;
- public static Block blockBronzeBlock;
- public static Block blockSteelBlock;
- public static Block blockHeatTreatedIronBlock;
- //Doors
- public static Block entityCopperDoor;
- public static Block entityCopperOxideDoor;
- public static Block entityGoldenDoor;
- //Fences
- public static Block blockIronFence;
- public static Block blockIronFenceGate;
- //Tools
- //Glowing
- public static Item toolGlowingSword;
- public static Item toolGlowingPickaxe;
- public static Item toolGlowingAxe;
- public static Item toolGlowingShovel;
- public static Item toolGlowingHoe;
- //Heat Treated Iron
- public static Item toolHeatTreatedIronSword;
- public static Item toolHeatTreatedIronPickaxe;
- public static Item toolHeatTreatedIronAxe;
- public static Item toolHeatTreatedIronShovel;
- public static Item toolHeatTreatedIronHoe;
- //Steel
- public static Item toolSteelSword;
- public static Item toolSteelPickaxe;
- public static Item toolSteelAxe;
- public static Item toolSteelShovel;
- public static Item toolSteelHoe;
- //Armory
- //Heat Treated Iron
- public static int armorHeatTreatedIronHelmID;
- public static int armorHeatTreatedIronChestID;
- public static int armorHeatTreatedIronLegsID;
- public static int armorHeatTreatedIronBootsID;
- public static Item armorHeatTreatedIronHelm;
- public static Item armorHeatTreatedIronChest;
- public static Item armorHeatTreatedIronLegs;
- public static Item armorHeatTreatedIronBoots;
- //Steel
- public static int armorSteelHelmID;
- public static int armorSteelChestID;
- public static int armorSteelLegsID;
- public static int armorSteelBootsID;
- public static Item armorSteelHelm;
- public static Item armorSteelChest;
- public static Item armorSteelLegs;
- public static Item armorSteelBoots;
- //Bronze
- public static int armorBronzeHelmID;
- public static int armorBronzeChestID;
- public static int armorBronzeLegsID;
- public static int armorBronzeBootsID;
- public static Item armorBronzeHelm;
- public static Item armorBronzeChest;
- public static Item armorBronzeLegs;
- public static Item armorBronzeBoots;
- @EventHandler
- public void PreInit(FMLPreInitializationEvent preEvent){
- smithingTab = new CreativeTabs("smithing") {
- @Override
- @SideOnly(Side.CLIENT)
- public Item getTabIconItem() {
- return Smithing.itemGlowingIronIngot;
- }
- };
- /**
- * Hoe moet je item eruit zien/wat doet het?
- */
- //Items
- //Material
- itemGlowingIronIngot = new Item().setUnlocalizedName("GlowingIronIngot").setTextureName(modid + ":GlowingIronIngot").setCreativeTab(Smithing.smithingTab);
- itemHeatTreatedIronIngot = new Item().setUnlocalizedName("HeatTreatedIronIngot").setTextureName(modid + ":HeatTreatedIronIngot").setCreativeTab(Smithing.smithingTab);
- itemRustyIronIngot = new Item().setUnlocalizedName("RustyIronIngot").setTextureName(modid + ":RustyIronIngot").setCreativeTab(Smithing.smithingTab);
- itemAluminiumIngot = new Item().setUnlocalizedName("AluminiumIngot").setTextureName(modid + ":AluminiumIngot").setCreativeTab(Smithing.smithingTab);
- itemCopperIngot = new Item().setUnlocalizedName("CopperIngot").setTextureName(modid + ":CopperIngot").setCreativeTab(Smithing.smithingTab);
- itemCopperOxideIngot = new Item().setUnlocalizedName("CopperOxideIngot").setTextureName(modid + ":CopperOxideIngot").setCreativeTab(Smithing.smithingTab);
- itemTinIngot = new Item().setUnlocalizedName("TinIngot").setTextureName(modid + ":TinIngot").setCreativeTab(Smithing.smithingTab);
- itemSteelIngot = new Item().setUnlocalizedName("SteelIngot").setTextureName(modid + ":SteelIngot").setCreativeTab(Smithing.smithingTab);
- itemPlatinumIngot = new Item().setUnlocalizedName("PlatinumIngot").setTextureName(modid + ":PlatinumIngot").setCreativeTab(Smithing.smithingTab);
- itemBronzeIngot = new Item().setUnlocalizedName("BronzeIngot").setTextureName(modid + ":BronzeIngot").setCreativeTab(Smithing.smithingTab);
- itemAmazoniteCrystal = new Item().setUnlocalizedName("AmazoniteCrystal").setTextureName(modid + ":AmazoniteCrystal").setCreativeTab(Smithing.smithingTab);
- //Stuff
- itemIronStick = new Item().setUnlocalizedName("IronStick ").setTextureName(modid + ":IronStick").setCreativeTab(Smithing.smithingTab);
- itemRustPowder = new Item().setUnlocalizedName("RustPowder").setTextureName(modid + ":RustPowder").setCreativeTab(Smithing.smithingTab);
- itemAluminiumPowder = new Item().setUnlocalizedName("AluminiumPowder").setTextureName(modid + ":AluminiumPowder").setCreativeTab(Smithing.smithingTab);
- itemThermite = new Item().setUnlocalizedName("Thermite").setTextureName(modid + ":Thermite").setCreativeTab(Smithing.smithingTab);
- //Fuel
- fuelMaltBucket = new Item().setUnlocalizedName("MaltBucket").setTextureName(modid + ":MaltBucket").setCreativeTab(Smithing.smithingTab);
- fuelBioEthanolBucket = new Alcohol(2, 2F, false).setUnlocalizedName("BioEthanolBucket").setTextureName(modid + ":BioEthanolBucket").setCreativeTab(Smithing.smithingTab).setContainerItem(Items.bucket);
- fuelMagnezium = new Item().setUnlocalizedName("Magnezium").setTextureName(modid + ":Magnezium").setCreativeTab(Smithing.smithingTab);
- //Doors
- itemCopperDoor = new ItemCopperDoor(Material.iron).setUnlocalizedName("CopperDoor").setTextureName(modid + ":CopperDoor").setCreativeTab(Smithing.smithingTab);
- itemCopperOxideDoor = new ItemCopperOxideDoor(Material.iron).setUnlocalizedName("CopperOxideDoor").setTextureName(modid + ":CopperOxideDoor").setCreativeTab(Smithing.smithingTab);
- itemGoldenDoor = new ItemGoldenDoor(Material.iron).setUnlocalizedName("GoldenDoor").setTextureName(modid + ":GoldenDoor").setCreativeTab(Smithing.smithingTab);
- //Blocks
- //Ores
- oreAluminiumOre = new AluminiumOre(Material.rock).setBlockName("AluminiumOre");
- oreCopperOre = new CopperOre(Material.rock).setBlockName("CopperOre");
- oreTinOre = new TinOre(Material.rock).setBlockName("TinOre");
- orePlatinumOre = new PlatinumOre(Material.rock).setBlockName("PlatinumOre");
- oreAmazoniteOre = new AmazoniteOre(Material.rock).setBlockName("AmazoniteOre");
- oreMagneziumOre = new MagneziumOre(Material.rock).setBlockName("MagneziumOre");
- //Material Blocks
- blockAluminiumBlock = new MaterialBlock(Material.iron).setHardness(3.0F).setResistance(3.0F).setBlockName("AluminiumBlock");
- blockCopperBlock= new MaterialBlock(Material.rock).setHardness(2.5F).setResistance(2.5F).setBlockName("CopperBlock");
- blockCopperOxideBlock= new MaterialBlock(Material.rock).setHardness(2.5F).setResistance(2.5F).setBlockName("CopperOxideBlock");
- blockTinBlock = new MaterialBlock(Material.rock).setHardness(2.5F).setResistance(2.5F).setBlockName("TinBlock");
- blockPlatinumBlock = new MaterialBlock(Material.rock).setHardness(5.0F).setResistance(5.0F).setBlockName("PlatinumBlock");
- blockAmazoniteBlock = new MaterialBlock(Material.rock).setHardness(5.0F).setResistance(5.0F).setBlockName("AmazoniteBlock");
- blockBronzeBlock = new MaterialBlock(Material.rock).setHardness(3.5F).setResistance(3.5F).setBlockName("BronzeBlock");
- blockSteelBlock = new MaterialBlock(Material.rock).setHardness(4.0F).setResistance(4.0F).setBlockName("SteelBlock");
- blockHeatTreatedIronBlock = new MaterialBlock(Material.rock).setHardness(4.0F).setResistance(4.0F).setBlockName("HeatTreatedIronBlock");
- //Doors
- entityCopperDoor = new BlockCopperDoor(Material.iron).setHardness(2.0F).setStepSound(Block.soundTypeMetal).setBlockName("blockCopperDoor");
- entityCopperOxideDoor = new BlockCopperOxideDoor(Material.iron).setHardness(2.0F).setStepSound(Block.soundTypeMetal).setBlockName("blockCopperOxideDoor");
- entityGoldenDoor = new BlockGoldenDoor(Material.iron).setHardness(2.5F).setStepSound(Block.soundTypeMetal).setBlockName("blockGoldenDoor");
- //Fences
- blockIronFence = new BlockFence("iron_block", Material.iron).setHardness(2.0F).setResistance(5.0F).setStepSound(Block.soundTypeMetal).setBlockName("IronFence").setCreativeTab(Smithing.smithingTab);
- blockIronFenceGate = new IronBlockFenceGate().setHardness(2.0F).setResistance(5.0F).setStepSound(Block.soundTypeMetal).setBlockName("IronFenceGate").setCreativeTab(Smithing.smithingTab);
- //Tools
- //Glowing
- toolGlowingSword = new GlowingSword(GlowingMaterial).setUnlocalizedName("GlowingSword");
- toolGlowingPickaxe = new GlowingPickaxe(GlowingMaterial).setUnlocalizedName("GlowingPickaxe");
- toolGlowingAxe = new GlowingAxe(GlowingMaterial).setUnlocalizedName("GlowingAxe");
- toolGlowingShovel = new GlowingShovel(GlowingMaterial).setUnlocalizedName("GlowingShovel");
- toolGlowingHoe = new GlowingHoe(GlowingMaterial).setUnlocalizedName("GlowingHoe");
- //Heat Treated Iron
- toolHeatTreatedIronSword = new HeatTreatedIronSword(HeatTreatedIronMaterial).setUnlocalizedName("HeatTreatedIronSword");
- toolHeatTreatedIronPickaxe = new HeatTreatedIronPickaxe(HeatTreatedIronMaterial).setUnlocalizedName("HeatTreatedIronPickaxe");
- toolHeatTreatedIronAxe = new HeatTreatedIronAxe(HeatTreatedIronMaterial).setUnlocalizedName("HeatTreatedIronAxe");
- toolHeatTreatedIronShovel = new HeatTreatedIronShovel(HeatTreatedIronMaterial).setUnlocalizedName("HeatTreatedIronShovel");
- toolHeatTreatedIronHoe = new HeatTreatedIronHoe(HeatTreatedIronMaterial).setUnlocalizedName("HeatTreatedIronHoe");
- //Steel
- toolSteelSword = new SteelSword(SteelMaterial).setUnlocalizedName("SteelSword");
- toolSteelPickaxe = new SteelPickaxe(SteelMaterial).setUnlocalizedName("SteelPickaxe");
- toolSteelAxe = new SteelAxe(SteelMaterial).setUnlocalizedName("SteelAxe");
- toolSteelShovel = new SteelShovel(SteelMaterial).setUnlocalizedName("SteelShovel");
- toolSteelHoe = new SteelHoe(SteelMaterial).setUnlocalizedName("SteelHoe");
- //Armory
- //Heat Treated Iron
- armorHeatTreatedIronHelm = new HeatTreatedIronArmor(HeatTreatedIronArmorMaterial, armorHeatTreatedIronHelmID, 0).setUnlocalizedName("HeatTreatedIronHelm");
- armorHeatTreatedIronChest = new HeatTreatedIronArmor(HeatTreatedIronArmorMaterial, armorHeatTreatedIronChestID, 1).setUnlocalizedName("HeatTreatedIronChest");
- armorHeatTreatedIronLegs = new HeatTreatedIronArmor(HeatTreatedIronArmorMaterial, armorHeatTreatedIronLegsID, 2).setUnlocalizedName("HeatTreatedIronLegs");
- armorHeatTreatedIronBoots = new HeatTreatedIronArmor(HeatTreatedIronArmorMaterial, armorHeatTreatedIronBootsID, 3).setUnlocalizedName("HeatTreatedIronBoots");
- //Steel
- armorSteelHelm = new SteelArmor(SteelArmorMaterial, armorSteelHelmID, 0).setUnlocalizedName("SteelHelm");
- armorSteelChest = new SteelArmor(SteelArmorMaterial, armorSteelChestID, 1).setUnlocalizedName("SteelChest");
- armorSteelLegs = new SteelArmor(SteelArmorMaterial, armorSteelLegsID, 2).setUnlocalizedName("SteelLegs");
- armorSteelBoots = new SteelArmor(SteelArmorMaterial, armorSteelBootsID, 3).setUnlocalizedName("SteelBoots");
- //Bronze
- armorBronzeHelm = new BronzeArmor(BronzeArmorMaterial, armorBronzeHelmID, 0).setUnlocalizedName("BronzeHelm");
- armorBronzeChest = new BronzeArmor(BronzeArmorMaterial, armorBronzeChestID, 1).setUnlocalizedName("BronzeChest");
- armorBronzeLegs = new BronzeArmor(BronzeArmorMaterial, armorBronzeLegsID, 2).setUnlocalizedName("BronzeLegs");
- armorBronzeBoots = new BronzeArmor(BronzeArmorMaterial, armorBronzeBootsID, 3).setUnlocalizedName("BronzeBoots");
- /**
- * Registreerd een item
- */
- //Items
- //Material
- GameRegistry.registerItem(itemGlowingIronIngot, "GlowingIronIngot");
- GameRegistry.registerItem(itemHeatTreatedIronIngot, "HeatTreatedIronIngot");
- GameRegistry.registerItem(itemRustyIronIngot, "RustyIronIngot");
- GameRegistry.registerItem(itemAluminiumIngot, "AluminiumIngot");
- GameRegistry.registerItem(itemCopperIngot, "CopperIngot");
- GameRegistry.registerItem(itemCopperOxideIngot, "CopperOxideIngot");
- GameRegistry.registerItem(itemTinIngot, "TinIngot");
- GameRegistry.registerItem(itemBronzeIngot, "BronzeIngot");
- GameRegistry.registerItem(itemSteelIngot, "SteelIngot");
- GameRegistry.registerItem(itemPlatinumIngot, "PlatinumIngot");
- GameRegistry.registerItem(itemAmazoniteCrystal, "AmazoniteCrystal");
- //Stuff
- GameRegistry.registerItem(itemIronStick, "IronStick");
- GameRegistry.registerItem(itemRustPowder, "RustPowder");
- GameRegistry.registerItem(itemAluminiumPowder, "AluminiumPowder");
- GameRegistry.registerItem(itemThermite, "Thermite");
- //Fuel
- GameRegistry.registerItem(fuelMaltBucket, "MaltBucket");
- GameRegistry.registerItem(fuelBioEthanolBucket, "BioEthanolBucket");
- GameRegistry.registerItem(fuelMagnezium, "Magnezium");
- //Doors
- GameRegistry.registerItem(itemCopperDoor, "CopperDoor");
- GameRegistry.registerItem(itemCopperOxideDoor, "CopperOxideDoor");
- GameRegistry.registerItem(itemGoldenDoor, "GoldenDoor");
- //Blocks
- //Ores
- GameRegistry.registerBlock(oreAluminiumOre, "AluminiumOre");
- GameRegistry.registerBlock(oreCopperOre, "CopperOre");
- GameRegistry.registerBlock(oreTinOre, "TinOre");
- GameRegistry.registerBlock(orePlatinumOre, "PlatinumOre");
- GameRegistry.registerBlock(oreAmazoniteOre, "AmazoniteOre");
- GameRegistry.registerBlock(oreMagneziumOre, "MagneziumOre");
- //Material Blocks
- GameRegistry.registerBlock(blockAluminiumBlock, "AluminiumBlock");
- GameRegistry.registerBlock(blockCopperBlock, "CopperBlock");
- GameRegistry.registerBlock(blockCopperOxideBlock, "CopperOxideBlock");
- GameRegistry.registerBlock(blockTinBlock, "TinBlock");
- GameRegistry.registerBlock(blockPlatinumBlock, "PlatinumBlock");
- GameRegistry.registerBlock(blockAmazoniteBlock, "AmazoniteBlock");
- GameRegistry.registerBlock(blockBronzeBlock, "BronzeBlock");
- GameRegistry.registerBlock(blockSteelBlock, "SteelBlock");
- GameRegistry.registerBlock(blockHeatTreatedIronBlock, "HeatTreatedIronBlock");
- //Doors
- GameRegistry.registerBlock(entityCopperDoor, "blockCopperDoor");
- GameRegistry.registerBlock(entityCopperOxideDoor, "blockCopperOxideDoor");
- GameRegistry.registerBlock(entityGoldenDoor, "blockGoldenDoor");
- //Fences
- GameRegistry.registerBlock(blockIronFence, "IronFence");
- GameRegistry.registerBlock(blockIronFenceGate, "IronFenceGate");
- //Tools
- //Glowing
- GameRegistry.registerItem(toolGlowingSword, "GlowingSword");
- GameRegistry.registerItem(toolGlowingPickaxe, "GlowingPickaxe");
- GameRegistry.registerItem(toolGlowingAxe, "GlowingAxe");
- GameRegistry.registerItem(toolGlowingShovel, "GlowingShovel");
- GameRegistry.registerItem(toolGlowingHoe, "GlowingHoe");
- //Heat Treated Iron
- GameRegistry.registerItem(toolHeatTreatedIronSword, "HeatTreatedIronSword");
- GameRegistry.registerItem(toolHeatTreatedIronPickaxe, "HeatTreatedIronPickaxe");
- GameRegistry.registerItem(toolHeatTreatedIronAxe, "HeatTreatedIronAxe");
- GameRegistry.registerItem(toolHeatTreatedIronShovel, "HeatTreatedIronShovel");
- GameRegistry.registerItem(toolHeatTreatedIronHoe, "HeatTreatedIronHoe");
- //Steel
- GameRegistry.registerItem(toolSteelSword, "SteelSword");
- GameRegistry.registerItem(toolSteelPickaxe, "SteelPickaxe");
- GameRegistry.registerItem(toolSteelAxe, "SteelAxe");
- GameRegistry.registerItem(toolSteelShovel, "SteelShovel");
- GameRegistry.registerItem(toolSteelHoe, "SteelHoe");
- //Armory
- //Heat Treated Iron
- GameRegistry.registerItem(armorHeatTreatedIronHelm, "HeatTreatedIronHelm");
- GameRegistry.registerItem(armorHeatTreatedIronChest, "HeatTreatedIronChest");
- GameRegistry.registerItem(armorHeatTreatedIronLegs, "HeatTreatedIronLegs");
- GameRegistry.registerItem(armorHeatTreatedIronBoots, "HeatTreatedIronBoots");
- //Steel
- GameRegistry.registerItem(armorSteelHelm, "SteelHelm");
- GameRegistry.registerItem(armorSteelChest, "SteelChest");
- GameRegistry.registerItem(armorSteelLegs, "SteelLegs");
- GameRegistry.registerItem(armorSteelBoots, "SteelBoots");
- //Bronze
- GameRegistry.registerItem(armorBronzeHelm, "BronzeHelm");
- GameRegistry.registerItem(armorBronzeChest, "BronzeChest");
- GameRegistry.registerItem(armorBronzeLegs, "BronzeLegs");
- GameRegistry.registerItem(armorBronzeBoots, "BronzeBoots");
- }
- @EventHandler
- public void Init(FMLInitializationEvent event){
- //ItemStacks
- ItemStack MaltBucketstack = new ItemStack(Smithing.fuelMaltBucket);
- ItemStack BioEthanolstack = new ItemStack(Smithing.fuelBioEthanolBucket);
- ItemStack AluminiumOrestack = new ItemStack(Smithing.oreAluminiumOre);
- ItemStack AluminiumIngotstack = new ItemStack(Smithing.itemAluminiumIngot);
- ItemStack CopperOrestack = new ItemStack(Smithing.oreCopperOre);
- ItemStack CopperIngotstack = new ItemStack(Smithing.itemCopperIngot);
- ItemStack TinOrestack = new ItemStack(Smithing.oreTinOre);
- ItemStack TinIngotstack = new ItemStack(Smithing.itemTinIngot);
- ItemStack PlatinumOrestack = new ItemStack(Smithing.orePlatinumOre);
- ItemStack PlatinumIngotstack = new ItemStack(Smithing.itemPlatinumIngot);
- //Items
- //Fuel
- GameRegistry.addShapelessRecipe(new ItemStack(Smithing.fuelMaltBucket), new Object[] { Items.reeds, Items.reeds, Items.reeds, Items.water_bucket.setContainerItem(null)});
- GameRegistry.addShapelessRecipe(new ItemStack(Smithing.fuelBioEthanolBucket), new Object[] { Items.reeds, Items.reeds, Items.water_bucket});
- //Stuff
- GameRegistry.addShapelessRecipe(new ItemStack(Smithing.itemThermite, 1), Smithing.itemAluminiumPowder, Smithing.itemRustPowder);
- GameRegistry.addShapelessRecipe(new ItemStack(Smithing.itemRustPowder, 1), Smithing.itemRustyIronIngot);
- //Blocks
- //Material Blocks
- GameRegistry.addShapelessRecipe(new ItemStack(Smithing.blockAluminiumBlock, 1), Smithing.itemAluminiumIngot, Smithing.itemAluminiumIngot, Smithing.itemAluminiumIngot, Smithing.itemAluminiumIngot, Smithing.itemAluminiumIngot, Smithing.itemAluminiumIngot, Smithing.itemAluminiumIngot, Smithing.itemAluminiumIngot, Smithing.itemAluminiumIngot);
- GameRegistry.addShapelessRecipe(new ItemStack(Smithing.blockCopperBlock, 1), Smithing.itemCopperIngot, Smithing.itemCopperIngot, Smithing.itemCopperIngot, Smithing.itemCopperIngot, Smithing.itemCopperIngot, Smithing.itemCopperIngot, Smithing.itemCopperIngot, Smithing.itemCopperIngot, Smithing.itemCopperIngot);
- GameRegistry.addShapelessRecipe(new ItemStack(Smithing.blockCopperOxideBlock, 1), Smithing.itemCopperOxideIngot, Smithing.itemCopperOxideIngot, Smithing.itemCopperOxideIngot, Smithing.itemCopperOxideIngot, Smithing.itemCopperOxideIngot, Smithing.itemCopperOxideIngot, Smithing.itemCopperOxideIngot, Smithing.itemCopperOxideIngot, Smithing.itemCopperOxideIngot);
- GameRegistry.addShapelessRecipe(new ItemStack(Smithing.blockTinBlock, 1), Smithing.itemTinIngot, Smithing.itemTinIngot, Smithing.itemTinIngot, Smithing.itemTinIngot, Smithing.itemTinIngot, Smithing.itemTinIngot, Smithing.itemTinIngot, Smithing.itemTinIngot, Smithing.itemTinIngot);
- GameRegistry.addShapelessRecipe(new ItemStack(Smithing.blockPlatinumBlock, 1), Smithing.itemPlatinumIngot, Smithing.itemPlatinumIngot, Smithing.itemPlatinumIngot, Smithing.itemPlatinumIngot, Smithing.itemPlatinumIngot, Smithing.itemPlatinumIngot, Smithing.itemPlatinumIngot, Smithing.itemPlatinumIngot, Smithing.itemPlatinumIngot);
- GameRegistry.addShapelessRecipe(new ItemStack(Smithing.blockAmazoniteBlock, 1), Smithing.itemAmazoniteCrystal, Smithing.itemAmazoniteCrystal, Smithing.itemAmazoniteCrystal, Smithing.itemAmazoniteCrystal, Smithing.itemAmazoniteCrystal, Smithing.itemAmazoniteCrystal, Smithing.itemAmazoniteCrystal, Smithing.itemAmazoniteCrystal, Smithing.itemAmazoniteCrystal);
- GameRegistry.addShapelessRecipe(new ItemStack(Smithing.blockBronzeBlock, 1), Smithing.itemBronzeIngot, Smithing.itemBronzeIngot, Smithing.itemBronzeIngot, Smithing.itemBronzeIngot, Smithing.itemBronzeIngot, Smithing.itemBronzeIngot, Smithing.itemBronzeIngot, Smithing.itemBronzeIngot, Smithing.itemBronzeIngot);
- GameRegistry.addShapelessRecipe(new ItemStack(Smithing.blockSteelBlock, 1), Smithing.itemSteelIngot, Smithing.itemSteelIngot, Smithing.itemSteelIngot, Smithing.itemSteelIngot, Smithing.itemSteelIngot, Smithing.itemSteelIngot, Smithing.itemSteelIngot, Smithing.itemSteelIngot, Smithing.itemSteelIngot);
- GameRegistry.addShapelessRecipe(new ItemStack(Smithing.blockHeatTreatedIronBlock, 1), Smithing.itemHeatTreatedIronIngot, Smithing.itemHeatTreatedIronIngot, Smithing.itemHeatTreatedIronIngot, Smithing.itemHeatTreatedIronIngot, Smithing.itemHeatTreatedIronIngot, Smithing.itemHeatTreatedIronIngot, Smithing.itemHeatTreatedIronIngot, Smithing.itemHeatTreatedIronIngot, Smithing.itemHeatTreatedIronIngot);
- //Tools
- //Glowing
- GameRegistry.addShapedRecipe(new ItemStack(Smithing.toolGlowingSword, 1), "X", "X", "Y", 'X', Smithing.itemGlowingIronIngot, 'Y', Smithing.itemIronStick);
- GameRegistry.addShapedRecipe(new ItemStack(Smithing.toolGlowingPickaxe, 1), "XXX", " Y ", " Y ", 'X', Smithing.itemGlowingIronIngot, 'Y', Smithing.itemIronStick);
- GameRegistry.addShapedRecipe(new ItemStack(Smithing.toolGlowingAxe, 1), "XX ", "XY ", " Y ", 'X', Smithing.itemGlowingIronIngot, 'Y', Smithing.itemIronStick);
- GameRegistry.addShapedRecipe(new ItemStack(Smithing.toolGlowingShovel, 1), "X", "Y", "Y", 'X', Smithing.itemGlowingIronIngot, 'Y', Smithing.itemIronStick);
- GameRegistry.addShapedRecipe(new ItemStack(Smithing.toolGlowingHoe, 1), "XX ", " Y ", " Y ", 'X', Smithing.itemGlowingIronIngot, 'Y', Smithing.itemIronStick);
- //Heat Treated Iron
- GameRegistry.addShapedRecipe(new ItemStack(Smithing.toolHeatTreatedIronSword, 1), "X", "X", "Y", 'X', Smithing.itemHeatTreatedIronIngot, 'Y', Smithing.itemIronStick);
- GameRegistry.addShapedRecipe(new ItemStack(Smithing.toolHeatTreatedIronPickaxe, 1), "XXX", " Y ", 'X', Smithing.itemHeatTreatedIronIngot, 'Y', Smithing.itemIronStick);
- GameRegistry.addShapedRecipe(new ItemStack(Smithing.toolHeatTreatedIronAxe, 1), "XX ", "XY ", " Y ", 'X', Smithing.itemHeatTreatedIronIngot, 'Y', Smithing.itemIronStick);
- GameRegistry.addShapedRecipe(new ItemStack(Smithing.toolHeatTreatedIronShovel, 1), "X", "Y", "Y", 'X', Smithing.itemHeatTreatedIronIngot, 'Y', Smithing.itemIronStick);
- GameRegistry.addShapedRecipe(new ItemStack(Smithing.toolHeatTreatedIronHoe, 1), "XX ", " Y ", " Y ", 'X', Smithing.itemHeatTreatedIronIngot, 'Y', Items.stick);
- //Furnace
- GameRegistry.addSmelting(MaltBucketstack, BioEthanolstack, (float) 0.35);
- GameRegistry.addSmelting(AluminiumOrestack, AluminiumIngotstack, (float) 0.35);
- GameRegistry.addSmelting(CopperOrestack, CopperIngotstack, (float) 0.35);
- GameRegistry.addSmelting(TinOrestack, TinIngotstack, (float) 0.35);
- GameRegistry.addSmelting(PlatinumOrestack, PlatinumIngotstack, (float) 0.35);
- //Fuel Handler
- GameRegistry.registerFuelHandler(new FuelHandler());
- }
- @EventHandler
- public void PostInit(FMLPostInitializationEvent postEvent){
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment