Guest User

Untitled

a guest
Aug 9th, 2018
81
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package fr.iprox.titan.init;
  2.  
  3. import cpw.mods.fml.common.registry.GameRegistry;
  4. import fr.iprox.titan.reference;
  5. import fr.iprox.titan.items.ItemArmorTitane;
  6. import fr.iprox.titan.items.ItemAxeTitane;
  7. import fr.iprox.titan.items.ItemPickaxeTitane;
  8. import fr.iprox.titan.items.ItemShovelTitane;
  9. import fr.iprox.titan.items.ItemSwordTitane;
  10. import net.minecraft.creativetab.CreativeTabs;
  11. import net.minecraft.init.Items;
  12. import net.minecraft.item.Item;
  13. import net.minecraft.item.ItemStack;
  14. import net.minecraft.item.Item.ToolMaterial;
  15. import net.minecraft.item.ItemArmor.ArmorMaterial;
  16. import net.minecraftforge.common.util.EnumHelper;
  17.  
  18. public class ItemMod {
  19.  
  20. public static ToolMaterial toolTitane = EnumHelper.addToolMaterial("toolTitane", 4, 5000, 15, 6, 30);
  21. public static ArmorMaterial armorTitane = EnumHelper.addArmorMaterial("armorTitane", 50, new int[]{5, 10, 8, 5}, 30);
  22.  
  23.  
  24. public static Item Lingot_De_Titane;
  25. public static Item item_sword;
  26. public static Item item_pickaxe;
  27. public static Item item_axe;
  28. public static Item casqueArmor;
  29. public static Item plastronArmor;
  30. public static Item pantalonArmor;
  31. public static Item bottesArmor;
  32. public static Item shovelTitane;
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40. public static void init()
  41. {
  42.  
  43. Lingot_De_Titane = new Item().setUnlocalizedName("Lingot_De_Titanium") .setCreativeTab(CreativeTabs.tabMaterials) .setTextureName(reference.MOD_ID + ":Lingot_De_Titanium");
  44. item_sword = new ItemSwordTitane(ItemMod.toolTitane).setCreativeTab(CreativeTabs.tabCombat) .setTextureName(reference.MOD_ID + ":item_sword") .setUnlocalizedName("item_sword");
  45. item_pickaxe = new ItemPickaxeTitane(ItemMod.toolTitane) .setCreativeTab(CreativeTabs.tabTools) .setTextureName(reference.MOD_ID + ":item_pickaxe") .setUnlocalizedName("item_pickaxe");
  46. item_axe = new ItemAxeTitane(ItemMod.toolTitane) .setCreativeTab(CreativeTabs.tabTools) .setUnlocalizedName("item_axe") .setTextureName(reference.MOD_ID + ":item_axe");
  47. casqueArmor = new ItemArmorTitane(armorTitane, 0).setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("casqueArmor").setTextureName(reference.MOD_ID + ":casqueArmor");
  48. plastronArmor = new ItemArmorTitane(armorTitane, 1).setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("plastronArmor").setTextureName(reference.MOD_ID + ":plastronArmor");
  49. pantalonArmor = new ItemArmorTitane(armorTitane, 2).setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("pantalonArmor").setTextureName(reference.MOD_ID + ":pantalonArmor");
  50. bottesArmor = new ItemArmorTitane(armorTitane, 3).setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("bottesArmor").setTextureName(reference.MOD_ID + ":bottesArmor");
  51. shovelTitane = new ItemShovelTitane(ItemMod.toolTitane).setCreativeTab(CreativeTabs.tabTools) .setUnlocalizedName("shovelTitane") .setTextureName(reference.MOD_ID + ":shovelTitane");
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62. }
  63.  
  64.  
  65. public static void register()
  66. {
  67.  
  68.  
  69. GameRegistry.registerItem(Lingot_De_Titane, "Lingot_De_Titane");
  70. GameRegistry.registerItem(item_sword, "item_sword");
  71. GameRegistry.registerItem(item_pickaxe, "item_pickaxe");
  72. GameRegistry.registerItem(item_axe, "item_axe");
  73. GameRegistry.registerItem(casqueArmor, "casqueArmor");
  74. GameRegistry.registerItem(plastronArmor, "plastronArmor");
  75. GameRegistry.registerItem(pantalonArmor, "pantalonArmor");
  76. GameRegistry.registerItem(bottesArmor, "bottesArmor");
  77. GameRegistry.addRecipe(new ItemStack(ItemMod.casqueArmor, 1), new Object[]{"###", "# #", " ", '#', ItemMod.Lingot_De_Titane});
  78. GameRegistry.addRecipe(new ItemStack(ItemMod.casqueArmor, 1), new Object[]{" ", "###", "# #", '#', ItemMod.Lingot_De_Titane});
  79. GameRegistry.addRecipe(new ItemStack(ItemMod.plastronArmor, 1), new Object[]{"# #", "###", "###", '#', ItemMod.Lingot_De_Titane});
  80. GameRegistry.addRecipe(new ItemStack(ItemMod.pantalonArmor, 1), new Object[]{"###", "# #", "# #", '#', ItemMod.Lingot_De_Titane});
  81. GameRegistry.addRecipe(new ItemStack(ItemMod.bottesArmor, 1), new Object[]{" ", "# #", "# #", '#', ItemMod.Lingot_De_Titane});
  82. GameRegistry.addRecipe(new ItemStack(ItemMod.bottesArmor, 1), new Object[]{"# #", "# #", " ", '#', ItemMod.Lingot_De_Titane});
  83. GameRegistry.addRecipe(new ItemStack(ItemMod.item_sword, 1), new Object[]{" # ", " # ", " L ", '#', ItemMod.Lingot_De_Titane, 'L', Items.stick});
  84. GameRegistry.addRecipe(new ItemStack(ItemMod.item_sword, 1), new Object[]{"# ", "# ", "L ", '#', ItemMod.Lingot_De_Titane, 'L', Items.stick});
  85. GameRegistry.addRecipe(new ItemStack(ItemMod.item_sword, 1), new Object[]{" #", " #", " L", '#', ItemMod.Lingot_De_Titane, 'L', Items.stick});
  86. GameRegistry.addRecipe(new ItemStack(ItemMod.item_pickaxe, 1), new Object[]{"###", " L ", " L ", '#', ItemMod.Lingot_De_Titane, 'L', Items.stick});
  87. GameRegistry.addRecipe(new ItemStack(ItemMod.item_axe, 1), new Object[]{"## ", "#L ", " L ", '#', ItemMod.Lingot_De_Titane, 'L', Items.stick});
  88. GameRegistry.addRecipe(new ItemStack(ItemMod.item_axe, 1), new Object[]{" ##", " #Lz", " L", '#', ItemMod.Lingot_De_Titane, 'L', Items.stick});
  89. GameRegistry.registerItem(shovelTitane, "shovelTitane");
  90. GameRegistry.addRecipe(new ItemStack(ItemMod.shovelTitane, 1), new Object[]{" # ", " L ", " L ", '#', ItemMod.Lingot_De_Titane, 'L', Items.stick});
  91. GameRegistry.addRecipe(new ItemStack(ItemMod.shovelTitane, 1), new Object[]{" #", " L", " L", '#', ItemMod.Lingot_De_Titane, 'L', Items.stick});
  92. GameRegistry.addRecipe(new ItemStack(ItemMod.shovelTitane, 1), new Object[]{"# ", "# ", "L v f ", '#', ItemMod.Lingot_De_Titane, 'L', Items.stick});
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×