Advertisement
Guest User

Ma classe principale

a guest
Aug 1st, 2014
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 43.35 KB | None | 0 0
  1. package fr.zery59.modnawak.common;
  2.  
  3. import net.minecraft.block.Block;
  4. import net.minecraft.block.material.Material;
  5. import net.minecraft.creativetab.CreativeTabs;
  6. import net.minecraft.init.Items;
  7. import net.minecraft.item.Item;
  8. import net.minecraft.item.Item.ToolMaterial;
  9. import net.minecraft.item.ItemArmor.ArmorMaterial;
  10. import net.minecraft.item.ItemStack;
  11. import net.minecraft.stats.Achievement;
  12. import net.minecraftforge.common.AchievementPage;
  13. import net.minecraftforge.common.util.EnumHelper;
  14. import net.minecraftforge.oredict.OreDictionary;
  15. import cpw.mods.fml.common.FMLCommonHandler;
  16. import cpw.mods.fml.common.Mod;
  17. import cpw.mods.fml.common.Mod.EventHandler;
  18. import cpw.mods.fml.common.Mod.Instance;
  19. import cpw.mods.fml.common.SidedProxy;
  20. import cpw.mods.fml.common.event.FMLInitializationEvent;
  21. import cpw.mods.fml.common.event.FMLPostInitializationEvent;
  22. import cpw.mods.fml.common.event.FMLPreInitializationEvent;
  23. import cpw.mods.fml.common.registry.GameRegistry;
  24. import fr.zery59.modnawak.proxy.CommonProxy;
  25.  
  26. @Mod(modid = "nawak", name = "Mod Nawak", version = "DEV")
  27.  
  28. public class Nawak
  29. {
  30. @Instance("nawak")
  31. public static Nawak instance;
  32. public static final String MODID = "nawak";
  33. @SidedProxy(clientSide = "fr.zery59.modnawak.proxy.ClientProxy", serverSide = "fr.zery59.modnawak.proxy.CommonProxy")
  34. public static CommonProxy proxy;
  35.  
  36.  
  37. //Déclarations des items/blocks/mobs etc...
  38.  
  39. public static Item Rubis;
  40. public static Item Saphir;
  41. public static Item Amethyste;
  42. public static Item MorceauGrenat;
  43. public static Item Grenat;
  44. public static Item Andradite;
  45. public static Item Tanzanite;
  46. public static Item Axinite;
  47. public static Item Rhodonite;
  48. public static Item Almandin;
  49. public static Item Chrysocolle;
  50.  
  51. public static Item PommeVerte;
  52. public static Item SucreColorant;
  53. public static Item TranchePain;
  54. public static Item Couteau;
  55. public static Item TabletteChoco;
  56. public static Item SandChoco;
  57. public static Item BolChocoDur;
  58. public static Item BolChocoChaud;
  59. public static Item SoupeEtrange;
  60. public static Item TestBouffe;
  61.  
  62. public static Block RubisOre;
  63. public static Block SaphirOre;
  64. public static Block AmethysteOre;
  65. public static Block GrenatOre;
  66. public static Block AndraditeOre;
  67. public static Block TanzaniteOre;
  68. public static Block AxiniteOre;
  69. public static Block RhodoniteOre;
  70. public static Block AlmandinOre;
  71. public static Block ChrysocolleOre;
  72.  
  73. public static Item helmetRubis, chestPlateRubis, leggingsRubis, bootsRubis;
  74. public static Item helmetAmethyste, chestPlateAmethyste, leggingsAmethyste, bootsAmethyste;
  75. public static Item helmetSaphir, chestPlateSaphir, leggingsSaphir, bootsSaphir;
  76. public static Item helmetAxinite, chestPlateAxinite, leggingsAxinite, bootsAxinite;
  77. public static Item helmetAlmandin, chestPlateAlmandin, leggingsAlmandin, bootsAlmandin;
  78. public static Item helmetChrysocolle, chestPlateChrysocolle, leggingsChrysocolle, bootsChrysocolle;
  79.    
  80. public static Item PiocheRubis, HacheRubis, EpeeRubis, PelleRubis, FauxRubis;
  81. public static Item PiocheAme, HacheAme, EpeeAme, PelleAme, FauxAme;
  82. public static Item PiocheSaphir, HacheSaphir, EpeeSaphir, PelleSaphir, FauxSaphir;
  83. public static Item PiocheGrenat, HacheGrenat, EpeeGrenat, PelleGrenat, FauxGrenat;
  84. public static Item PiocheAndradite, HacheAndradite, EpeeAndradite, PelleAndradite, FauxAndradite;
  85. public static Item PiocheTanzanite, HacheTanzanite, EpeeTanzanite, PelleTanzanite, FauxTanzanite;
  86. public static Item PiocheAxinite, HacheAxinite, EpeeAxinite, PelleAxinite, FauxAxinite;
  87. public static Item PiocheRhodonite, HacheRhodonite, EpeeRhodonite, PelleRhodonite, FauxRhodonite;
  88. public static Item PiocheAlmandin, HacheAlmandin, EpeeAlmandin, PelleAlmandin, FauxAlmandin;
  89. public static Item PiocheChrysocolle, HacheChrysocolle, EpeeChrysocolle, PelleChrysocolle, FauxChrysocolle;
  90.  
  91. public static AchievementPage NawakPageOre;
  92. public static AchievementPage NawakPageFood;
  93.  
  94. public static Achievement obtenirGrenat;
  95. public static Achievement obtenirSaphir;
  96. public static Achievement crafterEpeeSaphir;
  97. public static Achievement obtenirRubis;
  98. public static Achievement obtenirAmethyste;
  99. public static Achievement crafterEpeeAmethyste;
  100. public static Achievement crafterPiocheAmethyste;
  101. public static Achievement obtenirRhodonite;
  102. public static Achievement crafterPiocheRhodonite;
  103. public static Achievement obtenirChrysocolle;
  104. public static Achievement crafterHelmetChrysocolle;
  105. public static Achievement crafterChestplateChrysocolle;
  106. public static Achievement crafterLeggingsChrysocolle;
  107. public static Achievement crafterBootsChrysocolle;
  108.  
  109. public static Achievement crafterPommeVerte;
  110.  
  111. public static ToolMaterial RubisMaterial = EnumHelper.addToolMaterial("Rubis", 2, 532, 7.5F, 1.5F, 16);
  112. public static ToolMaterial AmeMaterial = EnumHelper.addToolMaterial("Ame", 3, 1345, 9.0F, 3.0F, 13);
  113. public static ToolMaterial SaphirMaterial = EnumHelper.addToolMaterial("Saphir", 2, 799, 8.5F, 1.9F, 12);
  114. public static ToolMaterial GrenatMaterial = EnumHelper.addToolMaterial("Grenat", 1, 200, 13.0F, 0.0F, 25);
  115. public static ToolMaterial AndraditeMaterial = EnumHelper.addToolMaterial("Andradite", 2, 1067, 6.0F, 2.7F, 14);
  116. public static ToolMaterial TanzaniteMaterial = EnumHelper.addToolMaterial("Tanzanite", 3, 2432, 2.7F, 0.6F, 22);
  117. public static ToolMaterial AxiniteMaterial = EnumHelper.addToolMaterial("Axinite", 2, 999, 7.7F, 4.0F, 19);
  118. public static ToolMaterial RhodoniteMaterial = EnumHelper.addToolMaterial("Rhodonite", 4, 300, 4.5F, 2.0F, 10);
  119. public static ToolMaterial AlmandinMaterial = EnumHelper.addToolMaterial("Almandin", 2, 554, 2.9F, 2.0F, 18);
  120. public static ToolMaterial ChrysocolleMaterial = EnumHelper.addToolMaterial("Chrysocolle", 4, 3000, 12.9F, 6.0F, 10);
  121.  
  122. public static ToolMaterial CouteauMaterial = EnumHelper.addToolMaterial("Couteau", 0, 30, 0.0F, 0.0F, 0);
  123.  
  124. public static ArmorMaterial RubisArmorMaterial = EnumHelper.addArmorMaterial("Rubis Armor", 10, new int[]{1, 2, 2, 1}, 16);
  125. public static ArmorMaterial AmethysteArmorMaterial = EnumHelper.addArmorMaterial("Amethyste Armor", 30, new int[]{2, 5, 3, 1}, 12);
  126. public static ArmorMaterial SaphirArmorMaterial = EnumHelper.addArmorMaterial("Saphir Armor", 11, new int[]{1, 2, 2, 1}, 16);
  127. public static ArmorMaterial AxiniteArmorMaterial = EnumHelper.addArmorMaterial("Axinite Armor", 22, new int[]{2, 5, 3, 1}, 18);
  128. public static ArmorMaterial AlmandinArmorMaterial = EnumHelper.addArmorMaterial("Almandin Armor", 26, new int[]{2, 7, 5, 2}, 19);
  129. public static ArmorMaterial ChrysocolleArmorMaterial = EnumHelper.addArmorMaterial("Chrysocolle Armor", 49, new int[]{5, 11, 9, 6}, 20);
  130.  
  131. // preInit utilisé pour créer les items, et pour les GameRegistry.
  132. @EventHandler
  133. public void preInit(FMLPreInitializationEvent event)
  134. {
  135.    
  136.  
  137.    
  138. //Items
  139.    
  140. Rubis = new Rubis().setUnlocalizedName("rubis").setCreativeTab(CreativeTabs.tabMaterials);
  141. Saphir = new Saphir().setUnlocalizedName("saphir").setCreativeTab(CreativeTabs.tabMaterials);
  142. Amethyste = new Amethyste().setUnlocalizedName("amethyste").setCreativeTab(CreativeTabs.tabMaterials);
  143. MorceauGrenat = new MorceauGrenat().setUnlocalizedName("morceaugrenat").setCreativeTab(CreativeTabs.tabMaterials);
  144. Grenat = new Grenat().setUnlocalizedName("grenat").setCreativeTab(CreativeTabs.tabMaterials);
  145. Andradite = new Andradite().setUnlocalizedName("andradite").setCreativeTab(CreativeTabs.tabMaterials);
  146. Tanzanite = new Tanzanite().setUnlocalizedName("tanzanite").setCreativeTab(CreativeTabs.tabMaterials);
  147. Axinite = new Axinite().setUnlocalizedName("axinite").setCreativeTab(CreativeTabs.tabMaterials);
  148. Rhodonite = new Rhodonite().setUnlocalizedName("rhodonite").setCreativeTab(CreativeTabs.tabMaterials);
  149. Almandin = new Almandin().setUnlocalizedName("almandin").setCreativeTab(CreativeTabs.tabMaterials);
  150. Chrysocolle = new Chrysocolle().setUnlocalizedName("chrysocolle").setCreativeTab(CreativeTabs.tabMaterials);
  151.  
  152. PommeVerte = new PommeVerte(6, 0.6F, false).setUnlocalizedName("pommeverte").setCreativeTab(CreativeTabs.tabFood);
  153. SucreColorant = new SucreColorant().setUnlocalizedName("sucrecolorant").setCreativeTab(CreativeTabs.tabMisc);
  154. TranchePain = new TranchePain(3, 0.3F, false).setUnlocalizedName("tranchepain").setCreativeTab(CreativeTabs.tabFood);
  155. TabletteChoco = new TabletteChoco(4, 0.1F, false).setUnlocalizedName("tablettechoco").setCreativeTab(CreativeTabs.tabFood);
  156. SandChoco = new SandChoco(9, 0.5F, false).setUnlocalizedName("sandchoco").setCreativeTab(CreativeTabs.tabFood);
  157. BolChocoDur  = new BolChocoDur().setUnlocalizedName("bolchocodur").setCreativeTab(CreativeTabs.tabFood);
  158. BolChocoChaud = new BolChocoChaud(5, 0.3F, false).setUnlocalizedName("bolchocochaud").setCreativeTab(CreativeTabs.tabFood);
  159. SoupeEtrange = new SoupeEtrange(5, 0.5F, false).setUnlocalizedName("soupeetrange").setCreativeTab(CreativeTabs.tabFood);
  160. TestBouffe = new TestBouffe(-20, 0.0F, false).setUnlocalizedName("testbouffe").setCreativeTab(CreativeTabs.tabMisc);
  161.  
  162. Couteau = new Couteau(CouteauMaterial).setUnlocalizedName("couteau").setCreativeTab(CreativeTabs.tabCombat);
  163.  
  164. GameRegistry.registerItem(Couteau, "couteau");
  165.  
  166. GameRegistry.registerItem(PommeVerte, "pommeverte");
  167. GameRegistry.registerItem(SucreColorant, "sucrecolorant");
  168. GameRegistry.registerItem(TranchePain, "tranchepain");
  169. GameRegistry.registerItem(TabletteChoco, "tablettechoco");
  170. GameRegistry.registerItem(SandChoco, "sandchoco");
  171. GameRegistry.registerItem(BolChocoDur, "boldurchoco");
  172. GameRegistry.registerItem(BolChocoChaud, "bolchocochaud");
  173. GameRegistry.registerItem(SoupeEtrange, "soupeetrange");
  174. GameRegistry.registerItem(TestBouffe, "testbouffe");
  175.        
  176. GameRegistry.registerItem(Rubis, "rubis");
  177. GameRegistry.registerItem(Saphir, "saphir");
  178. GameRegistry.registerItem(Amethyste, "amethyste");
  179. GameRegistry.registerItem(MorceauGrenat, "morceaugrenat");
  180. GameRegistry.registerItem(Grenat, "grenat");
  181. GameRegistry.registerItem(Andradite, "andradite");
  182. GameRegistry.registerItem(Tanzanite, "tanzanite");
  183. GameRegistry.registerItem(Axinite, "axinite");
  184. GameRegistry.registerItem(Rhodonite, "rhodonite");
  185. GameRegistry.registerItem(Almandin, "almandin");
  186. GameRegistry.registerItem(Chrysocolle, "chrysocolle");
  187.  
  188.  
  189. //Blocks
  190.  
  191. RubisOre = new RubisOre(Material.rock).setBlockName("rubisore").setBlockTextureName(Nawak.MODID + ":rubisore").setCreativeTab(CreativeTabs.tabBlock);
  192. SaphirOre = new SaphirOre(Material.rock).setBlockName("saphirore").setBlockTextureName(Nawak.MODID + ":saphirore").setCreativeTab(CreativeTabs.tabBlock);
  193. AmethysteOre = new AmethysteOre(Material.rock).setBlockName("amethysteore").setBlockTextureName(Nawak.MODID + ":amethysteore").setCreativeTab(CreativeTabs.tabBlock);
  194. GrenatOre = new GrenatOre(Material.rock).setBlockName("grenatore").setBlockTextureName(Nawak.MODID + ":grenatore").setCreativeTab(CreativeTabs.tabBlock);
  195. AndraditeOre = new AndraditeOre(Material.rock).setBlockName("andraditeore").setBlockTextureName(Nawak.MODID + ":andraditeore").setCreativeTab(CreativeTabs.tabBlock);
  196. TanzaniteOre = new TanzaniteOre(Material.rock).setBlockName("tanzaniteore").setBlockTextureName(Nawak.MODID + ":tanzaniteore").setCreativeTab(CreativeTabs.tabBlock);
  197. AxiniteOre = new AxiniteOre(Material.rock).setBlockName("axiniteore").setBlockTextureName(Nawak.MODID + ":axiniteore").setCreativeTab(CreativeTabs.tabBlock);
  198. RhodoniteOre = new RhodoniteOre(Material.rock).setBlockName("rhodoniteore").setBlockTextureName(Nawak.MODID + ":rhodoniteore").setCreativeTab(CreativeTabs.tabBlock);
  199. AlmandinOre = new AlmandinOre(Material.rock).setBlockName("almandinore").setBlockTextureName(Nawak.MODID + ":almandinore").setCreativeTab(CreativeTabs.tabBlock);
  200. ChrysocolleOre = new ChrysocolleOre(Material.rock).setBlockName("chrysocolleore").setBlockTextureName(Nawak.MODID + ":chrysocolleore").setCreativeTab(CreativeTabs.tabBlock);
  201.  
  202. GameRegistry.registerBlock(RubisOre, "rubisore");
  203. GameRegistry.registerBlock(SaphirOre, "saphirore");
  204. GameRegistry.registerBlock(AmethysteOre, "amethysteore");
  205. GameRegistry.registerBlock(GrenatOre, "garnetore");
  206. GameRegistry.registerBlock(AndraditeOre, "andraditeore");
  207. GameRegistry.registerBlock(TanzaniteOre, "tanzaniteore");
  208. GameRegistry.registerBlock(AxiniteOre, "axiniteore");
  209. GameRegistry.registerBlock(RhodoniteOre ,"rhodoniteore");
  210. GameRegistry.registerBlock(AlmandinOre, "almandinore");
  211. GameRegistry.registerBlock(ChrysocolleOre, "chrysocolleore");
  212.  
  213. //Outils
  214.  
  215. EpeeRubis = new EpeeRubis(RubisMaterial).setUnlocalizedName("epeerubis").setTextureName(Nawak.MODID + ":epeerubis").setCreativeTab(CreativeTabs.tabCombat);
  216. PiocheRubis = new PiocheRubis(RubisMaterial).setUnlocalizedName("piocherubis").setTextureName(Nawak.MODID + ":piocherubis").setCreativeTab(CreativeTabs.tabTools);
  217. PelleRubis = new PelleRubis(RubisMaterial).setUnlocalizedName("pellerubis").setTextureName(Nawak.MODID + ":pellerubis").setCreativeTab(CreativeTabs.tabTools);
  218. HacheRubis = new HacheRubis(RubisMaterial).setUnlocalizedName("hacherubis").setTextureName(Nawak.MODID + ":hacherubis").setCreativeTab(CreativeTabs.tabTools);
  219. FauxRubis = new FauxRubis(RubisMaterial).setUnlocalizedName("fauxrubis").setTextureName(Nawak.MODID + ":fauxrubis").setCreativeTab(CreativeTabs.tabTools);
  220. EpeeAme = new EpeeAme(AmeMaterial).setUnlocalizedName("epeeame").setTextureName(Nawak.MODID + ":epeeame").setCreativeTab(CreativeTabs.tabCombat);
  221. PiocheAme = new PiocheAme(AmeMaterial).setUnlocalizedName("piocheame").setTextureName(Nawak.MODID + ":piocheame").setCreativeTab(CreativeTabs.tabTools);
  222. PelleAme = new PelleAme(AmeMaterial).setUnlocalizedName("pelleame").setTextureName(Nawak.MODID + ":pelleame").setCreativeTab(CreativeTabs.tabTools);
  223. HacheAme = new HacheAme(AmeMaterial).setUnlocalizedName("hacheame").setTextureName(Nawak.MODID + ":hacheame").setCreativeTab(CreativeTabs.tabTools);
  224. FauxAme = new FauxAme(AmeMaterial).setUnlocalizedName("fauxame").setTextureName(Nawak.MODID + ":fauxame").setCreativeTab(CreativeTabs.tabTools);
  225. EpeeSaphir = new EpeeSaphir(SaphirMaterial).setUnlocalizedName("epeesaphir").setTextureName(Nawak.MODID + ":epeesaphir").setCreativeTab(CreativeTabs.tabCombat);
  226. PiocheSaphir = new PiocheSaphir(SaphirMaterial).setUnlocalizedName("piochesaphir").setTextureName(Nawak.MODID + ":piochesaphir").setCreativeTab(CreativeTabs.tabTools);
  227. PelleSaphir = new PelleSaphir(SaphirMaterial).setUnlocalizedName("pellesaphir").setTextureName(Nawak.MODID + ":pellesaphir").setCreativeTab(CreativeTabs.tabTools);
  228. HacheSaphir = new HacheSaphir(SaphirMaterial).setUnlocalizedName("hachesaphir").setTextureName(Nawak.MODID + ":hachesaphir").setCreativeTab(CreativeTabs.tabTools);
  229. FauxSaphir = new FauxSaphir(SaphirMaterial).setUnlocalizedName("fauxsaphir").setTextureName(Nawak.MODID + ":fauxsaphir").setCreativeTab(CreativeTabs.tabTools);
  230. EpeeGrenat = new EpeeGrenat(GrenatMaterial).setUnlocalizedName("epeegrenat").setTextureName(Nawak.MODID + ":epeegrenat").setCreativeTab(CreativeTabs.tabCombat);
  231. PiocheGrenat = new PiocheGrenat(GrenatMaterial).setUnlocalizedName("piochegrenat").setTextureName(Nawak.MODID + ":piochegrenat").setCreativeTab(CreativeTabs.tabTools);
  232. PelleGrenat = new PelleGrenat(GrenatMaterial).setUnlocalizedName("pellegrenat").setTextureName(Nawak.MODID + ":pellegrenat").setCreativeTab(CreativeTabs.tabTools);
  233. HacheGrenat = new HacheGrenat(GrenatMaterial).setUnlocalizedName("hachegrenat").setTextureName(Nawak.MODID + ":hachegrenat").setCreativeTab(CreativeTabs.tabTools);
  234. FauxGrenat = new FauxGrenat(GrenatMaterial).setUnlocalizedName("fauxgrenat").setTextureName(Nawak.MODID + ":fauxgrenat").setCreativeTab(CreativeTabs.tabTools);
  235. EpeeAndradite = new EpeeAndradite(AndraditeMaterial).setUnlocalizedName("epeeandradite").setTextureName(Nawak.MODID + ":epeeandradite").setCreativeTab(CreativeTabs.tabCombat);
  236. PiocheAndradite = new PiocheAndradite(AndraditeMaterial).setUnlocalizedName("piocheandradite").setTextureName(Nawak.MODID + ":piocheandradite").setCreativeTab(CreativeTabs.tabTools);
  237. PelleAndradite = new PelleAndradite(AndraditeMaterial).setUnlocalizedName("pelleandradite").setTextureName(Nawak.MODID + ":pelleandradite").setCreativeTab(CreativeTabs.tabTools);
  238. HacheAndradite = new HacheAndradite(AndraditeMaterial).setUnlocalizedName("hacheandradite").setTextureName(Nawak.MODID + ":hacheandradite").setCreativeTab(CreativeTabs.tabTools);
  239. FauxAndradite = new FauxAndradite(AndraditeMaterial).setUnlocalizedName("fauxandradite").setTextureName(Nawak.MODID + ":fauxandradite").setCreativeTab(CreativeTabs.tabTools);
  240. EpeeTanzanite = new EpeeTanzanite(TanzaniteMaterial).setUnlocalizedName("epeetanzanite").setTextureName(Nawak.MODID + ":epeetanzanite").setCreativeTab(CreativeTabs.tabCombat);
  241. PiocheTanzanite = new PiocheTanzanite(TanzaniteMaterial).setUnlocalizedName("piochetanzanite").setTextureName(Nawak.MODID + ":piochetanzanite").setCreativeTab(CreativeTabs.tabTools);
  242. PelleTanzanite = new PelleTanzanite(TanzaniteMaterial).setUnlocalizedName("pelletanzanite").setTextureName(Nawak.MODID + ":pelletanzanite").setCreativeTab(CreativeTabs.tabTools);
  243. HacheTanzanite = new HacheTanzanite(TanzaniteMaterial).setUnlocalizedName("hachetanzanite").setTextureName(Nawak.MODID + ":hachetanzanite").setCreativeTab(CreativeTabs.tabTools);
  244. FauxTanzanite = new FauxTanzanite(TanzaniteMaterial).setUnlocalizedName("fauxtanzanite").setTextureName(Nawak.MODID + ":fauxtanzanite").setCreativeTab(CreativeTabs.tabTools);
  245. EpeeAxinite = new EpeeAxinite(AxiniteMaterial).setUnlocalizedName("epeeaxinite").setTextureName(Nawak.MODID + ":epeeaxinite").setCreativeTab(CreativeTabs.tabCombat);
  246. PiocheAxinite = new PiocheAxinite(AxiniteMaterial).setUnlocalizedName("piocheaxinite").setTextureName(Nawak.MODID + ":piocheaxinite").setCreativeTab(CreativeTabs.tabTools);
  247. PelleAxinite = new PelleAxinite(AxiniteMaterial).setUnlocalizedName("pelleaxinite").setTextureName(Nawak.MODID + ":pelleaxinite").setCreativeTab(CreativeTabs.tabTools);
  248. HacheAxinite = new HacheAxinite(AxiniteMaterial).setUnlocalizedName("hacheaxinite").setTextureName(Nawak.MODID + ":hacheaxinite").setCreativeTab(CreativeTabs.tabTools);
  249. FauxAxinite = new FauxAxinite(AxiniteMaterial).setUnlocalizedName("fauxaxinite").setTextureName(Nawak.MODID + ":fauxaxinite").setCreativeTab(CreativeTabs.tabTools);
  250. EpeeRhodonite = new EpeeRhodonite(RhodoniteMaterial).setUnlocalizedName("epeerhodonite").setTextureName(Nawak.MODID + ":epeerhodonite").setCreativeTab(CreativeTabs.tabCombat);
  251. PiocheRhodonite = new PiocheRhodonite(RhodoniteMaterial).setUnlocalizedName("piocherhodonite").setTextureName(Nawak.MODID + ":piocherhodonite").setCreativeTab(CreativeTabs.tabTools);
  252. PelleRhodonite = new PelleRhodonite(RhodoniteMaterial).setUnlocalizedName("pellerhodonite").setTextureName(Nawak.MODID + ":pellerhodonite").setCreativeTab(CreativeTabs.tabTools);
  253. HacheRhodonite = new HacheRhodonite(RhodoniteMaterial).setUnlocalizedName("hacherhodonite").setTextureName(Nawak.MODID + ":hacherhodonite").setCreativeTab(CreativeTabs.tabTools);
  254. FauxRhodonite = new FauxRhodonite(RhodoniteMaterial).setUnlocalizedName("fauxrhodonite").setTextureName(Nawak.MODID + ":fauxrhodonite").setCreativeTab(CreativeTabs.tabTools);
  255. EpeeAlmandin = new EpeeAlmandin(AlmandinMaterial).setUnlocalizedName("epeealmandin").setTextureName(Nawak.MODID + ":epeealmandin").setCreativeTab(CreativeTabs.tabCombat);
  256. PiocheAlmandin = new PiocheAlmandin(AlmandinMaterial).setUnlocalizedName("piochealmandin").setTextureName(Nawak.MODID + ":piochealmandin").setCreativeTab(CreativeTabs.tabTools);
  257. PelleAlmandin = new PelleAlmandin(AlmandinMaterial).setUnlocalizedName("pellealmandin").setTextureName(Nawak.MODID + ":pellealmandin").setCreativeTab(CreativeTabs.tabTools);
  258. HacheAlmandin = new HacheAlmandin(AlmandinMaterial).setUnlocalizedName("hachealmandin").setTextureName(Nawak.MODID + ":hachealmandin").setCreativeTab(CreativeTabs.tabTools);
  259. FauxAlmandin = new FauxAlmandin(AlmandinMaterial).setUnlocalizedName("fauxalmandin").setTextureName(Nawak.MODID + ":fauxalmandin").setCreativeTab(CreativeTabs.tabTools);
  260. EpeeChrysocolle = new EpeeChrysocolle(ChrysocolleMaterial).setUnlocalizedName("epeechrysocolle").setTextureName(Nawak.MODID + ":epeechrysocolle").setCreativeTab(CreativeTabs.tabCombat);
  261. PiocheChrysocolle = new PiocheChrysocolle(ChrysocolleMaterial).setUnlocalizedName("piochechrysocolle").setTextureName(Nawak.MODID + ":piochechrysocolle").setCreativeTab(CreativeTabs.tabTools);
  262. PelleChrysocolle = new PelleChrysocolle(ChrysocolleMaterial).setUnlocalizedName("pellechrysocolle").setTextureName(Nawak.MODID + ":pellechrysocolle").setCreativeTab(CreativeTabs.tabTools);
  263. HacheChrysocolle = new HacheChrysocolle(ChrysocolleMaterial).setUnlocalizedName("hachechrysocolle").setTextureName(Nawak.MODID + ":hachechrysocolle").setCreativeTab(CreativeTabs.tabTools);
  264. FauxChrysocolle = new FauxChrysocolle(ChrysocolleMaterial).setUnlocalizedName("fauxchrysocolle").setTextureName(Nawak.MODID + ":fauxchrysocolle").setCreativeTab(CreativeTabs.tabTools);
  265.  
  266.  
  267. GameRegistry.registerItem(EpeeRubis, "epeerubis");
  268. GameRegistry.registerItem(PiocheRubis, "piocherubis");
  269. GameRegistry.registerItem(PelleRubis, "pellerubis");
  270. GameRegistry.registerItem(HacheRubis, "hacherubis");
  271. GameRegistry.registerItem(FauxRubis, "fauxrubis");
  272. GameRegistry.registerItem(EpeeAme, "epeeame");
  273. GameRegistry.registerItem(PiocheAme, "piocheame");
  274. GameRegistry.registerItem(PelleAme, "pelleame");
  275. GameRegistry.registerItem(HacheAme, "hacheame");
  276. GameRegistry.registerItem(FauxAme, "fauxame");
  277. GameRegistry.registerItem(EpeeSaphir, "epeesaphir");
  278. GameRegistry.registerItem(PiocheSaphir, "piochesaphir");
  279. GameRegistry.registerItem(PelleSaphir, "pellesaphir");
  280. GameRegistry.registerItem(HacheSaphir, "hachesaphir");
  281. GameRegistry.registerItem(FauxSaphir, "fauxsaphir");
  282. GameRegistry.registerItem(EpeeGrenat, "epeegrenat");
  283. GameRegistry.registerItem(PiocheGrenat, "piochegrenat");
  284. GameRegistry.registerItem(PelleGrenat, "pellegrenat");
  285. GameRegistry.registerItem(HacheGrenat, "hachegrenat");
  286. GameRegistry.registerItem(FauxGrenat, "fauxgrenat");
  287. GameRegistry.registerItem(EpeeAndradite, "epeeandradite");
  288. GameRegistry.registerItem(PiocheAndradite, "piocheandradite");
  289. GameRegistry.registerItem(PelleAndradite, "pelleandradite");
  290. GameRegistry.registerItem(HacheAndradite, "hacheandradite");
  291. GameRegistry.registerItem(FauxAndradite, "fauxandradite");
  292. GameRegistry.registerItem(EpeeTanzanite, "epeetanzanite");
  293. GameRegistry.registerItem(PiocheTanzanite, "piochetanzanite");
  294. GameRegistry.registerItem(PelleTanzanite, "pelletanzanite");
  295. GameRegistry.registerItem(HacheTanzanite, "hachetanzanite");
  296. GameRegistry.registerItem(FauxTanzanite, "fauxtanzanite");
  297. GameRegistry.registerItem(EpeeAxinite, "epeeaxinite");
  298. GameRegistry.registerItem(PiocheAxinite, "piocheaxinite");
  299. GameRegistry.registerItem(PelleAxinite, "pelleaxinite");
  300. GameRegistry.registerItem(HacheAxinite, "hacheaxinite");
  301. GameRegistry.registerItem(FauxAxinite, "fauxaxinite");
  302. GameRegistry.registerItem(EpeeRhodonite, "epeerhodonite");
  303. GameRegistry.registerItem(PiocheRhodonite, "piocherhodonite");
  304. GameRegistry.registerItem(PelleRhodonite, "pellerhodonite");
  305. GameRegistry.registerItem(HacheRhodonite, "hacherhodonite");
  306. GameRegistry.registerItem(FauxRhodonite, "fauxrhodonite");
  307. GameRegistry.registerItem(EpeeAlmandin, "epeealmandin");
  308. GameRegistry.registerItem(PiocheAlmandin, "piochealmandin");
  309. GameRegistry.registerItem(PelleAlmandin, "pellealmandin");
  310. GameRegistry.registerItem(HacheAlmandin, "hachealmandin");
  311. GameRegistry.registerItem(FauxAlmandin, "fauxalmandin");
  312. GameRegistry.registerItem(EpeeChrysocolle, "epeechrysocolle");
  313. GameRegistry.registerItem(PiocheChrysocolle, "piochechrysocolle");
  314. GameRegistry.registerItem(PelleChrysocolle, "pellechrysocolle");
  315. GameRegistry.registerItem(HacheChrysocolle, "hachechrysocolle");
  316. GameRegistry.registerItem(FauxChrysocolle, "fauxchrysocolle");
  317.  
  318.  
  319. //Armors
  320.  
  321. helmetRubis = new RubisArmor(RubisArmorMaterial, 0).setUnlocalizedName("helmetRubis").setTextureName(Nawak.MODID + ":helmetrubis").setCreativeTab(CreativeTabs.tabCombat);
  322. chestPlateRubis = new RubisArmor(RubisArmorMaterial, 1).setUnlocalizedName("chestplateRubis").setTextureName(Nawak.MODID + ":chestplaterubis").setCreativeTab(CreativeTabs.tabCombat);
  323. leggingsRubis = new RubisArmor(RubisArmorMaterial, 2).setUnlocalizedName("leggingsRubis").setTextureName(Nawak.MODID + ":leggingsrubis").setCreativeTab(CreativeTabs.tabCombat);
  324. bootsRubis = new RubisArmor(RubisArmorMaterial, 3).setUnlocalizedName("bootsRubis").setTextureName(Nawak.MODID + ":bootsrubis").setCreativeTab(CreativeTabs.tabCombat);
  325. helmetAmethyste = new AmethysteArmor(AmethysteArmorMaterial, 0).setUnlocalizedName("helmetAmethyste").setTextureName(Nawak.MODID + ":helmetamethyste").setCreativeTab(CreativeTabs.tabCombat);
  326. chestPlateAmethyste = new AmethysteArmor(AmethysteArmorMaterial, 1).setUnlocalizedName("chestplateAmethyste").setTextureName(Nawak.MODID + ":chestplateamethyste").setCreativeTab(CreativeTabs.tabCombat);
  327. leggingsAmethyste = new AmethysteArmor(AmethysteArmorMaterial, 2).setUnlocalizedName("leggingsAmethyste").setTextureName(Nawak.MODID + ":leggingsamethyste").setCreativeTab(CreativeTabs.tabCombat);
  328. bootsAmethyste = new AmethysteArmor(AmethysteArmorMaterial, 3).setUnlocalizedName("bootsAmethyste").setTextureName(Nawak.MODID + ":bootsamethyste").setCreativeTab(CreativeTabs.tabCombat);
  329. helmetSaphir = new SaphirArmor(SaphirArmorMaterial, 0).setUnlocalizedName("helmetSaphir").setTextureName(Nawak.MODID + ":helmetsaphir").setCreativeTab(CreativeTabs.tabCombat);
  330. chestPlateSaphir = new SaphirArmor(SaphirArmorMaterial, 1).setUnlocalizedName("chestplateSaphir").setTextureName(Nawak.MODID + ":chestplatesaphir").setCreativeTab(CreativeTabs.tabCombat);
  331. leggingsSaphir = new SaphirArmor(SaphirArmorMaterial, 2).setUnlocalizedName("leggingsSaphir").setTextureName(Nawak.MODID + ":leggingssaphir").setCreativeTab(CreativeTabs.tabCombat);
  332. bootsSaphir = new SaphirArmor(SaphirArmorMaterial, 3).setUnlocalizedName("bootsSaphir").setTextureName(Nawak.MODID + ":bootssaphir").setCreativeTab(CreativeTabs.tabCombat);
  333. helmetAxinite = new AxiniteArmor(AxiniteArmorMaterial, 0).setUnlocalizedName("helmetAxinite").setTextureName(Nawak.MODID + ":helmetaxinite").setCreativeTab(CreativeTabs.tabCombat);
  334. chestPlateAxinite = new AxiniteArmor(AxiniteArmorMaterial, 1).setUnlocalizedName("chestplateAxinite").setTextureName(Nawak.MODID + ":chestplateaxinite").setCreativeTab(CreativeTabs.tabCombat);
  335. leggingsAxinite = new AxiniteArmor(AxiniteArmorMaterial, 2).setUnlocalizedName("leggingsAxinite").setTextureName(Nawak.MODID + ":leggingsaxinite").setCreativeTab(CreativeTabs.tabCombat);
  336. bootsAxinite = new AxiniteArmor(AxiniteArmorMaterial, 3).setUnlocalizedName("bootsAxinite").setTextureName(Nawak.MODID + ":bootsaxinite").setCreativeTab(CreativeTabs.tabCombat);
  337. helmetAlmandin = new AlmandinArmor(AlmandinArmorMaterial, 0).setUnlocalizedName("helmetAlmandin").setTextureName(Nawak.MODID + ":helmetalmandin").setCreativeTab(CreativeTabs.tabCombat);
  338. chestPlateAlmandin = new AlmandinArmor(AlmandinArmorMaterial, 1).setUnlocalizedName("chestplateAlmandin").setTextureName(Nawak.MODID + ":chestplatealmandin").setCreativeTab(CreativeTabs.tabCombat);
  339. leggingsAlmandin = new AlmandinArmor(AlmandinArmorMaterial, 2).setUnlocalizedName("leggingsAlmandin").setTextureName(Nawak.MODID + ":leggingsalmandin").setCreativeTab(CreativeTabs.tabCombat);
  340. bootsAlmandin = new AlmandinArmor(AlmandinArmorMaterial, 3).setUnlocalizedName("bootsAlmandin").setTextureName(Nawak.MODID + ":bootsalmandin").setCreativeTab(CreativeTabs.tabCombat);
  341. helmetChrysocolle = new ChrysocolleArmor(ChrysocolleArmorMaterial, 0).setUnlocalizedName("helmetChrysocolle").setTextureName(Nawak.MODID + ":helmetchrysocolle").setCreativeTab(CreativeTabs.tabCombat);
  342. chestPlateChrysocolle = new ChrysocolleArmor(ChrysocolleArmorMaterial, 1).setUnlocalizedName("chestplateChrysocolle").setTextureName(Nawak.MODID + ":chestplatechrysocolle").setCreativeTab(CreativeTabs.tabCombat);
  343. leggingsChrysocolle = new ChrysocolleArmor(ChrysocolleArmorMaterial, 2).setUnlocalizedName("leggingsChrysocolle").setTextureName(Nawak.MODID + ":leggingschrysocolle").setCreativeTab(CreativeTabs.tabCombat);
  344. bootsChrysocolle = new ChrysocolleArmor(ChrysocolleArmorMaterial, 3).setUnlocalizedName("bootsChrysocolle").setTextureName(Nawak.MODID + ":bootschrysocolle").setCreativeTab(CreativeTabs.tabCombat);
  345.  
  346.  
  347.  
  348.  
  349. GameRegistry.registerItem(helmetRubis, "helmetrubis");
  350. GameRegistry.registerItem(chestPlateRubis, "chestplaterubis");
  351. GameRegistry.registerItem(leggingsRubis, "leggingsrubis");
  352. GameRegistry.registerItem(bootsRubis, "bootsrubis");
  353. GameRegistry.registerItem(helmetAmethyste, "helmetamethyste");
  354. GameRegistry.registerItem(chestPlateAmethyste, "chestplateamethyste");
  355. GameRegistry.registerItem(leggingsAmethyste, "leggingsamethyste");
  356. GameRegistry.registerItem(bootsAmethyste, "bootsamethyste");
  357. GameRegistry.registerItem(helmetSaphir, "helmetsaphir");
  358. GameRegistry.registerItem(chestPlateSaphir, "chestplatesaphir");
  359. GameRegistry.registerItem(leggingsSaphir, "leggingssaphir");
  360. GameRegistry.registerItem(bootsSaphir, "bootssaphir");
  361. GameRegistry.registerItem(helmetAxinite, "helmetaxinite");
  362. GameRegistry.registerItem(chestPlateAxinite, "chestplateaxinite");
  363. GameRegistry.registerItem(leggingsAxinite, "leggingsaxinite");
  364. GameRegistry.registerItem(bootsAxinite, "bootsaxinite");
  365. GameRegistry.registerItem(helmetAlmandin, "helmetalmandin");
  366. GameRegistry.registerItem(chestPlateAlmandin, "chestplatealmandin");
  367. GameRegistry.registerItem(leggingsAlmandin, "leggingsalmandin");
  368. GameRegistry.registerItem(bootsAlmandin, "bootsalmandin");
  369. GameRegistry.registerItem(helmetChrysocolle, "helmetchrysocolle");
  370. GameRegistry.registerItem(chestPlateChrysocolle, "chestplatechrysocolle");
  371. GameRegistry.registerItem(leggingsChrysocolle, "leggingschrysocolle");
  372. GameRegistry.registerItem(bootsChrysocolle, "bootschrysocolle");
  373.  
  374.  
  375. //Mobs
  376.  
  377.  
  378.  
  379.  
  380. //Génération de minerais
  381.  
  382. GameRegistry.registerWorldGenerator(new MineraiGenerator(), 0);
  383.  
  384.  
  385. //Achievements
  386.  
  387. obtenirGrenat = new Achievement("achievement.obtenirGrenat", "obtenirGrenat", 0, 0, this.Grenat, (Achievement)null).initIndependentStat().registerStat();
  388. obtenirSaphir = new Achievement("achievement.obtenirSaphir", "obtenirSaphir", -2, 0, this.Saphir, obtenirGrenat).registerStat();
  389. crafterEpeeSaphir = new Achievement("achievement.crafterEpeeSaphir", "crafterEpeeSaphir", -2, -2, this.EpeeSaphir, obtenirSaphir).registerStat();
  390. obtenirRubis = new Achievement("achievement.obtenirRubis", "obtenirRubis", 2, 0, this.Rubis, obtenirGrenat).registerStat();
  391. obtenirAmethyste = new Achievement("achievement.obtenirAmethyste", "obtenirAmethyste", 0, 2, this.Amethyste, obtenirGrenat).registerStat();
  392. crafterPiocheAmethyste = new Achievement("achievement.crafterPiocheAmethyste", "crafterPiocheAmethyste", -2, 2, this.PiocheAme, obtenirAmethyste).registerStat();
  393. crafterEpeeAmethyste = new Achievement("achievement.crafterEpeeAmethyste", "crafterEpeeAmethyste", 2, 2, this.EpeeAme, obtenirAmethyste).registerStat();
  394. obtenirRhodonite = new Achievement("achievement.obtenirRhodonite", "obtenirRhodonite", 0, 4, this.Rhodonite, obtenirAmethyste).registerStat();
  395. crafterPiocheRhodonite = new Achievement("achievement.crafterPiocheRhodonite", "crafterPiocheRhodonite", 0, 6, this.PiocheRhodonite, obtenirRhodonite).registerStat();
  396. obtenirChrysocolle = new Achievement("achievement.obtenirChrysocolle", "obtenirChrysocolle", 0, 8, this.Chrysocolle, obtenirRhodonite).registerStat().setSpecial();
  397. crafterHelmetChrysocolle = new Achievement("achievement.crafterHelmetChrysocolle", "crafterHelmetChrysocolle", -4, 9, this.helmetChrysocolle, obtenirChrysocolle);
  398. crafterChestplateChrysocolle = new Achievement("achievement.crafterChestplateChrysocolle", "crafterChestplateChrysocolle", -2, 10, this.chestPlateChrysocolle, crafterHelmetChrysocolle);
  399. crafterLeggingsChrysocolle = new Achievement("achievement.crafterLeggingsChrysocolle", "crafterLeggingsChrysocolle", 0, 11, this.leggingsChrysocolle, crafterChestplateChrysocolle);
  400. crafterBootsChrysocolle = new Achievement("achievement.crafterBootsChrysocolle", "crafterBootsChrysocolle", 2, 12, this.bootsChrysocolle, crafterLeggingsChrysocolle);
  401.  
  402.  
  403. crafterPommeVerte = new Achievement("", "", 0, 0, this.PommeVerte, (Achievement)null).initIndependentStat().registerStat();
  404.  
  405. NawakPageOre = new AchievementPage("Nawak Ore", obtenirGrenat, obtenirSaphir, obtenirRubis, crafterEpeeSaphir, obtenirRhodonite, obtenirAmethyste, crafterPiocheAmethyste, crafterEpeeAmethyste, obtenirChrysocolle, crafterPiocheRhodonite, crafterHelmetChrysocolle, crafterChestplateChrysocolle, crafterLeggingsChrysocolle, crafterBootsChrysocolle);
  406. NawakPageFood = new AchievementPage("Nawak Food");
  407. AchievementPage.registerAchievementPage(NawakPageOre);
  408. AchievementPage.registerAchievementPage(NawakPageFood);
  409.  
  410.  
  411. }
  412.    
  413. // init utilisé pour les crafts, mobs, events etc...
  414. @EventHandler
  415. public void init(FMLInitializationEvent event)
  416. {
  417.        proxy.registerRender();
  418.            
  419. //Recettes
  420.        
  421. GameRegistry.addSmelting(this.AndraditeOre, new ItemStack(this.Andradite), 0.9F);
  422. GameRegistry.addSmelting(this.AlmandinOre, new ItemStack(this.Almandin), 0.3F);
  423. GameRegistry.addSmelting(this.AmethysteOre, new ItemStack(this.Amethyste), 1.0F);
  424. GameRegistry.addSmelting(this.AxiniteOre, new ItemStack(this.Axinite), 1.2F);
  425. GameRegistry.addSmelting(this.ChrysocolleOre, new ItemStack(this.Chrysocolle), 1.0F);
  426. GameRegistry.addSmelting(this.RhodoniteOre, new ItemStack(this.Rhodonite), 0.7F);
  427. GameRegistry.addSmelting(this.TanzaniteOre, new ItemStack(this.Tanzanite), 0.9F);
  428.  
  429. GameRegistry.addSmelting(this.BolChocoDur, new ItemStack(this.BolChocoChaud), 0.1F);
  430.  
  431. GameRegistry.addRecipe(new ItemStack(this.Grenat), new Object[]{"XXX","XXX","XXX", 'X', this.MorceauGrenat});
  432.  
  433.  
  434. GameRegistry.addRecipe(new ItemStack(this.Couteau), new Object[]{"   ", " Y ", " X ",  'X', Items.stick, 'Y', Items.iron_ingot});
  435. GameRegistry.addRecipe(new ItemStack(this.PommeVerte), new Object[]{"XXX", "XYX", "XXX", 'X', this.SucreColorant, 'Y', Items.apple});
  436. GameRegistry.addRecipe(new ItemStack(this.TabletteChoco), new Object[]{"XX", "XX", 'X', new ItemStack(Items.dye, 2, 3)});
  437. GameRegistry.addRecipe(new ItemStack(this.SandChoco), new Object[]{"X", "Y", "X", 'X', this.TranchePain, 'Y', this.TabletteChoco});
  438.  
  439.  
  440. GameRegistry.addRecipe(new ItemStack(this.PiocheRubis), new Object[]{"XXX", " Y ", " Y ", 'X', this.Rubis, 'Y', Items.stick});
  441. GameRegistry.addRecipe(new ItemStack(this.EpeeRubis), new Object[]{"X", "X", "Y", 'X', this.Rubis, 'Y', Items.stick});
  442. GameRegistry.addRecipe(new ItemStack(this.PelleRubis), new Object[]{"X", "Y", "Y", 'X', this.Rubis, 'Y', Items.stick});
  443. GameRegistry.addRecipe(new ItemStack(this.HacheRubis), new Object[]{"XX", "XY", " Y", 'X', this.Rubis, 'Y', Items.stick});
  444. GameRegistry.addRecipe(new ItemStack(this.FauxRubis), new Object[]{"XX", " Y", " Y", 'X', this.Rubis, 'Y', Items.stick});
  445. GameRegistry.addRecipe(new ItemStack(this.PiocheAme), new Object[]{"XXX", " Y ", " Y ", 'X', this.Amethyste, 'Y', Items.stick});
  446. GameRegistry.addRecipe(new ItemStack(this.EpeeAme), new Object[]{"X", "X", "Y", 'X', this.Amethyste, 'Y', Items.stick});
  447. GameRegistry.addRecipe(new ItemStack(this.PelleAme), new Object[]{"X", "Y", "Y", 'X', this.Amethyste, 'Y', Items.stick});
  448. GameRegistry.addRecipe(new ItemStack(this.HacheAme), new Object[]{"XX", "XY", " Y", 'X', this.Amethyste, 'Y', Items.stick});
  449. GameRegistry.addRecipe(new ItemStack(this.FauxAme), new Object[]{"XX", " Y", " Y", 'X', this.Amethyste, 'Y', Items.stick});
  450. GameRegistry.addRecipe(new ItemStack(this.PiocheSaphir), new Object[]{"XXX", " Y ", " Y ", 'X', this.Saphir, 'Y', Items.stick});
  451. GameRegistry.addRecipe(new ItemStack(this.EpeeSaphir), new Object[]{"X", "X", "Y", 'X', this.Saphir, 'Y', Items.stick});
  452. GameRegistry.addRecipe(new ItemStack(this.PelleSaphir), new Object[]{"X", "Y", "Y", 'X', this.Saphir, 'Y', Items.stick});
  453. GameRegistry.addRecipe(new ItemStack(this.HacheSaphir), new Object[]{"XX", "XY", " Y", 'X', this.Saphir, 'Y', Items.stick});
  454. GameRegistry.addRecipe(new ItemStack(this.FauxSaphir), new Object[]{"XX", " Y", " Y", 'X', this.Saphir, 'Y', Items.stick});
  455. GameRegistry.addRecipe(new ItemStack(this.PiocheGrenat), new Object[]{"XXX", " Y ", " Y ", 'X', this.Grenat, 'Y', Items.stick});
  456. GameRegistry.addRecipe(new ItemStack(this.EpeeGrenat), new Object[]{"X", "X", "Y", 'X', this.Grenat, 'Y', Items.stick});
  457. GameRegistry.addRecipe(new ItemStack(this.PelleGrenat), new Object[]{"X", "Y", "Y", 'X', this.Grenat, 'Y', Items.stick});
  458. GameRegistry.addRecipe(new ItemStack(this.HacheGrenat), new Object[]{"XX", "XY", " Y", 'X', this.Grenat, 'Y', Items.stick});
  459. GameRegistry.addRecipe(new ItemStack(this.FauxGrenat), new Object[]{"XX", " Y", " Y", 'X', this.Grenat, 'Y', Items.stick});
  460. GameRegistry.addRecipe(new ItemStack(this.PiocheAndradite), new Object[]{"XXX", " Y ", " Y ", 'X', this.Andradite, 'Y', Items.stick});
  461. GameRegistry.addRecipe(new ItemStack(this.EpeeAndradite), new Object[]{"X", "X", "Y", 'X', this.Andradite, 'Y', Items.stick});
  462. GameRegistry.addRecipe(new ItemStack(this.PelleAndradite), new Object[]{"X", "Y", "Y", 'X', this.Andradite, 'Y', Items.stick});
  463. GameRegistry.addRecipe(new ItemStack(this.HacheAndradite), new Object[]{"XX", "XY", " Y", 'X', this.Andradite, 'Y', Items.stick});
  464. GameRegistry.addRecipe(new ItemStack(this.FauxAndradite), new Object[]{"XX", " Y", " Y", 'X', this.Andradite, 'Y', Items.stick});
  465. GameRegistry.addRecipe(new ItemStack(this.PiocheTanzanite), new Object[]{"XXX", " Y ", " Y ", 'X', this.Tanzanite, 'Y', Items.stick});
  466. GameRegistry.addRecipe(new ItemStack(this.EpeeTanzanite), new Object[]{"X", "X", "Y", 'X', this.Tanzanite, 'Y', Items.stick});
  467. GameRegistry.addRecipe(new ItemStack(this.PelleTanzanite), new Object[]{"X", "Y", "Y", 'X', this.Tanzanite, 'Y', Items.stick});
  468. GameRegistry.addRecipe(new ItemStack(this.HacheTanzanite), new Object[]{"XX", "XY", " Y", 'X', this.Tanzanite, 'Y', Items.stick});
  469. GameRegistry.addRecipe(new ItemStack(this.FauxTanzanite), new Object[]{"XX", " Y", " Y", 'X', this.Tanzanite, 'Y', Items.stick});
  470. GameRegistry.addRecipe(new ItemStack(this.PiocheAxinite), new Object[]{"XXX", " Y ", " Y ", 'X', this.Axinite, 'Y', Items.stick});
  471. GameRegistry.addRecipe(new ItemStack(this.EpeeAxinite), new Object[]{"X", "X", "Y", 'X', this.Axinite, 'Y', Items.stick});
  472. GameRegistry.addRecipe(new ItemStack(this.PelleAxinite), new Object[]{"X", "Y", "Y", 'X', this.Axinite, 'Y', Items.stick});
  473. GameRegistry.addRecipe(new ItemStack(this.HacheAxinite), new Object[]{"XX", "XY", " Y", 'X', this.Axinite, 'Y', Items.stick});
  474. GameRegistry.addRecipe(new ItemStack(this.FauxAxinite), new Object[]{"XX", " Y", " Y", 'X', this.Axinite, 'Y', Items.stick});
  475. GameRegistry.addRecipe(new ItemStack(this.PiocheRhodonite), new Object[]{"XXX", " Y ", " Y ", 'X', this.Rhodonite, 'Y', Items.stick});
  476. GameRegistry.addRecipe(new ItemStack(this.EpeeRhodonite), new Object[]{"X", "X", "Y", 'X', this.Rhodonite, 'Y', Items.stick});
  477. GameRegistry.addRecipe(new ItemStack(this.PelleRhodonite), new Object[]{"X", "Y", "Y", 'X', this.Rhodonite, 'Y', Items.stick});
  478. GameRegistry.addRecipe(new ItemStack(this.HacheRhodonite), new Object[]{"XX", "XY", " Y", 'X', this.Rhodonite, 'Y', Items.stick});
  479. GameRegistry.addRecipe(new ItemStack(this.FauxRhodonite), new Object[]{"XX", " Y", " Y", 'X', this.Rhodonite, 'Y', Items.stick});
  480. GameRegistry.addRecipe(new ItemStack(this.PiocheAlmandin), new Object[]{"XXX", " Y ", " Y ", 'X', this.Almandin, 'Y', Items.stick});
  481. GameRegistry.addRecipe(new ItemStack(this.EpeeAlmandin), new Object[]{"X", "X", "Y", 'X', this.Almandin, 'Y', Items.stick});
  482. GameRegistry.addRecipe(new ItemStack(this.PelleAlmandin), new Object[]{"X", "Y", "Y", 'X', this.Almandin, 'Y', Items.stick});
  483. GameRegistry.addRecipe(new ItemStack(this.HacheAlmandin), new Object[]{"XX", "XY", " Y", 'X', this.Almandin, 'Y', Items.stick});
  484. GameRegistry.addRecipe(new ItemStack(this.FauxAlmandin), new Object[]{"XX", " Y", " Y", 'X', this.Almandin, 'Y', Items.stick});
  485. GameRegistry.addRecipe(new ItemStack(this.PiocheChrysocolle), new Object[]{"XXX", " Y ", " Y ", 'X', this.Chrysocolle, 'Y', Items.stick});
  486. GameRegistry.addRecipe(new ItemStack(this.EpeeChrysocolle), new Object[]{"X", "X", "Y", 'X', this.Chrysocolle, 'Y', Items.stick});
  487. GameRegistry.addRecipe(new ItemStack(this.PelleChrysocolle), new Object[]{"X", "Y", "Y", 'X', this.Chrysocolle, 'Y', Items.stick});
  488. GameRegistry.addRecipe(new ItemStack(this.HacheChrysocolle), new Object[]{"XX", "XY", " Y", 'X', this.Chrysocolle, 'Y', Items.stick});
  489. GameRegistry.addRecipe(new ItemStack(this.FauxChrysocolle), new Object[]{"XX", " Y", " Y", 'X', this.Chrysocolle, 'Y', Items.stick});
  490. GameRegistry.addRecipe(new ItemStack(this.helmetRubis), new Object[]{"XXX", "X X", 'X', this.Rubis});
  491. GameRegistry.addRecipe(new ItemStack(this.chestPlateRubis), new Object[]{"X X", "XXX", "XXX", 'X', this.Rubis});
  492. GameRegistry.addRecipe(new ItemStack(this.leggingsRubis), new Object[]{"XXX", "X X", "X X", 'X', this.Rubis});
  493. GameRegistry.addRecipe(new ItemStack(this.bootsRubis), new Object[]{"X X", "X X", 'X', this.Rubis});
  494. GameRegistry.addRecipe(new ItemStack(this.helmetAmethyste), new Object[]{"XXX", "X X", 'X', this.Amethyste});
  495. GameRegistry.addRecipe(new ItemStack(this.chestPlateAmethyste), new Object[]{"X X", "XXX", "XXX", 'X', this.Amethyste});
  496. GameRegistry.addRecipe(new ItemStack(this.leggingsAmethyste), new Object[]{"XXX", "X X", "X X", 'X', this.Amethyste});
  497. GameRegistry.addRecipe(new ItemStack(this.bootsAmethyste), new Object[]{"X X", "X X", 'X', this.Amethyste});
  498. GameRegistry.addRecipe(new ItemStack(this.helmetSaphir), new Object[]{"XXX", "X X", 'X', this.Saphir});
  499. GameRegistry.addRecipe(new ItemStack(this.chestPlateSaphir), new Object[]{"X X", "XXX", "XXX", 'X', this.Saphir});
  500. GameRegistry.addRecipe(new ItemStack(this.leggingsSaphir), new Object[]{"XXX", "X X", "X X", 'X', this.Saphir});
  501. GameRegistry.addRecipe(new ItemStack(this.bootsSaphir), new Object[]{"X X", "X X", 'X', this.Saphir});
  502. GameRegistry.addRecipe(new ItemStack(this.helmetAxinite), new Object[]{"XXX", "X X", 'X', this.Axinite});
  503. GameRegistry.addRecipe(new ItemStack(this.chestPlateAxinite), new Object[]{"X X", "XXX", "XXX", 'X', this.Axinite});
  504. GameRegistry.addRecipe(new ItemStack(this.leggingsAxinite), new Object[]{"XXX", "X X", "X X", 'X', this.Axinite});
  505. GameRegistry.addRecipe(new ItemStack(this.bootsAxinite), new Object[]{"X X", "X X", 'X', this.Axinite});
  506. GameRegistry.addRecipe(new ItemStack(this.helmetAlmandin), new Object[]{"XXX", "X X", 'X', this.Almandin});
  507. GameRegistry.addRecipe(new ItemStack(this.chestPlateAlmandin), new Object[]{"X X", "XXX", "XXX", 'X', this.Almandin});
  508. GameRegistry.addRecipe(new ItemStack(this.leggingsAlmandin), new Object[]{"XXX", "X X", "X X", 'X', this.Almandin});
  509. GameRegistry.addRecipe(new ItemStack(this.bootsAlmandin), new Object[]{"X X", "X X", 'X', this.Almandin});
  510. GameRegistry.addRecipe(new ItemStack(this.helmetChrysocolle), new Object[]{"XXX", "X X", 'X', this.Chrysocolle});
  511. GameRegistry.addRecipe(new ItemStack(this.chestPlateChrysocolle), new Object[]{"X X", "XXX", "XXX", 'X', this.Chrysocolle});
  512. GameRegistry.addRecipe(new ItemStack(this.leggingsChrysocolle), new Object[]{"XXX", "X X", "X X", 'X', this.Chrysocolle});
  513. GameRegistry.addRecipe(new ItemStack(this.bootsChrysocolle), new Object[]{"X X", "X X", 'X', this.Chrysocolle});
  514.  
  515.  
  516. GameRegistry.addShapelessRecipe(new ItemStack(this.SucreColorant), new Object[]{new ItemStack(Items.sugar), new ItemStack(Items.dye, 1, 10)});
  517. GameRegistry.addShapelessRecipe(new ItemStack(this.TranchePain), new Object[] {new ItemStack(this.Couteau, 1, OreDictionary.WILDCARD_VALUE), new ItemStack(Items.bread)});
  518. GameRegistry.addShapelessRecipe(new ItemStack(this.BolChocoDur), new Object[]{new ItemStack(Items.bowl), new ItemStack(this.TabletteChoco)});
  519.  
  520.  
  521. //Achievements
  522.  
  523. FMLCommonHandler.instance().bus().register(new CraftingHandler());
  524.  
  525.  
  526.  
  527. //Monstres
  528.  
  529.  
  530.  
  531.  
  532. }
  533.  
  534. //postInit n'est pas utilisé, mais important.
  535. @EventHandler
  536. public void postInit(FMLPostInitializationEvent event)
  537. {
  538.  
  539.        
  540.        
  541. }
  542.  
  543.    
  544. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement