Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.mod.blaze.init;
- import com.mod.blaze.Reference;
- import com.mod.blaze.init.items.ItemSwordUra;
- import com.mod.blaze.init.items.PickaxeItemUra;
- import com.mod.blaze.items.ItemArmorPla;
- import com.mod.blaze.items.ItemArmorUra;
- import com.mod.blaze.itnit.items.ItemSwordPl;
- import cpw.mods.fml.common.registry.GameRegistry;
- import net.minecraft.creativetab.CreativeTabs;
- import net.minecraft.init.Items;
- import net.minecraft.item.Item;
- import net.minecraft.item.ItemStack;
- import net.minecraft.item.Item.ToolMaterial;
- import net.minecraft.item.ItemArmor.ArmorMaterial;
- import net.minecraftforge.common.util.EnumHelper;
- public class ItemMod {
- public static ToolMaterial toolPla = EnumHelper.addToolMaterial("toolpla", 7, 3000, 8, 4, 10);
- public static ToolMaterial toolUra = EnumHelper.addToolMaterial("toolUra", 10, 5000, 12, 6, 10);
- public static ArmorMaterial armorUra = EnumHelper.addArmorMaterial("ArmorUra", 40, new int[] {2, 8, 6, 4}, 15);
- public static ArmorMaterial armorpla = EnumHelper.addArmorMaterial("armorpla", 40, new int[] {2,7,6,4}, 10);
- public static Item item_uranium, item_sword, casqueArmor, plastronArmor, jambiereArmor, botteArmor, item_ura, item_urapick, casquepla, plastronpla, jambierepla, bottepla, item_platine, item_swordpl;
- public static void init()
- {
- item_ura = new Item().setUnlocalizedName("item_ura").setCreativeTab(CreativeTabs.tabMaterials).setTextureName(Reference.MOD_ID + ":item_ura");
- item_uranium = new Item().setUnlocalizedName("item_uranium").setCreativeTab(CreativeTabs.tabMaterials).setTextureName(Reference.MOD_ID + ":item_uranium");
- item_sword = new ItemSwordUra(ItemMod.toolUra).setCreativeTab(CreativeTabs.tabCombat).setTextureName(Reference.MOD_ID + ":item_sword").setUnlocalizedName("item_sword");
- casqueArmor = new ItemArmorUra(armorUra, 0).setCreativeTab(CreativeTabs.tabCombat).setTextureName(Reference.MOD_ID + ":casqueArmor").setUnlocalizedName("casqueArmor");
- plastronArmor = new ItemArmorUra(armorUra, 1).setCreativeTab(CreativeTabs.tabCombat).setTextureName(Reference.MOD_ID + ":plastronArmor").setUnlocalizedName("plastronArmor");
- jambiereArmor = new ItemArmorUra(armorUra, 2).setCreativeTab(CreativeTabs.tabCombat).setTextureName(Reference.MOD_ID + ":pantalonArmor").setUnlocalizedName("jambiereArmor");
- botteArmor = new ItemArmorUra(armorUra, 3).setCreativeTab(CreativeTabs.tabCombat).setTextureName(Reference.MOD_ID + ":botteArmor").setUnlocalizedName("botteArmor");
- item_urapick = new PickaxeItemUra(ItemMod.toolUra).setCreativeTab(CreativeTabs.tabTools).setTextureName(Reference.MOD_ID + ":item_urapick").setUnlocalizedName("item_urapick");
- casqueArmor = new ItemArmorUra(armorUra, 0).setCreativeTab(CreativeTabs.tabCombat).setTextureName(Reference.MOD_ID + ":casqueArmor").setUnlocalizedName("casqueArmor");
- plastronArmor = new ItemArmorUra(armorUra, 1).setCreativeTab(CreativeTabs.tabCombat).setTextureName(Reference.MOD_ID + ":plastronArmor").setUnlocalizedName("plastronArmor");
- jambiereArmor = new ItemArmorUra(armorUra, 2).setCreativeTab(CreativeTabs.tabCombat).setTextureName(Reference.MOD_ID + ":pantalonArmor").setUnlocalizedName("jambiereArmor");
- botteArmor = new ItemArmorUra(armorUra, 3).setCreativeTab(CreativeTabs.tabCombat).setTextureName(Reference.MOD_ID + ":botteArmor").setUnlocalizedName("botteArmor");
- item_urapick = new PickaxeItemUra(ItemMod.toolUra).setCreativeTab(CreativeTabs.tabTools).setTextureName(Reference.MOD_ID + ":item_urapick").setUnlocalizedName("item_urapick");
- casquepla = new ItemArmorPla(armorpla, 0).setCreativeTab(CreativeTabs.tabCombat).setTextureName(Reference.MOD_ID + ":platinc").setUnlocalizedName("casquepla");
- plastronpla = new ItemArmorPla(armorpla, 1).setCreativeTab(CreativeTabs.tabCombat).setTextureName(Reference.MOD_ID + ":platinechest").setUnlocalizedName("plastronpla");
- jambierepla = new ItemArmorPla(armorpla, 2).setCreativeTab(CreativeTabs.tabCombat).setTextureName(Reference.MOD_ID + ":platinej").setUnlocalizedName("jambierepla");
- bottepla = new ItemArmorPla(armorpla, 3).setCreativeTab(CreativeTabs.tabCombat).setTextureName(Reference.MOD_ID + ":platinb").setUnlocalizedName("bottepla");
- item_platine = new Item().setUnlocalizedName("item_platine").setCreativeTab(CreativeTabs.tabMaterials).setTextureName(Reference.MOD_ID + ":item_platine");
- item_swordpl = new ItemSwordPl(ItemMod.toolPla).setCreativeTab(CreativeTabs.tabCombat).setTextureName(Reference.MOD_ID + ":item_swordpl").setUnlocalizedName("item_swordpl");
- }
- public static void register()
- {
- GameRegistry.registerItem(item_platine, "item_platine");
- GameRegistry.registerItem(item_urapick, "item_urapick");
- GameRegistry.registerItem(item_uranium,"item_uranium" );
- GameRegistry.registerItem(item_sword, "item_sword");
- GameRegistry.registerItem(casqueArmor, "casqueArmor");
- GameRegistry.registerItem(plastronArmor, "plastronArmor");
- GameRegistry.registerItem(jambiereArmor, "jambiereArmor");
- GameRegistry.registerItem(botteArmor, "botteArmor");
- GameRegistry.registerItem(item_ura, "item_ura");
- GameRegistry.registerItem(item_swordpl, "item_swordpl");
- GameRegistry.addRecipe(new ItemStack(ItemMod.item_sword, 1), new Object[]{" 1 ", " 1 ", " 2 ", '1', ItemMod.item_ura, '2', Items.stick });
- GameRegistry.addSmelting(BlockMod.block_ura, new ItemStack(ItemMod.item_ura, 1), 1.0F);
- GameRegistry.addRecipe(new ItemStack(ItemMod.casqueArmor, 1), new Object[]{"111", "1 1", '1', ItemMod.item_ura});
- GameRegistry.addRecipe(new ItemStack(ItemMod.plastronArmor, 1), new Object[]{"1 1", "111", "111", '1', ItemMod.item_ura});
- GameRegistry.addRecipe(new ItemStack(ItemMod.jambiereArmor, 1), new Object[]{"111", "1 1", "1 1", '1', ItemMod.item_ura});
- GameRegistry.addRecipe(new ItemStack(ItemMod.botteArmor, 1), new Object[]{"1 1", "1 1", '1', ItemMod.item_ura});
- GameRegistry.addRecipe(new ItemStack(ItemMod.item_ura, 9), new Object[]{" 2 ", '2', BlockMod.block_uranium});
- GameRegistry.addRecipe(new ItemStack(BlockMod.block_uranium, 1), new Object[]{"111", "111", "111", '1', ItemMod.item_ura});
- GameRegistry.addRecipe(new ItemStack(ItemMod.item_urapick, 1), new Object[]{"111", " 2 ", " 2 ", '1', ItemMod.item_ura, '2', Items.stick});
- GameRegistry.registerItem(casquepla, "casquepla");
- GameRegistry.registerItem(plastronpla, "plastronpla");
- GameRegistry.registerItem(jambierepla, "jambierepla");
- GameRegistry.registerItem(bottepla, "bottepla");
- GameRegistry.addRecipe(new ItemStack(ItemMod.casquepla, 1), new Object[]{"PPP", "P P", 'P', ItemMod.item_platine});
- GameRegistry.addRecipe(new ItemStack(ItemMod.plastronpla, 1), new Object[]{"P P", "PPP", "PPP", 'P', ItemMod.item_platine});
- GameRegistry.addRecipe(new ItemStack(ItemMod.jambierepla, 1), new Object[]{"PPP", "P P", "P P", 'P', ItemMod.item_platine});
- GameRegistry.addRecipe(new ItemStack(ItemMod.bottepla, 1), new Object[]{"P P", "P P", 'P', ItemMod.item_platine});
- GameRegistry.addRecipe(new ItemStack(ItemMod.item_swordpl, 1), new Object[]{" P ", " P ", " 2 ", 'P', ItemMod.item_platine, '2', Items.stick });
- GameRegistry.addRecipe(new ItemStack(BlockMod.plat, 1), new Object[]{"PPP", "PPP", "PPP", 'P', ItemMod.item_platine});
- GameRegistry.addSmelting(BlockMod.platine, new ItemStack(ItemMod.item_platine, 1), 1.0F);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement