Advertisement
Guest User

Untitled

a guest
Aug 24th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.21 KB | None | 0 0
  1. package com.mod.blaze.init;
  2.  
  3. import com.mod.blaze.Reference;
  4. import com.mod.blaze.init.items.ItemSwordUra;
  5. import com.mod.blaze.init.items.PickaxeItemUra;
  6. import com.mod.blaze.items.ItemArmorPla;
  7. import com.mod.blaze.items.ItemArmorUra;
  8. import com.mod.blaze.itnit.items.ItemSwordPl;
  9.  
  10. import cpw.mods.fml.common.registry.GameRegistry;
  11. import net.minecraft.creativetab.CreativeTabs;
  12. import net.minecraft.init.Items;
  13. import net.minecraft.item.Item;
  14. import net.minecraft.item.ItemStack;
  15. import net.minecraft.item.Item.ToolMaterial;
  16. import net.minecraft.item.ItemArmor.ArmorMaterial;
  17. import net.minecraftforge.common.util.EnumHelper;
  18.  
  19. public class ItemMod {
  20.  
  21. public static ToolMaterial toolPla = EnumHelper.addToolMaterial("toolpla", 7, 3000, 8, 4, 10);
  22. public static ToolMaterial toolUra = EnumHelper.addToolMaterial("toolUra", 10, 5000, 12, 6, 10);
  23. public static ArmorMaterial armorUra = EnumHelper.addArmorMaterial("ArmorUra", 40, new int[] {2, 8, 6, 4}, 15);
  24. public static ArmorMaterial armorpla = EnumHelper.addArmorMaterial("armorpla", 40, new int[] {2,7,6,4}, 10);
  25.  
  26. public static Item item_uranium, item_sword, casqueArmor, plastronArmor, jambiereArmor, botteArmor, item_ura, item_urapick, casquepla, plastronpla, jambierepla, bottepla, item_platine, item_swordpl;
  27.  
  28. public static void init()
  29. {
  30.  
  31. item_ura = new Item().setUnlocalizedName("item_ura").setCreativeTab(CreativeTabs.tabMaterials).setTextureName(Reference.MOD_ID + ":item_ura");
  32. item_uranium = new Item().setUnlocalizedName("item_uranium").setCreativeTab(CreativeTabs.tabMaterials).setTextureName(Reference.MOD_ID + ":item_uranium");
  33. item_sword = new ItemSwordUra(ItemMod.toolUra).setCreativeTab(CreativeTabs.tabCombat).setTextureName(Reference.MOD_ID + ":item_sword").setUnlocalizedName("item_sword");
  34. casqueArmor = new ItemArmorUra(armorUra, 0).setCreativeTab(CreativeTabs.tabCombat).setTextureName(Reference.MOD_ID + ":casqueArmor").setUnlocalizedName("casqueArmor");
  35. plastronArmor = new ItemArmorUra(armorUra, 1).setCreativeTab(CreativeTabs.tabCombat).setTextureName(Reference.MOD_ID + ":plastronArmor").setUnlocalizedName("plastronArmor");
  36. jambiereArmor = new ItemArmorUra(armorUra, 2).setCreativeTab(CreativeTabs.tabCombat).setTextureName(Reference.MOD_ID + ":pantalonArmor").setUnlocalizedName("jambiereArmor");
  37. botteArmor = new ItemArmorUra(armorUra, 3).setCreativeTab(CreativeTabs.tabCombat).setTextureName(Reference.MOD_ID + ":botteArmor").setUnlocalizedName("botteArmor");
  38. item_urapick = new PickaxeItemUra(ItemMod.toolUra).setCreativeTab(CreativeTabs.tabTools).setTextureName(Reference.MOD_ID + ":item_urapick").setUnlocalizedName("item_urapick");
  39. casqueArmor = new ItemArmorUra(armorUra, 0).setCreativeTab(CreativeTabs.tabCombat).setTextureName(Reference.MOD_ID + ":casqueArmor").setUnlocalizedName("casqueArmor");
  40. plastronArmor = new ItemArmorUra(armorUra, 1).setCreativeTab(CreativeTabs.tabCombat).setTextureName(Reference.MOD_ID + ":plastronArmor").setUnlocalizedName("plastronArmor");
  41. jambiereArmor = new ItemArmorUra(armorUra, 2).setCreativeTab(CreativeTabs.tabCombat).setTextureName(Reference.MOD_ID + ":pantalonArmor").setUnlocalizedName("jambiereArmor");
  42. botteArmor = new ItemArmorUra(armorUra, 3).setCreativeTab(CreativeTabs.tabCombat).setTextureName(Reference.MOD_ID + ":botteArmor").setUnlocalizedName("botteArmor");
  43. item_urapick = new PickaxeItemUra(ItemMod.toolUra).setCreativeTab(CreativeTabs.tabTools).setTextureName(Reference.MOD_ID + ":item_urapick").setUnlocalizedName("item_urapick");
  44. casquepla = new ItemArmorPla(armorpla, 0).setCreativeTab(CreativeTabs.tabCombat).setTextureName(Reference.MOD_ID + ":platinc").setUnlocalizedName("casquepla");
  45. plastronpla = new ItemArmorPla(armorpla, 1).setCreativeTab(CreativeTabs.tabCombat).setTextureName(Reference.MOD_ID + ":platinechest").setUnlocalizedName("plastronpla");
  46. jambierepla = new ItemArmorPla(armorpla, 2).setCreativeTab(CreativeTabs.tabCombat).setTextureName(Reference.MOD_ID + ":platinej").setUnlocalizedName("jambierepla");
  47. bottepla = new ItemArmorPla(armorpla, 3).setCreativeTab(CreativeTabs.tabCombat).setTextureName(Reference.MOD_ID + ":platinb").setUnlocalizedName("bottepla");
  48. item_platine = new Item().setUnlocalizedName("item_platine").setCreativeTab(CreativeTabs.tabMaterials).setTextureName(Reference.MOD_ID + ":item_platine");
  49. item_swordpl = new ItemSwordPl(ItemMod.toolPla).setCreativeTab(CreativeTabs.tabCombat).setTextureName(Reference.MOD_ID + ":item_swordpl").setUnlocalizedName("item_swordpl");
  50.  
  51. }
  52.  
  53.  
  54. public static void register()
  55. {
  56. GameRegistry.registerItem(item_platine, "item_platine");
  57. GameRegistry.registerItem(item_urapick, "item_urapick");
  58. GameRegistry.registerItem(item_uranium,"item_uranium" );
  59. GameRegistry.registerItem(item_sword, "item_sword");
  60. GameRegistry.registerItem(casqueArmor, "casqueArmor");
  61. GameRegistry.registerItem(plastronArmor, "plastronArmor");
  62. GameRegistry.registerItem(jambiereArmor, "jambiereArmor");
  63. GameRegistry.registerItem(botteArmor, "botteArmor");
  64. GameRegistry.registerItem(item_ura, "item_ura");
  65. GameRegistry.registerItem(item_swordpl, "item_swordpl");
  66. GameRegistry.addRecipe(new ItemStack(ItemMod.item_sword, 1), new Object[]{" 1 ", " 1 ", " 2 ", '1', ItemMod.item_ura, '2', Items.stick });
  67. GameRegistry.addSmelting(BlockMod.block_ura, new ItemStack(ItemMod.item_ura, 1), 1.0F);
  68. GameRegistry.addRecipe(new ItemStack(ItemMod.casqueArmor, 1), new Object[]{"111", "1 1", '1', ItemMod.item_ura});
  69. GameRegistry.addRecipe(new ItemStack(ItemMod.plastronArmor, 1), new Object[]{"1 1", "111", "111", '1', ItemMod.item_ura});
  70. GameRegistry.addRecipe(new ItemStack(ItemMod.jambiereArmor, 1), new Object[]{"111", "1 1", "1 1", '1', ItemMod.item_ura});
  71. GameRegistry.addRecipe(new ItemStack(ItemMod.botteArmor, 1), new Object[]{"1 1", "1 1", '1', ItemMod.item_ura});
  72. GameRegistry.addRecipe(new ItemStack(ItemMod.item_ura, 9), new Object[]{" 2 ", '2', BlockMod.block_uranium});
  73. GameRegistry.addRecipe(new ItemStack(BlockMod.block_uranium, 1), new Object[]{"111", "111", "111", '1', ItemMod.item_ura});
  74. GameRegistry.addRecipe(new ItemStack(ItemMod.item_urapick, 1), new Object[]{"111", " 2 ", " 2 ", '1', ItemMod.item_ura, '2', Items.stick});
  75. GameRegistry.registerItem(casquepla, "casquepla");
  76. GameRegistry.registerItem(plastronpla, "plastronpla");
  77. GameRegistry.registerItem(jambierepla, "jambierepla");
  78. GameRegistry.registerItem(bottepla, "bottepla");
  79. GameRegistry.addRecipe(new ItemStack(ItemMod.casquepla, 1), new Object[]{"PPP", "P P", 'P', ItemMod.item_platine});
  80. GameRegistry.addRecipe(new ItemStack(ItemMod.plastronpla, 1), new Object[]{"P P", "PPP", "PPP", 'P', ItemMod.item_platine});
  81. GameRegistry.addRecipe(new ItemStack(ItemMod.jambierepla, 1), new Object[]{"PPP", "P P", "P P", 'P', ItemMod.item_platine});
  82. GameRegistry.addRecipe(new ItemStack(ItemMod.bottepla, 1), new Object[]{"P P", "P P", 'P', ItemMod.item_platine});
  83. GameRegistry.addRecipe(new ItemStack(ItemMod.item_swordpl, 1), new Object[]{" P ", " P ", " 2 ", 'P', ItemMod.item_platine, '2', Items.stick });
  84. GameRegistry.addRecipe(new ItemStack(BlockMod.plat, 1), new Object[]{"PPP", "PPP", "PPP", 'P', ItemMod.item_platine});
  85. GameRegistry.addSmelting(BlockMod.platine, new ItemStack(ItemMod.item_platine, 1), 1.0F);
  86. }
  87.  
  88. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement