Guest User

Main Class Code

a guest
Nov 23rd, 2013
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.88 KB | None | 0 0
  1. package science;
  2.  
  3. import net.minecraft.block.Block;
  4. import net.minecraft.block.material.Material;
  5. import net.minecraft.item.EnumArmorMaterial;
  6. import net.minecraft.item.Item;
  7. import net.minecraft.item.ItemStack;
  8. import net.minecraftforge.common.Configuration;
  9. import net.minecraftforge.common.EnumHelper;
  10. import net.minecraftforge.common.MinecraftForge;
  11. import science.Lead.LeadBlock;
  12. import science.Lead.LeadIngot;
  13. import science.Lead.LeadOre;
  14. import science.Lead.LeadOreGeneration;
  15. import science.Quontonium.QuontoniumArmor;
  16. import science.Quontonium.QuontoniumBlock;
  17. import science.Quontonium.QuontoniumIngot;
  18. import science.Quontonium.QuontoniumOre;
  19. import science.Quontonium.QuontoniumOreGeneration;
  20. import science.Rhodium.RhodiumArmor;
  21. import science.Rhodium.RhodiumBlock;
  22. import science.Rhodium.RhodiumIngot;
  23. import science.Rhodium.RhodiumOre;
  24. import science.Rhodium.RhodiumOreGeneration;
  25. import science.Ruby.RubyArmor;
  26. import science.Ruby.RubyBlock;
  27. import science.Ruby.RubyItem;
  28. import science.Ruby.RubyOre;
  29. import science.Ruby.RubyOreGeneration;
  30. import science.Sapphire.SapphireArmor;
  31. import science.Sapphire.SapphireBlock;
  32. import science.Sapphire.SapphireItem;
  33. import science.Sapphire.SapphireOre;
  34. import science.Sapphire.SapphireOreGeneration;
  35. import cpw.mods.fml.common.Mod;
  36. import cpw.mods.fml.common.Mod.EventHandler;
  37. import cpw.mods.fml.common.event.FMLInitializationEvent;
  38. import cpw.mods.fml.common.event.FMLLoadEvent;
  39. import cpw.mods.fml.common.event.FMLPreInitializationEvent;
  40. import cpw.mods.fml.common.event.FMLServerStartingEvent;
  41. import cpw.mods.fml.common.network.NetworkMod;
  42. import cpw.mods.fml.common.registry.GameRegistry;
  43. import cpw.mods.fml.common.registry.LanguageRegistry;
  44.  
  45. @Mod(modid="Random_Mod", name="Random_Mod", version="1.0")
  46. @NetworkMod(clientSideRequired=true, serverSideRequired=false)
  47.  
  48. public class Random_Mod {
  49.  
  50. //Block ID Section
  51. int QuontoniumBlockID;
  52. int QuontoniumOreID;
  53. int LeadBlockID;
  54. int LeadOreBlockID;
  55. int RhodiumBlockID;
  56. int RhodiumOreID;
  57. int RubyBlockID;
  58. int RubyOreID;
  59. int SapphireBlockID;
  60. int SapphireOreID;
  61.  
  62.  
  63. //Item ID Section
  64. int QuontoniumIngotID;
  65. int LeadIngotID;
  66. int RhodiumIngotID;
  67. int RubyItemID;
  68. int SapphireItemID;
  69.  
  70. //Armor ID Section
  71. //Quontonium
  72. int QuontoniumHelmetID;
  73. int QuontoniumChestID;
  74. int QuontoniumLeggingsID;
  75. int QuontoniumBootsID;
  76. //Lead
  77. int LeadHelmetID;
  78. int LeadChestID;
  79. int LeadLeggingsID;
  80. int LeadBootsID;
  81. //Rhodium
  82. int RhodiumHelmetID;
  83. int RhodiumChestID;
  84. int RhodiumLeggingsID;
  85. int RhodiumBootsID;
  86. //Ruby
  87. int RubyHelmetID;
  88. int RubyChestID;
  89. int RubyLeggingsID;
  90. int RubyBootsID;
  91.  
  92. //Sapphire
  93. int SapphireHelmetID;
  94. int SapphireChestID;
  95. int SapphireLeggingsID;
  96. int SapphireBootsID;
  97.  
  98. //Tool ID Section
  99.  
  100.  
  101. //Block Section
  102. public static Block QuontoniumBlock;
  103. public static Block QuontoniumOre;
  104. public static Block LeadBlock;
  105. public static Block LeadOre;
  106. public static Block RhodiumBlock;
  107. public static Block RhodiumOre;
  108. public static Block RubyBlock;
  109. public static Block RubyOre;
  110. public static Block SapphireBlock;
  111. public static Block SapphireOre;
  112.  
  113. //Item Section
  114. public static Item QuontoniumIngot;
  115. public static Item LeadIngot;
  116. public static Item RhodiumIngot;
  117. public static Item RubyItem;
  118. public static Item SapphireItem;
  119.  
  120. //Material Section
  121. public static EnumArmorMaterial QuontoniumArmor =
  122. EnumHelper.addArmorMaterial("QuontoniumArmor", 1819, new int[] { 3, 8, 7, 3 }, 10);
  123.  
  124. public static EnumArmorMaterial LeadArmor =
  125. EnumHelper.addArmorMaterial("LeadArmor", 1819, new int[]{ 2, 6, 5, 2 }, 15);
  126.  
  127. public static EnumArmorMaterial RhodiumArmor =
  128. EnumHelper.addArmorMaterial("RhodiumArmor", 829, new int[]{ 2, 5, 4, 1 }, 7);
  129.  
  130. public static EnumArmorMaterial RubyArmor =
  131. EnumHelper.addArmorMaterial("RubyArmor", 829, new int[]{ 2, 6, 4, 2 }, 10);
  132.  
  133. public static EnumArmorMaterial SapphireArmor =
  134. EnumHelper.addArmorMaterial("SapphireArmor", 829, new int[]{ 3, 7, 6, 3 }, 15);
  135.  
  136.  
  137. //Armor Section
  138. //Quontonium
  139. public static Item QuontoniumHelmet;
  140. public static Item QuontoniumChest;
  141. public static Item QuontoniumLeggings;
  142. public static Item QuontoniumBoots;
  143. //Lead
  144. public static Item LeadHelmet;
  145. public static Item LeadChest;
  146. public static Item LeadLeggings;
  147. public static Item LeadBoots;
  148. //Rhodium
  149. public static Item RhodiumHelmet;
  150. public static Item RhodiumChest;
  151. public static Item RhodiumLeggings;
  152. public static Item RhodiumBoots;
  153. //Ruby
  154. public static Item RubyHelmet;
  155. public static Item RubyChest;
  156. public static Item RubyLeggings;
  157. public static Item RubyBoots;
  158. //Sapphire
  159. public static Item SapphireHelmet;
  160. public static Item SapphireChest;
  161. public static Item SapphireLeggings;
  162. public static Item SapphireBoots;
  163.  
  164.  
  165. //Instance of the mod
  166. public static Random_Mod instance;
  167.  
  168. @EventHandler
  169. public void preInit(FMLPreInitializationEvent event) {
  170.  
  171. //OreGeneration
  172. GameRegistry.registerWorldGenerator(new QuontoniumOreGeneration());
  173. GameRegistry.registerWorldGenerator(new LeadOreGeneration());
  174. GameRegistry.registerWorldGenerator(new RhodiumOreGeneration());
  175. GameRegistry.registerWorldGenerator(new RubyOreGeneration());
  176. GameRegistry.registerWorldGenerator(new SapphireOreGeneration());
  177.  
  178.  
  179. //Configuration Code
  180. Configuration config = new Configuration(event.getSuggestedConfigurationFile());
  181.  
  182. config.load();
  183. //Quontonium
  184. QuontoniumBlockID = config.get("Block IDs", "Quontonium Block ID", 10000).getInt();
  185. QuontoniumOreID = config.get("Block IDs", "Quontonium Ore ID", 10001).getInt();
  186.  
  187. QuontoniumIngotID = config.get("Material IDs", "Quontonium Ingot ID", 10002).getInt();
  188.  
  189. QuontoniumHelmetID = config.get("Armor IDs", "Quontonium Helmet ID", 10003).getInt();
  190. QuontoniumChestID = config.get("Armor IDs", "Quontonium Chest ID", 100004).getInt();
  191. QuontoniumLeggingsID = config.get("Armor IDs", "Quontonium Leggings ID", 10005).getInt();
  192. QuontoniumBootsID = config.get("Armor IDs", "Quontonium Boots ID", 10006).getInt();
  193.  
  194.  
  195. //Lead
  196. LeadBlockID = config.get("Block IDs", "Lead Block ID", 10012).getInt();
  197. LeadOreBlockID = config.get("Block IDs", "Lead Ore ID", 10013).getInt();
  198.  
  199. LeadIngotID = config.get("Material IDs", "Lead Ingot ID", 10014).getInt();
  200.  
  201. LeadHelmetID = config.get("Armor IDs", "Lead Helmet ID", 10015).getInt();
  202. LeadChestID = config.get("Armor IDs", "Lead Chest ID", 10016).getInt();
  203. LeadLeggingsID = config.get("Armor IDs", "Lead Leggings ID", 1017).getInt();
  204. LeadBootsID = config.get("Armor IDs", "Lead Boots ID", 100018).getInt();
  205.  
  206. //Rhodium
  207. RhodiumBlockID = config.get("Block IDs", "Rhodium Block ID", 10024).getInt();
  208. RhodiumOreID = config.get("Block IDs", "Rhodium Ore ID", 10025).getInt();
  209.  
  210. RhodiumIngotID = config.get("Material IDs", "Rhodium Ingot ID", 10026).getInt();
  211.  
  212. RhodiumHelmetID = config.get("Armor IDs", "Rhodium Helmet ID", 10027).getInt();
  213. RhodiumChestID = config.get("Armor IDs", "Rhodium Chest ID", 10028).getInt();
  214. RhodiumLeggingsID = config.get("Armor IDs", "Rhodium Leggings ID", 10029).getInt();
  215. RhodiumBootsID = config.get("Armor IDs", "Rhodium Boots ID", 10030).getInt();
  216.  
  217. //Ruby
  218. RubyBlockID = config.get("Block IDs", "Ruby Block ID", 10036).getInt();
  219. RubyOreID = config.get("Block IDs", "Ruby Ore ID", 10037).getInt();
  220.  
  221. RubyItemID = config.get("Material IDs", "Ruby ID", 10038).getInt();
  222.  
  223. RubyHelmetID = config.get("Armor IDs", "Ruby Helmet ID", 10039).getInt();
  224. RubyChestID = config.get("Armor IDs", "Ruby Chest ID", 10040).getInt();
  225. RubyLeggingsID = config.get("Armor IDs", "Ruby Leggings ID", 10041).getInt();
  226. RubyBootsID = config.get("Armor IDs", "Ruby Boots ID", 10042).getInt();
  227.  
  228.  
  229. //Sapphire
  230. SapphireBlockID = config.get("Block IDs", "Sapphire Block ID", 10048).getInt();
  231. SapphireOreID = config.get("Block IDs", "Sapphire Ore ID", 10049).getInt();
  232.  
  233. SapphireItemID = config.get("Material IDs", "Sapphire ID", 10050).getInt();
  234.  
  235. SapphireHelmetID = config.get("Armor IDs", "Sapphire Helmet ID", 10051).getInt();
  236. SapphireChestID = config.get("Armor IDs", "Sapphire Chest ID", 10052).getInt();
  237. SapphireLeggingsID = config.get("Armor IDs", "Sapphire Leggings ID", 10053).getInt();
  238. SapphireBootsID = config.get("Armor IDs", "Sapphire Boots ID", 10054).getInt();
  239.  
  240. config.save();
  241.  
  242. //Initialise our Blocks
  243. //Quontonium
  244. this.QuontoniumBlock = new QuontoniumBlock(QuontoniumBlockID, Material.rock);
  245. this.QuontoniumOre = new QuontoniumOre(QuontoniumOreID);
  246. this.LeadBlock = new LeadBlock(LeadBlockID, Material.rock);
  247. this.LeadOre = new LeadOre(LeadOreBlockID);
  248. this.RhodiumBlock = new RhodiumBlock(RhodiumBlockID, Material.rock);
  249. this.RhodiumOre = new RhodiumOre(RhodiumOreID);
  250. this.RubyBlock = new RubyBlock(RubyBlockID, Material.rock);
  251. this.RubyOre = new RubyOre(RubyOreID);
  252. this.SapphireBlock = new SapphireBlock(SapphireBlockID, Material.rock);
  253. this.SapphireOre = new SapphireOre(SapphireOreID);
  254.  
  255. //Initialise our Items
  256. this.QuontoniumIngot = new QuontoniumIngot(QuontoniumIngotID);
  257. this.LeadIngot = new LeadIngot(LeadIngotID);
  258. this.RhodiumIngot = new RhodiumIngot(RhodiumIngotID);
  259. this.RubyItem = new RubyItem(RubyItemID);
  260. this.SapphireItem = new SapphireItem(SapphireItemID);
  261.  
  262. //Initialise our Armor
  263. //Quontonium
  264. QuontoniumHelmet = new QuontoniumArmor(QuontoniumHelmetID,
  265. QuontoniumArmor, 0, 0, "Quontonium");
  266. QuontoniumChest = new QuontoniumArmor(QuontoniumChestID,
  267. QuontoniumArmor, 0, 1, "Quontonium");
  268. QuontoniumLeggings = new QuontoniumArmor(QuontoniumLeggingsID,
  269. QuontoniumArmor, 0, 2, "Quontonium");
  270. QuontoniumBoots = new QuontoniumArmor(QuontoniumBootsID,
  271. QuontoniumArmor, 0, 3, "Quontonium");
  272.  
  273. //Lead
  274. LeadHelmet = new QuontoniumArmor(LeadHelmetID,
  275. LeadArmor, 0, 0, "Lead");
  276. LeadChest = new QuontoniumArmor(LeadChestID,
  277. LeadArmor, 0, 1, "Lead");
  278. LeadLeggings = new QuontoniumArmor(LeadLeggingsID,
  279. LeadArmor, 0, 2, "Lead");
  280. LeadBoots = new QuontoniumArmor(LeadBootsID,
  281. LeadArmor, 0, 3, "Lead");
  282.  
  283. //Rhodium
  284. RhodiumHelmet = new RhodiumArmor(RhodiumHelmetID,
  285. RhodiumArmor, 0, 0, "Rhodium");
  286. RhodiumChest = new RhodiumArmor(RhodiumChestID,
  287. RhodiumArmor, 0, 1, "Rhodium");
  288. RhodiumLeggings = new RhodiumArmor(RhodiumLeggingsID,
  289. RhodiumArmor, 0, 2, "Rhodium");
  290. RhodiumBoots = new RhodiumArmor(RhodiumBootsID,
  291. RhodiumArmor, 0, 3, "Rhodium");
  292.  
  293. //Ruby
  294. RubyHelmet = new RubyArmor(RubyHelmetID,
  295. RubyArmor, 0, 0, "Ruby");
  296. RubyChest = new RubyArmor(RubyChestID,
  297. RubyArmor, 0, 1, "Ruby");
  298. RubyLeggings = new RubyArmor(RubyLeggingsID,
  299. RubyArmor, 0, 2, "Ruby");
  300. RubyBoots = new RubyArmor(RubyBootsID,
  301. RubyArmor, 0, 3, "Ruby");
  302.  
  303. //Sapphire
  304. SapphireHelmet = new SapphireArmor(SapphireHelmetID,
  305. SapphireArmor, 0, 0, "Sapphire");
  306. SapphireChest = new SapphireArmor(SapphireChestID,
  307. SapphireArmor, 0, 1, "Sapphire");
  308. SapphireLeggings = new SapphireArmor(SapphireLeggingsID,
  309. SapphireArmor, 0, 2, "Sapphire");
  310. SapphireBoots = new SapphireArmor(SapphireBootsID,
  311. SapphireArmor, 0, 3, "Sapphire");
  312.  
  313.  
  314. //Initalise our Tools
  315.  
  316.  
  317. //Quontonium
  318. LanguageRegistry.addName(QuontoniumBlock, "Quontonium Block");
  319. MinecraftForge.setBlockHarvestLevel(QuontoniumBlock, "pickaxe", 2);
  320. GameRegistry.registerBlock(QuontoniumBlock, "QuontoniumBlock");
  321.  
  322. LanguageRegistry.addName(QuontoniumOre, "Quontonium Ore");
  323. MinecraftForge.setBlockHarvestLevel(QuontoniumOre, "pickaxe", 2);
  324. GameRegistry.registerBlock(QuontoniumOre, "QuontoniumOre");
  325.  
  326. LanguageRegistry.addName(QuontoniumIngot, "Quontonium Ingot");
  327.  
  328. LanguageRegistry.addName(QuontoniumHelmet, "Quontonium Helmet");
  329. LanguageRegistry.addName(QuontoniumChest, "Quontonium Chestplate");
  330. LanguageRegistry.addName(QuontoniumLeggings, "Quontonium Leggings");
  331. LanguageRegistry.addName(QuontoniumBoots, "Quontonium Boots");
  332.  
  333.  
  334. //Lead
  335. LanguageRegistry.addName(LeadBlock, "Lead Block");
  336. MinecraftForge.setBlockHarvestLevel(LeadBlock, "pickaxe", 1);
  337. GameRegistry.registerBlock(LeadBlock, "LeadBlock");
  338.  
  339. LanguageRegistry.addName(LeadOre, "Lead Ore");
  340. MinecraftForge.setBlockHarvestLevel(LeadOre, "pickaxe", 1);
  341. GameRegistry.registerBlock(LeadOre, "LeadOre");
  342.  
  343. LanguageRegistry.addName(LeadIngot, "Lead Ingot");
  344.  
  345. LanguageRegistry.addName(LeadHelmet, "Lead Helmet");
  346. LanguageRegistry.addName(LeadChest, "Lead Chestplate");
  347. LanguageRegistry.addName(LeadLeggings, "Lead Leggings");
  348. LanguageRegistry.addName(LeadBoots, "Lead Boots");
  349.  
  350.  
  351. //Rhodium
  352. LanguageRegistry.addName(RhodiumBlock, "Rhodium Block");
  353. MinecraftForge.setBlockHarvestLevel(RhodiumBlock, "pickaxe", 2);
  354. GameRegistry.registerBlock(RhodiumBlock, "RhodiumBlock");
  355.  
  356. LanguageRegistry.addName(RhodiumOre, "Rhodium Ore");
  357. MinecraftForge.setBlockHarvestLevel(RhodiumOre, "pickaxe", 2);
  358. GameRegistry.registerBlock(RhodiumOre, "RhodiumOre");
  359.  
  360. LanguageRegistry.addName(RhodiumIngot, "Rhodium Ingot");
  361.  
  362. LanguageRegistry.addName(RhodiumHelmet, "Rhodium Helmet");
  363. LanguageRegistry.addName(RhodiumChest, "Rhodium Chestplate");
  364. LanguageRegistry.addName(RhodiumLeggings, "Rhodium Leggings");
  365. LanguageRegistry.addName(RhodiumBoots, "Rhodium Boots");
  366.  
  367. //Ruby
  368. LanguageRegistry.addName(RubyBlock, "Ruby Block");
  369. MinecraftForge.setBlockHarvestLevel(RubyBlock, "pickaxe", 2);
  370. GameRegistry.registerBlock(RubyBlock, "RubyBlock");
  371.  
  372. LanguageRegistry.addName(RubyOre, "Ruby Ore");
  373. MinecraftForge.setBlockHarvestLevel(RubyOre, "pickaxe", 2);
  374. GameRegistry.registerBlock(RubyOre, "RubyOre");
  375.  
  376. LanguageRegistry.addName(RubyItem, "Ruby");
  377.  
  378. LanguageRegistry.addName(RubyHelmet, "Ruby Helmet");
  379. LanguageRegistry.addName(RubyChest, "Ruby Chestplate");
  380. LanguageRegistry.addName(RubyLeggings, "Ruby Leggings");
  381. LanguageRegistry.addName(RubyBoots, "Ruby Boots");
  382.  
  383.  
  384. //Sapphire
  385. LanguageRegistry.addName(SapphireBlock, "Sapphire Block");
  386. MinecraftForge.setBlockHarvestLevel(SapphireBlock, "pickaxe", 2);
  387. GameRegistry.registerBlock(SapphireBlock, "Sapphire Block");
  388.  
  389. LanguageRegistry.addName(SapphireOre, "Sapphire Ore");
  390. MinecraftForge.setBlockHarvestLevel(SapphireOre, "pickaxe", 2);
  391. GameRegistry.registerBlock(SapphireOre, "SapphireOre");
  392.  
  393. LanguageRegistry.addName(SapphireItem, "Sapphire");
  394.  
  395. LanguageRegistry.addName(SapphireHelmet, "Sapphire Helmet");
  396. LanguageRegistry.addName(SapphireChest, "Sapphire Chestplate");
  397. LanguageRegistry.addName(SapphireLeggings, "Sapphire Leggings");
  398. LanguageRegistry.addName(SapphireBoots, "Sapphire Boots");
  399.  
  400.  
  401. //Smelting Recipes
  402. //Quontonium
  403. GameRegistry.addSmelting(QuontoniumOreID, new ItemStack(QuontoniumIngot), 0.7F);
  404. //Lead
  405. GameRegistry.addSmelting(LeadOreBlockID, new ItemStack(LeadIngot), 1.1F);
  406. //Rhodium
  407. GameRegistry.addSmelting(RhodiumOreID, new ItemStack(RhodiumIngot), 0.9F);
  408.  
  409.  
  410. //Crafting Recipes
  411. //Quontonium
  412. //Blocks
  413. GameRegistry.addRecipe(new ItemStack(QuontoniumBlock),
  414. "xxx", "xxx", "xxx",
  415. 'x', QuontoniumIngot);
  416. //Armor
  417. GameRegistry.addRecipe(new ItemStack(QuontoniumHelmet),
  418. "xxx", "x x",
  419. 'x', QuontoniumIngot);
  420.  
  421. GameRegistry.addRecipe(new ItemStack(QuontoniumChest),
  422. "x x", "xxx", "xxx",
  423. 'x', QuontoniumIngot);
  424.  
  425. GameRegistry.addRecipe(new ItemStack(QuontoniumLeggings),
  426. "xxx", "x x", "x x",
  427. 'x', QuontoniumIngot);
  428.  
  429. GameRegistry.addRecipe(new ItemStack(QuontoniumBoots),
  430. " ", "x x", "x x",
  431. 'x', QuontoniumIngot);
  432. //Tools
  433.  
  434.  
  435. //Lead
  436. GameRegistry.addRecipe(new ItemStack(LeadBlock),
  437. "xxx", "xxx", "xxx",
  438. 'x', LeadIngot);
  439.  
  440. GameRegistry.addRecipe(new ItemStack(LeadHelmet),
  441. "xxx", "x x",
  442. 'x', LeadIngot);
  443.  
  444. GameRegistry.addRecipe(new ItemStack(LeadChest),
  445. "x x", "xxx", "xxx",
  446. 'x', LeadIngot);
  447.  
  448. GameRegistry.addRecipe(new ItemStack(LeadLeggings),
  449. "xxx", "x x", "x x",
  450. 'x', LeadIngot);
  451.  
  452. GameRegistry.addRecipe(new ItemStack(LeadBoots),
  453. " ", "x x", "x x",
  454. 'x', LeadIngot);
  455.  
  456.  
  457. //Rhodium
  458. GameRegistry.addRecipe(new ItemStack(RhodiumBlock),
  459. "xxx", "xxx", "xxx",
  460. 'x', RhodiumIngot);
  461.  
  462. GameRegistry.addRecipe(new ItemStack(RhodiumHelmet),
  463. "xxx", "x x",
  464. 'x', RhodiumIngot);
  465.  
  466. GameRegistry.addRecipe(new ItemStack(RhodiumChest),
  467. "x x", "xxx", "xxx",
  468. 'x', RhodiumIngot);
  469.  
  470. GameRegistry.addRecipe(new ItemStack(RhodiumLeggings),
  471. "xxx", "x x", "x x",
  472. 'x', RhodiumIngot);
  473.  
  474. GameRegistry.addRecipe(new ItemStack(RhodiumBoots),
  475. " ", "x x", "x x",
  476. 'x', RhodiumIngot);
  477.  
  478. //Ruby
  479. GameRegistry.addRecipe(new ItemStack(RubyBlock),
  480. "xxx", "xxx", "xxx",
  481. 'x', RubyItem);
  482.  
  483. GameRegistry.addRecipe(new ItemStack(RubyHelmet),
  484. "xxx", "x x",
  485. 'x', RubyItem);
  486.  
  487. GameRegistry.addRecipe(new ItemStack(RubyChest),
  488. "x x", "xxx", "xxx",
  489. 'x', RubyItem);
  490.  
  491. GameRegistry.addRecipe(new ItemStack(RubyLeggings),
  492. "xxx", "x x", "x x",
  493. 'x', RubyItem);
  494.  
  495. GameRegistry.addRecipe(new ItemStack(RubyBoots),
  496. " ", "x x", "x x",
  497. 'x', RubyItem);
  498.  
  499. //Sapphire
  500. GameRegistry.addRecipe(new ItemStack(SapphireBlock),
  501. "xxx", "xxx", "xxx",
  502. 'x', SapphireItem);
  503.  
  504. GameRegistry.addRecipe(new ItemStack(SapphireHelmet),
  505. "xxx", "x x",
  506. 'x', SapphireItem);
  507.  
  508. GameRegistry.addRecipe(new ItemStack(SapphireChest),
  509. "x x", "xxx", "xxx",
  510. 'x', SapphireItem);
  511.  
  512. GameRegistry.addRecipe(new ItemStack(SapphireLeggings),
  513. "xxx", "x x", "x x",
  514. 'x', SapphireItem);
  515.  
  516. GameRegistry.addRecipe(new ItemStack(SapphireBoots),
  517. " ", "x x", "x x",
  518. 'x', SapphireItem);
  519.  
  520. }
  521.  
  522. @EventHandler
  523. public void load(FMLLoadEvent event) {
  524.  
  525.  
  526. }
  527.  
  528.  
  529. @EventHandler
  530. public void postInit(FMLInitializationEvent event) {
  531.  
  532. }
  533.  
  534.  
  535. @EventHandler
  536. public void ServerStart(FMLServerStartingEvent event) {
  537.  
  538.  
  539. }
  540.  
  541.  
  542. }
Advertisement
Add Comment
Please, Sign In to add comment