Advertisement
Guest User

main class

a guest
Apr 19th, 2015
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 54.19 KB | None | 0 0
  1. package mymod.main;
  2.  
  3. import java.awt.Color;
  4.  
  5. import mymod.armor.MyArmor;
  6. import mymod.armor.MyArmor_2;
  7. import mymod.armor.MyArmor_3;
  8. import mymod.armor.MyArmor_4;
  9. import mymod.armor.MyArmor_5;
  10. import mymod.armor.MyArmor_6;
  11. import mymod.armor.orcanArmor;
  12. import mymod.biome.MyBiome_1;
  13. import mymod.biome.NioBiome;
  14. import mymod.blocks.MyBlock;
  15. import mymod.blocks.MyBlockGen;
  16. import mymod.blocks.MyBlockGenRuby;
  17. import mymod.blocks.MyBlock_2;
  18. import mymod.blocks.nioGrass;
  19. import mymod.blocks.orcanBlock;
  20. import mymod.blocks.orcanBlockGen;
  21. import mymod.entity.BeardedDragon.EntityBeardedDragon;
  22. import mymod.entity.EntityRifleBolt.EntityRifleBolt;
  23. import mymod.entity.ape.MyEntityApe;
  24. import mymod.entity.ogre.MyEntityOgre;
  25. import mymod.items.MyAxe;
  26. import mymod.items.MyFood;
  27. import mymod.items.MyItem;
  28. import mymod.items.MyPickaxe;
  29. import mymod.items.MyShovel;
  30. import mymod.items.MySword;
  31. import mymod.proxies.CommonProxy;
  32. import net.minecraft.block.Block;
  33. import net.minecraft.block.material.Material;
  34. import net.minecraft.client.Minecraft;
  35. import net.minecraft.creativetab.CreativeTabs;
  36. import net.minecraft.entity.Entity;
  37. import net.minecraft.entity.EntityList;
  38. import net.minecraft.entity.EntityList.EntityEggInfo;
  39. import net.minecraft.entity.EnumCreatureType;
  40. import net.minecraft.init.Blocks;
  41. import net.minecraft.init.Items;
  42. import net.minecraft.item.Item;
  43. import net.minecraft.item.Item.ToolMaterial;
  44. import net.minecraft.item.ItemArmor.ArmorMaterial;
  45. import net.minecraft.item.ItemStack;
  46. import net.minecraft.stats.Achievement;
  47. import net.minecraft.stats.AchievementList;
  48. import net.minecraft.world.biome.BiomeGenBase;
  49. import net.minecraftforge.common.AchievementPage;
  50. import net.minecraftforge.common.BiomeManager;
  51. import net.minecraftforge.common.BiomeManager.BiomeEntry;
  52. import net.minecraftforge.common.BiomeManager.BiomeType;
  53. import net.minecraftforge.common.util.EnumHelper;
  54. import net.minecraftforge.oredict.OreDictionary;
  55. import net.minecraftforge.oredict.ShapedOreRecipe;
  56. import cpw.mods.fml.common.Mod;
  57. import cpw.mods.fml.common.Mod.EventHandler;
  58. import cpw.mods.fml.common.Mod.Instance;
  59. import cpw.mods.fml.common.SidedProxy;
  60. import cpw.mods.fml.common.event.FMLInitializationEvent;
  61. import cpw.mods.fml.common.event.FMLPostInitializationEvent;
  62. import cpw.mods.fml.common.event.FMLPreInitializationEvent;
  63. import cpw.mods.fml.common.registry.EntityRegistry;
  64. import cpw.mods.fml.common.registry.GameRegistry;
  65. import cpw.mods.fml.common.registry.LanguageRegistry;
  66. import cpw.mods.fml.relauncher.Side;
  67.  
  68.  
  69. /* MOD INFO */
  70. @Mod(modid = mymod.main.Main.MODID, version = Main.VERSION)
  71. public class Main {
  72. /* PROXY INFO */
  73. @SidedProxy(clientSide="mymod.proxies.ClientProxy", serverSide="mymod.proxies.CommonProxy")
  74. public static CommonProxy proxy;
  75. /**
  76. * DECLARATION SECTION
  77. * *********************************************************** */
  78. public static final String MODID = "mymod";
  79. public static final String VERSION = "1.1";
  80.  
  81. public static Block MyBlock_1 = (Block)Block.blockRegistry.getObject("MyBlock_1");
  82. public static Block MyBlock_2 = (Block)Block.blockRegistry.getObject("MyBlock_2");
  83. public static Block MyBlock_3 = (Block)Block.blockRegistry.getObject("MyBlock_3");
  84. public static Block nioGrass = (Block)Block.blockRegistry.getObject("nioGrass");
  85. public static Block orcanBlock = (Block)Block.blockRegistry.getObject("orcanBlock");
  86.  
  87. public static final BiomeGenBase.Height height_Nio = new BiomeGenBase.Height(0.9F, 1.3F);
  88.  
  89.  
  90. public static BiomeGenBase MyBiome_1;
  91. public static BiomeGenBase NioBiome;
  92. public static Item pulseRifle;
  93. public static Item pulseAmmo;
  94. public static Item pulseBullet;
  95. public static Item fireStaff;
  96. public static Item lightningStaff;
  97. public static Item orcanAxe;
  98. public static Item orcanShovel;
  99. public static Item orcanPickaxe;
  100. public static Item orcanIngot;
  101. public static Item orcanSword;
  102. public static Item MyArmor_1;
  103. public static Item MyAxe_4;
  104. public static Item MyAxe_6;
  105. public static Item MyItem_6;
  106. public static Item MySword_2;
  107. public static Item MySword_7;
  108. public static Item MySword_1;
  109. public static Item MyPickaxe_1;
  110. public static Item MyShovel6;
  111. public static Item MyShovel7;
  112. public static Item MyPickaxe_3;
  113. public static Item MyPickaxe_2;
  114. public static Item MyAxe_3;
  115. public static Item MyAxe;
  116. public static Item MySword_6;
  117. public static Item MySword_5;
  118. public static Item MyItem_4;
  119. public static Item MyAxe_5;
  120. public static Item MyItem_1;
  121. public static Item MyItem_2;
  122. public static Item MySword_8;
  123. public static Item MyItem_3;
  124. public static Item MyFood_1;
  125. public static Item MyFood_2;
  126. public static Item orcanHelmet;
  127. public static Item orcanChestplate;
  128. public static Item orcanLeggings;
  129. public static Item orcanBoots;
  130. public static Item MyHelmet_1;
  131. public static Item MyChest_1;
  132. public static Item MyLeggings_1;
  133. public static Item MyBoots_1;
  134. public static Item MyHelmet_6;
  135. public static Item MyChest_6;
  136. public static Item MyLeggings_6;
  137. public static Item MyBoots_6;
  138. public static Item MyHelmet_2;
  139. public static Item MyChest_2;
  140. public static Item MyLeggings_2;
  141. public static Item MyBoots_2;
  142. public static Item MyHelmet_3;
  143. public static Item MyChest_3;
  144. public static Item MyLeggings_3;
  145. public static Item MyBoots_3;
  146. public static Item MyHelmet_4;
  147. public static Item MyChest_4;
  148. public static Item MyLeggings_4;
  149. public static Item MyBoots_4;
  150. public static Item MyHelmet_5;
  151. public static Item MyChest_5;
  152. public static Item MyLeggings_5;
  153. public static Item MyBoots_5;
  154. public static Item MyEnderStaff;
  155. public static Item MyItem_5;
  156. public static Item MySword_4;
  157. public static Item MyShovel2;
  158. public static Item MyShovel5;
  159. public static Item MyShovel;
  160. public static Item MyAxe2;
  161. public static Item MyShovel3;
  162. public static Item MyPickaxe_4;
  163. public static Item MyFood_3;
  164. public static Item MySword_3;
  165. public static Item MyShovel4;
  166. public static Item MyPickaxe_5;
  167. public static Item MyPickaxe_6;
  168. public static Achievement MyAchievement_1;
  169. public static Achievement MyAchievement_2;
  170. public static Achievement MyAchievement_3;
  171. public static CreativeTabs infinicraftMain;
  172. public static CreativeTabs infinicraftTech;
  173. public static CreativeTabs infinicraftMagic;
  174. int modEntityID = 0;
  175. static int MyEntityID = 300;
  176. public static int getUniqueEntityId() {
  177. do {
  178. MyEntityID++;
  179. }
  180. while (EntityList.getStringFromID(MyEntityID) != null);
  181. return MyEntityID++;
  182. }
  183. public static void registerEntityEgg(Class <? extends Entity> entity, int PrimaryColor, int secondaryColor) {
  184. int id = getUniqueEntityId();
  185. EntityList.IDtoClassMapping.put(id, entity);
  186. EntityList.entityEggs.put(id, new EntityEggInfo(id, PrimaryColor, secondaryColor));
  187. }
  188.  
  189. /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */
  190. public static ToolMaterial MyToolMaterial = EnumHelper.addToolMaterial("Sapphire", 3, 10000, 20.0F, 50.0F, 15);
  191. /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */
  192. public static ToolMaterial MyToolMaterial5 = EnumHelper.addToolMaterial("Ruby", 3, 1568, 16.0F, 7.0F, 15);
  193. /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */
  194. public static ToolMaterial MyToolMaterial2 = EnumHelper.addToolMaterial("Mega Stone", 3, 5000, 150.0F, 500.0F, 12);
  195. /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */
  196. public static ToolMaterial orcanToolMaterial = EnumHelper.addToolMaterial("Orcan", 2, 325, 6.0F, 4.0F, 7);
  197. /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */
  198. public static ToolMaterial MyToolMaterial6 = EnumHelper.addToolMaterial("Night Shard", 3, 500, 150.0F, 36.0F, 21);
  199. /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */
  200. public static ToolMaterial MyToolMaterial10 = EnumHelper.addToolMaterial("Take em'", 3, 750, 15.0F, 4.0F, 21);
  201. /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */
  202. public static ToolMaterial MyToolMaterial7 = EnumHelper.addToolMaterial("netherrack", 2, 158, 10.0F, 1.0F, 6);
  203. /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability*/
  204. public static ToolMaterial MyToolMaterial4 = EnumHelper.addToolMaterial("Ruby", 1, 136, 8.0F,2.0F, 15);
  205. /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability*/
  206. public static ToolMaterial MyToolMaterial9 = EnumHelper.addToolMaterial("End", 2, 854, 12.0F,2.5F, 18);
  207. /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */
  208. public static ToolMaterial MyToolMaterial3 = EnumHelper.addToolMaterial("GlowStone", 1, 136, 8.0F, 2.0F, 15);
  209. /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */
  210. public static ToolMaterial MyToolMaterial8 = EnumHelper.addToolMaterial("NOPE", 3, 9999, 500.0F, 46.0F, 15);
  211. /** maxDamageFactor, damageReductionAmountArray, enchantability*/
  212. public static ArmorMaterial MyArmorMaterial_1 = EnumHelper.addArmorMaterial("Sapphire", 500, new int[]{5, 10, 8, 5}, 50);
  213. /** maxDamageFactor, damageReductionAmountArray, enchantability*/
  214. public static ArmorMaterial MyArmorMaterial_2 = EnumHelper.addArmorMaterial("Mega Stone", 5000, new int[]{25, 30, 30, 25}, 100);
  215. /** maxDamageFactor, damageReductionAmountArray, enchantability*/
  216. public static ArmorMaterial MyArmorMaterial_6 = EnumHelper.addArmorMaterial("End", 25, new int[]{3, 6, 5, 4}, 14);
  217. /** maxDamageFactor, damageReductionAmountArray, enchantability*/
  218. public static ArmorMaterial MyArmorMaterial_3 = EnumHelper.addArmorMaterial("GlowStone Shard", 50, new int[]{2, 3, 3, 2}, 30);
  219. /** maxDamageFactor, damageReductionAmountArray, enchantability*/
  220. public static ArmorMaterial MyArmorMaterial_4 = EnumHelper.addArmorMaterial("Ruby", 100, new int[]{4, 8, 7, 5}, 10);
  221. /** maxDamageFactor, damageReductionAmountArray, enchantability*/
  222. public static ArmorMaterial MyArmorMaterial_5 = EnumHelper.addArmorMaterial("netherrack", 8, new int[]{1, 4, 3, 1}, 15);/** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */
  223. /** maxDamageFactor, damageReductionAmountArray, enchantability*/
  224. public static ArmorMaterial orcanArmorMaterial = EnumHelper.addArmorMaterial("orcan", 200, new int[]{3, 9, 8, 3}, 10);public static ToolMaterial PulseBowToolMaterial = EnumHelper.addToolMaterial("Pulse Bow Material", 3, 9999, 500.0F, 10.0F, 15);
  225. /* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */
  226.  
  227.  
  228. @EventHandler
  229. public void preInit( FMLPreInitializationEvent event)
  230. {
  231. EntityRegistry.registerModEntity(EntityRifleBolt.class, "rifleBolt", 4, this, 128, 1, true);
  232. MyBiome_1 = new MyBiome_1(100);
  233. BiomeManager.addBiome(BiomeType.DESERT, new BiomeEntry(MyBiome_1, 100));
  234. NioBiome = new NioBiome(101);
  235. BiomeManager.addBiome(BiomeType.COOL, new BiomeEntry(NioBiome, 101));
  236. }
  237. /**
  238. * OreDictionary
  239. */
  240. @Instance(value="InfiniCraft")
  241. public static mymod.main.Main instance;
  242. @EventHandler
  243. //1.3.2 @Init
  244. public void load(FMLInitializationEvent event)
  245. {
  246. addNames();
  247. oreRegistration();
  248. addOreRecipes();
  249. }
  250. public static void addNames()
  251. {
  252. LanguageRegistry.addName(MyItem_1, "Sapphire");
  253. LanguageRegistry.addName(MyItem_3, "Ruby");
  254. LanguageRegistry.addName(MyBlock_3, "Ruby Ore");
  255. LanguageRegistry.addName(MyBlock_1, "Sapphire Ore");
  256. }
  257. public static void oreRegistration()
  258. {
  259. OreDictionary.registerOre("gemSapphire", MyItem_1);
  260. OreDictionary.registerOre("oreSapphire", MyBlock_1);
  261. OreDictionary.registerOre("oreRuby", MyBlock_3);
  262. OreDictionary.registerOre("gemRuby", MyItem_3);
  263. }
  264. public static void addOreRecipes()
  265. {
  266. GameRegistry.addRecipe(new ShapedOreRecipe(MyHelmet_4, true, new Object[]{
  267. "FFF",
  268. "F F", Character.valueOf('F'), "gemRuby"}));
  269. GameRegistry.addRecipe(new ShapedOreRecipe(MyChest_4, true, new Object[]{
  270. "F F",
  271. "FFF",
  272. "FFF", Character.valueOf('F'), "gemRuby"}));
  273. GameRegistry.addRecipe(new ShapedOreRecipe(MyLeggings_4, true, new Object[]{
  274. "FFF",
  275. "F F",
  276. "F F",Character.valueOf('F'), "gemRuby"}));
  277. GameRegistry.addRecipe(new ShapedOreRecipe(MyBoots_4, true, new Object[]{
  278. "F F",
  279. "F F",Character.valueOf('F'), "gemRuby"}));
  280. GameRegistry.addRecipe(new ShapedOreRecipe(MyHelmet_1, true, new Object[]{
  281. "FFF",
  282. "F F", Character.valueOf('F'), "gemSapphire"}));
  283. GameRegistry.addRecipe(new ShapedOreRecipe(MyChest_1, true, new Object[]{
  284. "F F",
  285. "FFF",
  286. "FFF",Character.valueOf('F'), "gemSapphire"}));
  287. GameRegistry.addRecipe(new ShapedOreRecipe(MyLeggings_1, true, new Object[]{
  288. "FFF",
  289. "F F",
  290. "F F",Character.valueOf('F'), "gemSapphire"}));
  291. GameRegistry.addRecipe(new ShapedOreRecipe(MyBoots_1, true, new Object[]{
  292. "F F",
  293. "F F",Character.valueOf('F'), "gemSapphire"}));
  294. }
  295. {
  296. /**
  297. * LOAD SECTION
  298. * *********************************************************** */
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305. // LOAD THE CREATIVE TAB
  306. infinicraftMain = new CreativeTabs("infinicraftMain") {
  307. public ItemStack getIconItemStack() {
  308. return new ItemStack(MyBlock_1, 1, 0); // Icon, Stack Size, Tab Position
  309. }
  310. @Override
  311. public Item getTabIconItem() {
  312. return null;
  313. }
  314. };
  315. // LOAD THE CREATIVE TAB
  316. infinicraftTech = new CreativeTabs("infinicraftTech") {
  317. public ItemStack getIconItemStack() {
  318. return new ItemStack(pulseRifle, 1, 1); // Icon, Stack Size, Tab Position
  319. }
  320. @Override
  321. public Item getTabIconItem() {
  322. return null;
  323. }
  324. };
  325. // LOAD THE CREATIVE TAB
  326. infinicraftMagic = new CreativeTabs("infinicraftMagic") {
  327. public ItemStack getIconItemStack() {
  328. return new ItemStack(lightningStaff, 1, 2); // Icon, Stack Size, Tab Position
  329. }
  330. @Override
  331. public Item getTabIconItem() {
  332. return null;
  333. }
  334. };
  335. // LOAD THE BOW
  336. pulseRifle = new mymod.items.pulseRifle(0, "pulseRifle").setCreativeTab(infinicraftTech).setMaxStackSize(1).setTextureName("pulseRifle.png");
  337. GameRegistry.registerItem(pulseRifle, "pulseRifle");
  338. LanguageRegistry.addName(pulseRifle, "Pulse Rifle");
  339. // LOAD THE BOW
  340. pulseAmmo = new mymod.items.MyItem(0, "pulseAmmo").setCreativeTab(infinicraftTech).setMaxStackSize(16).setTextureName("pulseAmmo.png");
  341. GameRegistry.registerItem(pulseAmmo, "pulseAmmo");
  342. LanguageRegistry.addName(pulseAmmo, "Pulse Ammo");
  343. // LOAD THE BOW
  344. pulseBullet = new mymod.items.MyItem(0, "pulseBullet").setCreativeTab(infinicraftTech).setMaxStackSize(16).setTextureName("pulseBullet.png");
  345. GameRegistry.registerItem(pulseBullet, "pulseBullet");
  346. LanguageRegistry.addName(pulseBullet, "Pulse Bullet");
  347. // LOAD THE PICKAXE 4
  348. MyPickaxe_4 = new MyPickaxe( 0, MyToolMaterial5, "MyPickaxe_4").setCreativeTab(infinicraftMain);
  349. GameRegistry.registerItem(MyPickaxe_4, "MyPickaxe_4");
  350. LanguageRegistry.addName(MyPickaxe_4, "Ruby Pickaxe");
  351. // LOAD THE PICKAXE 6
  352. MyPickaxe_6 = new MyPickaxe( 0, MyToolMaterial9, "MyPickaxe_6").setCreativeTab(infinicraftMain);
  353. GameRegistry.registerItem(MyPickaxe_6, "MyPickaxe_6");
  354. LanguageRegistry.addName(MyPickaxe_6, "Endstone Pickaxe");
  355. // LOAD THE PICKAXE 5
  356. MyPickaxe_5 = new MyPickaxe( 0, MyToolMaterial7, "MyPickaxe_5").setCreativeTab(infinicraftMain);
  357. GameRegistry.registerItem(MyPickaxe_5, "MyPickaxe_5");
  358. LanguageRegistry.addName(MyPickaxe_5, "Netherrack Pickaxe");
  359. // LOAD THE SHOVEL 2
  360. MyShovel2 = new MyShovel( 0, MyToolMaterial, "MyShovel2").setCreativeTab(infinicraftMain);
  361. GameRegistry.registerItem(MyShovel2, "MyShovel2");
  362. LanguageRegistry.addName(MyShovel2, "Sapphire Shovel");
  363. // LOAD THE SHOVEL 2
  364. MyShovel5 = new MyShovel( 0, MyToolMaterial7, "MyShovel5").setCreativeTab(infinicraftMain);
  365. GameRegistry.registerItem(MyShovel5, "MyShovel5");
  366. LanguageRegistry.addName(MyShovel5, "Netherrack Shovel");
  367. // LOAD THE SHOVEL 4
  368. MyShovel4 = new MyShovel( 0, MyToolMaterial5, "MyShovel4").setCreativeTab(infinicraftMain);
  369. GameRegistry.registerItem(MyShovel4, "MyShovel4");
  370. LanguageRegistry.addName(MyShovel4, "Ruby Shovel");
  371. // LOAD THE SWORD 7
  372. MySword_7 = new MySword( 0, MyToolMaterial9, "MySword_7").setCreativeTab(infinicraftMain);
  373. GameRegistry.registerItem(MySword_7, "MySword_7");
  374. LanguageRegistry.addName(MySword_7, "Endstone Sword");
  375. // LOAD ORCAN PICKAXE
  376. orcanPickaxe = new MyPickaxe( 0, orcanToolMaterial, "orcanPickaxe").setCreativeTab(infinicraftMain);
  377. GameRegistry.registerItem(orcanPickaxe, "orcanPickaxe");
  378. LanguageRegistry.addName(orcanPickaxe, "Orcan Pickaxe");
  379. // LOAD THE ITEM
  380. orcanIngot = new MyItem( 0, "orcanIngot").setCreativeTab(infinicraftMain).setMaxStackSize(64);
  381. GameRegistry.registerItem(orcanIngot, "orcanIngot");
  382. LanguageRegistry.addName(orcanIngot, "Orcan Ingot");
  383. // LOAD THE BLOCK
  384. orcanBlock = new orcanBlock( 0, Material.rock, "orcanBlock").setLightLevel(0.1F).setResistance(7.0F).setHardness(2.0F).setStepSound(Block.soundTypeStone).setCreativeTab(infinicraftMain);
  385. GameRegistry.registerBlock(orcanBlock, "orcanBlock");
  386. LanguageRegistry.addName(orcanBlock, "Orcan Block");
  387. // LOAD THE BLOCK
  388. nioGrass = new nioGrass( 0, Material.grass, "nioGrass").setLightLevel(0.3F).setResistance(2.0F).setHardness(1.0F).setStepSound(Block.soundTypeGrass).setCreativeTab(infinicraftMain);
  389. GameRegistry.registerBlock(nioGrass, "nioGrass");
  390. LanguageRegistry.addName(nioGrass, "Nio Grass");
  391. // LOAD THE SWORD 7
  392. orcanSword = new MySword( 0, orcanToolMaterial, "orcanSword").setCreativeTab(infinicraftMain);
  393. GameRegistry.registerItem(orcanSword, "orcanSword");
  394. LanguageRegistry.addName(orcanSword, "Orcan Sword");
  395. // LOAD THE SHOVEL 4
  396. orcanShovel = new MyShovel( 0, orcanToolMaterial, "orcanShovel").setCreativeTab(infinicraftMain);
  397. GameRegistry.registerItem(orcanShovel, "orcanShovel");
  398. LanguageRegistry.addName(orcanShovel, "Orcan Shovel");
  399. // LOAD THE SHOVEL 4
  400. orcanAxe = new MyAxe( 0, orcanToolMaterial, "orcanAxe").setCreativeTab(infinicraftMain);
  401. GameRegistry.registerItem(orcanAxe, "orcanAxe");
  402. LanguageRegistry.addName(orcanAxe, "Orcan Axe");
  403. orcanHelmet = new orcanArmor(0, orcanArmorMaterial, 0, 0, "orcanArmor").setCreativeTab(infinicraftMain);
  404. GameRegistry.registerItem(orcanHelmet, "orcanHelmet");
  405. LanguageRegistry.addName(orcanHelmet, "Orcan Helmet");
  406. orcanChestplate = new orcanArmor(0, orcanArmorMaterial, 0, 1, "orcanArmor").setCreativeTab(infinicraftMain);
  407. GameRegistry.registerItem(orcanChestplate, "orcanChestplate");
  408. LanguageRegistry.addName(orcanChestplate, "Orcan Chestplate");
  409. orcanLeggings = new orcanArmor(0, orcanArmorMaterial, 0, 2, "orcanArmor").setCreativeTab(infinicraftMain);
  410. GameRegistry.registerItem(orcanLeggings, "orcanLeggings");
  411. LanguageRegistry.addName(orcanLeggings, "Orcan Leggings");
  412. orcanBoots = new orcanArmor(0, orcanArmorMaterial, 0, 3, "orcanArmor").setCreativeTab(infinicraftMain);
  413. GameRegistry.registerItem(orcanBoots, "orcanBoots");
  414. LanguageRegistry.addName(orcanBoots, "Orcan Boots");
  415. // LOAD THE SHOVEL 4
  416. MyShovel6 = new MyShovel( 0, MyToolMaterial8, "MyShovel6").setCreativeTab(infinicraftMain);
  417. GameRegistry.registerItem(MyShovel6, "MyShovel6");
  418. LanguageRegistry.addName(MyShovel6, "The NOPE Shovel");
  419. // LOAD THE SHOVEL 4
  420. MyShovel7 = new MyShovel( 0, MyToolMaterial9, "MyShovel7").setCreativeTab(infinicraftMain);
  421. GameRegistry.registerItem(MyShovel7, "MyShovel7");
  422. LanguageRegistry.addName(MyShovel7, "End Shovel");
  423. // LOAD THE SHOVEL 3
  424. MyShovel3 = new MyShovel( 0, MyToolMaterial3, "MyShovel3").setCreativeTab(infinicraftMain);
  425. GameRegistry.registerItem(MyShovel3, "MyShovel3");
  426. LanguageRegistry.addName(MyShovel3, "GlowStone Shovel");
  427. // LOAD THE ITEM
  428. MyItem_6 = new MyItem( 0, "MyItem_6").setCreativeTab(infinicraftMain).setMaxStackSize(64);
  429. GameRegistry.registerItem(MyItem_6, "MyItem_6");
  430. LanguageRegistry.addName(MyItem_6, "End Shard");
  431. // LOAD THE AXE 2
  432. MyAxe2 = new MyAxe( 0, MyToolMaterial, "MyAxe2").setCreativeTab(infinicraftMain);
  433. GameRegistry.registerItem(MyAxe2, "MyAxe2");
  434. LanguageRegistry.addName(MyAxe2, "Sapphire Axe");
  435. // LOAD THE AXE 4
  436. MyAxe_4 = new MyAxe(0, MyToolMaterial5, "MyAxe_4").setCreativeTab(infinicraftMain);
  437. GameRegistry.registerItem(MyAxe_4, "MyAxe_4");
  438. LanguageRegistry.addName(MyAxe_4, "Ruby Axe");
  439. // LOAD THE AXE 2
  440. MyAxe_5 = new MyAxe(0, MyToolMaterial7, "MyAxe_5").setCreativeTab(infinicraftMain);
  441. GameRegistry.registerItem(MyAxe_5, "MyAxe_5");
  442. LanguageRegistry.addName(MyAxe_5, "Netherrack Axe");
  443. // LOAD THE AXE 2
  444. MyAxe_3 = new MyAxe(0, MyToolMaterial3, "MyAxe_3").setCreativeTab(infinicraftMain);
  445. GameRegistry.registerItem(MyAxe_3, "MyAxe_3");
  446. LanguageRegistry.addName(MyAxe_3, "GlowStone Axe");
  447. // LOAD THE AXE
  448. MyAxe = new MyAxe(0, MyToolMaterial2, "MyAxe").setCreativeTab(infinicraftMain);
  449. GameRegistry.registerItem(MyAxe, "MyAxe");
  450. LanguageRegistry.addName(MyAxe, "Mega Axe");
  451. // LOAD PICKAXE 3
  452. MyPickaxe_3 = new MyPickaxe(0, MyToolMaterial3, "MyPickaxe_3").setCreativeTab(infinicraftMain);
  453. GameRegistry.registerItem(MyPickaxe_3, "MyPickaxe_3");
  454. LanguageRegistry.addName(MyPickaxe_3, "GlowStone Pickaxe");
  455. // LOAD THE SWORD 2
  456. MySword_2 = new MySword(0, MyToolMaterial2, "MySword_2").setCreativeTab(infinicraftMain);
  457. GameRegistry.registerItem(MySword_2, "MySword_2");
  458. LanguageRegistry.addName(MySword_2, "MegaKiller");
  459. // LOAD THE SWORD 6
  460. MySword_6 = new MySword(0, MyToolMaterial7, "MySword_6").setCreativeTab(infinicraftMain);
  461. GameRegistry.registerItem(MySword_6, "MySword_6");
  462. LanguageRegistry.addName(MySword_6, "Netherrack Sword");
  463. // LOAD THE SWORD 3
  464. MySword_3 = new MySword(0, MyToolMaterial3, "MySword_3").setCreativeTab(infinicraftMain);
  465. GameRegistry.registerItem(MySword_3, "MySword_3");
  466. LanguageRegistry.addName(MySword_3, "Glowstone Sword");
  467. // LOAD THE SWORD
  468. MySword_1 = new MySword(0, MyToolMaterial, "MySword_1").setCreativeTab(infinicraftMain);
  469. GameRegistry.registerItem(MySword_1, "MySword_1");
  470. LanguageRegistry.addName(MySword_1, "A Baccas Dream");
  471. // LOAD THE SWORD 8
  472. MySword_8 = new mymod.items.MySword2(0, MyToolMaterial10, "MySword_8").setCreativeTab(infinicraftMain);
  473. GameRegistry.registerItem(MySword_8, "MySword_8");
  474. LanguageRegistry.addName(MySword_8, "Take em' Sword");
  475. // LOAD THE SWORD
  476. MySword_4 = new MySword(0, MyToolMaterial5, "MySword_4").setCreativeTab(infinicraftMain);
  477. GameRegistry.registerItem(MySword_4, "MySword_4");
  478. LanguageRegistry.addName(MySword_4, "Ruby Sword");
  479. // LOAD THE SWORD
  480. MySword_5 = new MySword(0, MyToolMaterial6, "MySword_5").setCreativeTab(infinicraftMain);
  481. GameRegistry.registerItem(MySword_5, "MySword_5");
  482. LanguageRegistry.addName(MySword_5, "Nights Edge");
  483. // LOAD THE SWORD
  484. MyAxe_6 = new MyAxe(0, MyToolMaterial9, "MyAxe_6").setCreativeTab(infinicraftMain);
  485. GameRegistry.registerItem(MyAxe_6, "MyAxe_6");
  486. LanguageRegistry.addName(MyAxe_6, "EndStone Axe");
  487. // LOAD THE PICKAXE
  488. MyPickaxe_1 = new MyPickaxe(0, MyToolMaterial, "MyPickaxe_1").setCreativeTab(infinicraftMain);
  489. GameRegistry.registerItem(MyPickaxe_1, "MyPickaxe_1");
  490. LanguageRegistry.addName(MyPickaxe_1, "Sapphire Pickaxe");
  491. // LOAD THE PICKAXE 2
  492. MyPickaxe_2 = new MyPickaxe(0, MyToolMaterial2, "MyPickaxe_2").setCreativeTab(infinicraftMain);
  493. GameRegistry.registerItem(MyPickaxe_2, "MyPickaxe_2");
  494. LanguageRegistry.addName(MyPickaxe_2, "Mega Pickaxe");
  495. // LOAD THE ITEM
  496. MyItem_5 = new MyItem(0, "MyItem_5").setCreativeTab(infinicraftMain).setMaxStackSize(64);
  497. GameRegistry.registerItem(MyItem_5, "MyItem_5");
  498. LanguageRegistry.addName(MyItem_5, "Nether Shard");
  499. // LOAD THE ITEM
  500. MyItem_1 = new MyItem(0, "MyItem_1").setCreativeTab(infinicraftMain).setMaxStackSize(64);
  501. GameRegistry.registerItem(MyItem_1, "MyItem_1");
  502. LanguageRegistry.addName(MyItem_1, "Sapphire");
  503. // LOAD THE ITEM 4
  504. MyItem_4 = new MyItem(0, "MyItem_4").setCreativeTab(infinicraftMain).setMaxStackSize(64);
  505. GameRegistry.registerItem(MyItem_4, "MyItem_4");
  506. LanguageRegistry.addName(MyItem_4, "Night Shard");
  507. // LOAD THE ITEM 2
  508. MyItem_2 = new MyItem(0, "MyItem_2").setCreativeTab(infinicraftMain).setMaxStackSize(64);
  509. GameRegistry.registerItem(MyItem_2, "MyItem_2");
  510. LanguageRegistry.addName(MyItem_2, "Mega Stone");
  511. // LOAD THE ITEM 2
  512. MyItem_3 = new MyItem(0, "MyItem_3").setCreativeTab(infinicraftMain).setMaxStackSize(64);
  513. GameRegistry.registerItem(MyItem_3, "MyItem_3");
  514. LanguageRegistry.addName(MyItem_3, "Ruby");
  515. // LOAD THE ITEM 2
  516. MyEnderStaff = new mymod.items.MyEnderStaff(0, "MyEnderStaff").setCreativeTab(infinicraftMagic).setMaxStackSize(1);
  517. GameRegistry.registerItem(MyEnderStaff, "MyEnderStaff");
  518. LanguageRegistry.addName(MyEnderStaff, "Ender Staff");
  519. //LOAD FIRE STAFF
  520. fireStaff = new mymod.items.fireStaff(0, "fireStaff").setCreativeTab(infinicraftMagic).setMaxStackSize(1);
  521. GameRegistry.registerItem(fireStaff, "fireStaff");
  522. LanguageRegistry.addName(fireStaff, "Fire Staff");
  523. // LOAD LIGHTNING STAFF
  524. lightningStaff = new mymod.items.lightningStaff(0, "lightningStaff").setCreativeTab(infinicraftMagic).setMaxStackSize(1);
  525. GameRegistry.registerItem(lightningStaff, "lightningStaff");
  526. LanguageRegistry.addName(lightningStaff, "[WIP] Lightning Staff");
  527. // LOAD THE FOOD
  528. /** itemID, healAmount, SaturationModifier (F) isWolfsFavoriteMeat, Texture Name */
  529. MyFood_1 = new MyFood(0, 12, 6.0F, true, "MyFood_1").setCreativeTab(infinicraftMain);
  530. GameRegistry.registerItem(MyFood_1, "MyFood_1");
  531. LanguageRegistry.addName(MyFood_1, "Burger");
  532. // LOAD THE FOOD 2
  533. /** itemID, healAmount, SaturationModifier (F) isWolfsFavoriteMeat, Texture Name */
  534. MyFood_2 = new MyFood(0, 4, 2.0F, false, "MyFood_2").setCreativeTab(infinicraftMain);
  535. GameRegistry.registerItem(MyFood_2, "MyFood_2");
  536. LanguageRegistry.addName(MyFood_2, "Bacon Cupcake");
  537. // LOAD THE FOOD 2
  538. /** itemID, healAmount, SaturationModifier (F) isWolfsFavoriteMeat, Texture Name */
  539. MyFood_3 = new MyFood(0, 6, 3.0F, true, "MyFood_3").setCreativeTab(infinicraftMain);
  540. GameRegistry.registerItem(MyFood_3, "MyFood_3");
  541. LanguageRegistry.addName(MyFood_3, "Bacon");
  542. // LOAD THE BLOCK
  543. MyBlock_1 = new MyBlock( 0, Material.rock, "MyBlock_1").setLightLevel(0.8F).setResistance(10.0F).setHardness(3.0F).setStepSound(Block.soundTypeStone).setCreativeTab(infinicraftMain);
  544. GameRegistry.registerBlock(MyBlock_1, "MyBlock_1");
  545. LanguageRegistry.addName(MyBlock_1, "Sapphire Ore");
  546. // LOAD THE BLOCK 2
  547. MyBlock_2 = new MyBlock_2( 0, Material.rock, "MyBlock_2").setLightLevel(0.8F).setResistance(10.0F).setHardness(3.0F).setStepSound(Block.soundTypeStone).setCreativeTab(infinicraftMain);
  548. GameRegistry.registerBlock(MyBlock_2, "MyBlock_2");
  549. LanguageRegistry.addName(MyBlock_2, "Nio Block");
  550. // LOAD THE BLOCK 2
  551. MyBlock_3 = new mymod.blocks.MyBlock_3( 0, Material.rock, "MyBlock_3").setLightLevel(0.8F).setResistance(10.0F).setHardness(3.0F).setStepSound(Block.soundTypeStone).setCreativeTab(infinicraftMain).setBlockTextureName("MyBlock_3");
  552. GameRegistry.registerBlock(MyBlock_3, "MyBlock_3");
  553. LanguageRegistry.addName(MyBlock_3, "Ruby Ore");
  554. // LOAD CHESTPLATE
  555. MyChest_3 = new MyArmor_3(0, MyArmorMaterial_3, 0, 1, "myarmor3").setCreativeTab(infinicraftMain);
  556. GameRegistry.registerItem(MyChest_3, "MyChest_3");
  557. LanguageRegistry.addName(MyChest_3, "GlowStone Chestplate");
  558. // LOAD CHESTPLATE
  559. MyChest_5 = new MyArmor_5(0, MyArmorMaterial_5, 0, 1, "myarmor5").setCreativeTab(infinicraftMain);
  560. GameRegistry.registerItem(MyChest_5, "MyChest_5");
  561. LanguageRegistry.addName(MyChest_5, "Netherrack Chestplate");
  562. // LOAD LEGGINGS
  563. MyLeggings_5 = new MyArmor_5(0, MyArmorMaterial_5, 0, 2, "myarmor5").setCreativeTab(infinicraftMain);
  564. GameRegistry.registerItem(MyLeggings_5, "MyLeggings_5");
  565. LanguageRegistry.addName(MyLeggings_5, "Netherrack Leggings");
  566. // LOAD BOOTS
  567. MyBoots_5 = new MyArmor_5 (0, MyArmorMaterial_3, 0, 3, "myarmor5").setCreativeTab(infinicraftMain);
  568. GameRegistry.registerItem(MyBoots_5, "MyBoots_5");
  569. LanguageRegistry.addName(MyBoots_5, "Netherrack Boots");
  570. // LOAD LEGGINGS
  571. MyLeggings_3 = new MyArmor_3(0, MyArmorMaterial_3, 0, 2, "myarmor3").setCreativeTab(infinicraftMain);
  572. GameRegistry.registerItem(MyLeggings_3, "MyLeggings_3");
  573. LanguageRegistry.addName(MyLeggings_3, "GlowStone Leggings");
  574. // LOAD BOOTS
  575. MyBoots_3 = new MyArmor_3 (0, MyArmorMaterial_3, 0, 3, "myarmor3").setCreativeTab(infinicraftMain);
  576. GameRegistry.registerItem(MyBoots_3, "MyBoots_3");
  577. LanguageRegistry.addName(MyBoots_3, "GlowStone Boots");
  578. // LOAD HELMET 2
  579. MyHelmet_2 = new MyArmor_2(0, MyArmorMaterial_2, 0, 0, "myarmor2").setCreativeTab(infinicraftMain);
  580. GameRegistry.registerItem(MyHelmet_2, "MyHelmet_2");
  581. LanguageRegistry.addName(MyHelmet_2, "Mega Helmet");
  582. // LOAD HELMET 2
  583. MyHelmet_5 = new MyArmor_5(0, MyArmorMaterial_5, 0, 0, "myarmor5").setCreativeTab(infinicraftMain);
  584. GameRegistry.registerItem(MyHelmet_5, "MyHelmet_5");
  585. LanguageRegistry.addName(MyHelmet_5, "Netherrack Helmet");
  586. //LOAD HELMET 2
  587. MyHelmet_6 = new MyArmor_6(0, MyArmorMaterial_6, 0, 0, "myarmor6").setCreativeTab(infinicraftMain);
  588. GameRegistry.registerItem(MyHelmet_6, "MyHelmet_6");
  589. LanguageRegistry.addName(MyHelmet_6, "Ender Helmet");
  590. // LOAD CHESTPLATE 2
  591. MyChest_6 = new MyArmor_6(0, MyArmorMaterial_6, 0, 1, "myarmor6").setCreativeTab(infinicraftMain);
  592. GameRegistry.registerItem(MyChest_6, "MyChest_6");
  593. LanguageRegistry.addName(MyChest_6, "Ender Chestplate");
  594. // LOAD LEGGINGS 2
  595. MyLeggings_6 = new MyArmor_6(0, MyArmorMaterial_6, 0, 2, "myarmor6").setCreativeTab(infinicraftMain);
  596. GameRegistry.registerItem(MyLeggings_6, "MyLeggings_6");
  597. LanguageRegistry.addName(MyLeggings_6, "Ender Leggings");
  598. // LOAD BOOTS
  599. MyBoots_6 = new MyArmor_6(0, MyArmorMaterial_6, 0, 3, "myarmor6").setCreativeTab(infinicraftMain);
  600. GameRegistry.registerItem(MyBoots_6, "MyBoots_6");
  601. LanguageRegistry.addName(MyBoots_6, "Ender Boots");
  602. // LOAD HELMET 3
  603. MyHelmet_3 = new MyArmor_3(0, MyArmorMaterial_3, 0, 0, "myarmor3").setCreativeTab(infinicraftMain);
  604. GameRegistry.registerItem(MyHelmet_3, "MyHelmet_3");
  605. LanguageRegistry.addName(MyHelmet_3, "GlowStone Helmet");
  606. // LOAD CHESTPLATE 2
  607. MyChest_2 = new MyArmor_2(0, MyArmorMaterial_2, 0, 1, "myarmor2").setCreativeTab(infinicraftMain);
  608. GameRegistry.registerItem(MyChest_2, "MyChest_2");
  609. LanguageRegistry.addName(MyChest_2, "Mega Chestplate");
  610. // LOAD LEGGINGS 2
  611. MyLeggings_2 = new MyArmor_2(0, MyArmorMaterial_2, 0, 2, "myarmor2").setCreativeTab(infinicraftMain);
  612. GameRegistry.registerItem(MyLeggings_2, "MyLeggings_2");
  613. LanguageRegistry.addName(MyLeggings_2, "Mega Leggings");
  614. // LOAD BOOTS
  615. MyBoots_2 = new MyArmor_2(0, MyArmorMaterial_2, 0, 3, "myarmor2").setCreativeTab(infinicraftMain);
  616. GameRegistry.registerItem(MyBoots_2, "MyBoots_2");
  617. LanguageRegistry.addName(MyBoots_2, "Mega Boots");
  618. // LOAD SHOVEL
  619. MyShovel = new MyShovel(0, MyToolMaterial2, "MyShovel").setCreativeTab(infinicraftMain);
  620. GameRegistry.registerItem(MyShovel, "MyShovel");
  621. LanguageRegistry.addName(MyShovel, "Mega Shovel");
  622. // LOAD HELMET
  623. MyHelmet_1 = new MyArmor(0, MyArmorMaterial_1, 0, 0, "myarmor").setCreativeTab(infinicraftMain);
  624. GameRegistry.registerItem(MyHelmet_1, "MyHelmet_1");
  625. LanguageRegistry.addName(MyHelmet_1, "Sapphire Helmet");
  626. // LOAD CHESTPLATE
  627. MyChest_1 = new MyArmor(0, MyArmorMaterial_1, 0, 1, "myarmor").setCreativeTab(infinicraftMain);
  628. GameRegistry.registerItem(MyChest_1, "MyChest_1");
  629. LanguageRegistry.addName(MyChest_1, "Sapphire Chestplate");
  630. // LOAD LEGGINGS
  631. MyLeggings_1 = new MyArmor(0, MyArmorMaterial_1, 0, 2, "myarmor").setCreativeTab(infinicraftMain);
  632. GameRegistry.registerItem(MyLeggings_1, "MyLeggings_1");
  633. LanguageRegistry.addName(MyLeggings_1, "Sapphire Leggings");
  634. // LOAD BOOTS
  635. MyBoots_1 = new MyArmor(0, MyArmorMaterial_1, 0, 3, "myarmor").setCreativeTab(infinicraftMain);
  636. GameRegistry.registerItem(MyBoots_1, "MyBoots_1");
  637. LanguageRegistry.addName(MyBoots_1, "Sapphire Boots");
  638. // LOAD HELMET
  639. MyHelmet_4 = new MyArmor_4(0, MyArmorMaterial_4, 0, 0, "myarmor4").setCreativeTab(infinicraftMain);
  640. GameRegistry.registerItem(MyHelmet_4, "MyHelmet_4");
  641. LanguageRegistry.addName(MyHelmet_4, "Ruby Helmet");
  642. // LOAD CHESTPLATE
  643. MyChest_4 = new MyArmor_4(0, MyArmorMaterial_4, 0, 1, "myarmor4").setCreativeTab(infinicraftMain);
  644. GameRegistry.registerItem(MyChest_4, "MyChest_4");
  645. LanguageRegistry.addName(MyChest_4, "Ruby Chestplate");
  646. // LOAD LEGGINGS
  647. MyLeggings_4 = new MyArmor_4(0, MyArmorMaterial_4, 0, 2, "myarmor4").setCreativeTab(infinicraftMain);
  648. GameRegistry.registerItem(MyLeggings_4, "MyLeggings_4");
  649. LanguageRegistry.addName(MyLeggings_4, "Ruby Leggings");
  650. // LOAD BOOTS
  651. MyBoots_4 = new MyArmor_4(0, MyArmorMaterial_4, 0, 3, "myarmor4").setCreativeTab(infinicraftMain);
  652. GameRegistry.registerItem(MyBoots_4, "MyBoots_4");
  653. LanguageRegistry.addName(MyBoots_4, "Ruby Boots");
  654. // REGISTER YOUR ENTITY
  655. EntityRegistry.registerGlobalEntityID(MyEntityOgre.class, "Golem Of Death", EntityRegistry.findGlobalUniqueEntityId());
  656. EntityRegistry.addSpawn(MyEntityOgre.class, 15, 1, 4, EnumCreatureType.monster, BiomeGenBase.desert);
  657. EntityRegistry.addSpawn(MyEntityOgre.class, 15, 1, 4, EnumCreatureType.monster, BiomeGenBase.forest);
  658. EntityRegistry.addSpawn(MyEntityOgre.class, 15, 1, 4, EnumCreatureType.monster, BiomeGenBase.plains);
  659. EntityRegistry.addSpawn(MyEntityOgre.class, 15, 1, 4, EnumCreatureType.monster);
  660. registerEntityEgg(MyEntityOgre.class, (new Color(255, 255, 255)).getRGB(), (new Color(0, 0, 0)).getRGB());
  661. // REGISTER YOUR ENTITY
  662. EntityRegistry.registerGlobalEntityID(MyEntityApe.class, "Ape", EntityRegistry.findGlobalUniqueEntityId(),(new Color(97, 71, 52)).getRGB(), (new Color(151, 137, 111)).getRGB());
  663. EntityRegistry.addSpawn(MyEntityApe.class, 88, 6, 12, EnumCreatureType.ambient, BiomeGenBase.jungle);
  664. EntityRegistry.addSpawn(MyEntityApe.class, 88, 6, 12, EnumCreatureType.ambient, BiomeGenBase.jungleHills);
  665. EntityRegistry.addSpawn(MyEntityApe.class, 5, 1, 5, EnumCreatureType.ambient);
  666. // REGISTER YOUR ENTITY 3
  667. EntityRegistry.registerGlobalEntityID(EntityBeardedDragon.class, "Bearded Dragon", EntityRegistry.findGlobalUniqueEntityId());
  668. EntityRegistry.addSpawn(EntityBeardedDragon.class, 24, 6, 12, EnumCreatureType.ambient, BiomeGenBase.desert);
  669. EntityRegistry.addSpawn(EntityBeardedDragon.class, 24, 6, 12, EnumCreatureType.ambient);
  670. registerEntityEgg(EntityBeardedDragon.class, (new Color(99, 74, 57)).getRGB(), (new Color(249, 255, 0)).getRGB());
  671. MyAchievement_1 = new Achievement("achievement.megastone", "MyItem_2", 8 , 12, new ItemStack(MyItem_2), AchievementList.theEnd2).registerStat();
  672. MyAchievement_2 = new Achievement("achievement.nio", "MyBlock_2", -3 , 3, mymod.main.Main.MyBlock_2, AchievementList.acquireIron).registerStat();
  673. MyAchievement_3 = new Achievement("achievement.bacon", "MyFood_2", -3 , -5, new ItemStack(MyFood_2), AchievementList.bakeCake).registerStat();
  674. /* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */
  675. }
  676. @EventHandler
  677. public static void init( FMLInitializationEvent event ) {
  678. if (event.getSide() == Side.CLIENT)
  679. Minecraft.getMinecraft().refreshResources();
  680. proxy.registerRenderInformation();
  681. }
  682. {
  683. /**
  684. * RECIPES SECTION
  685. * *********************************************************** */
  686. //Fire Staff Recipe
  687. GameRegistry.addRecipe(new ItemStack(fireStaff,1), new Object[]
  688. {
  689. "XYX",
  690. "XYX",
  691. "NPN",
  692. 'X', Items.fire_charge,
  693. 'Y', MyItem_2,
  694. 'N', Items.nether_star,
  695. 'P', Items.stick
  696. });
  697. // AXE RECIPE 3
  698. GameRegistry.addRecipe(new ItemStack(MyAxe_3,1), new Object[]
  699. {
  700. "XX",
  701. "SX",
  702. "S ",
  703. 's', Items.stick,
  704. 'X', Items.glowstone_dust,
  705. });
  706. // AXE RECIPE 3
  707. GameRegistry.addRecipe(new ItemStack(MyShovel6,1), new Object[]
  708. {
  709. "XAX",
  710. "ABA",
  711. "XAX",
  712. 'B', MyShovel,
  713. 'X', MyShovel5,
  714. 'A', Blocks.diamond_block,
  715. });
  716. // AXE RECIPE 5
  717. GameRegistry.addRecipe(new ItemStack(MyAxe_5,1), new Object[]
  718. {
  719. "XX",
  720. "SX",
  721. "S ",
  722. 'S', Items.stick,
  723. 'X', MyItem_5,
  724. });
  725. // SWORD RECIPE 2
  726. GameRegistry.addRecipe(new ItemStack(MySword_2, 1), new Object[]
  727. {
  728. "X",
  729. "X",
  730. "S",
  731. 'S', Items.stick,
  732. 'X', MyItem_2,
  733. });
  734. // SWORD RECIPE 2
  735. GameRegistry.addRecipe(new ItemStack(MySword_4, 1), new Object[]
  736. {
  737. "X",
  738. "X",
  739. "S",
  740. 'S', Items.stick,
  741. 'X', MyItem_3,
  742. });
  743. //SWORD RECIPE 3
  744. GameRegistry.addRecipe(new ItemStack(MySword_3, 1), new Object[]
  745. {
  746. "X",
  747. "X",
  748. "S",
  749. 'S', Items.stick,
  750. 'X', Items.glowstone_dust,
  751. });
  752. // AXE RECIPE
  753. GameRegistry.addRecipe(new ItemStack(MyAxe, 1), new Object[]
  754. {
  755. " XX",
  756. " SX",
  757. " S ",
  758. 'S', Items.stick,
  759. 'X', MyItem_2,
  760. });
  761. // MEGA STONE RECIPE
  762. GameRegistry.addRecipe(new ItemStack(MyItem_2, 1), new Object[]
  763. {
  764. "YYY",
  765. "YXY",
  766. "YYY",
  767. 'X', MyBlock_2,
  768. 'Y', Items.nether_star
  769. });
  770.  
  771. // MEGA STONE RECIPE
  772. GameRegistry.addRecipe(new ItemStack(MyPickaxe_6, 1), new Object[]
  773. {
  774. "XXX",
  775. " Y ",
  776. " Y ",
  777. 'X', MyItem_6,
  778. 'Y', Items.stick
  779. });
  780.  
  781. // MEGA STONE RECIPE
  782. GameRegistry.addRecipe(new ItemStack(MyAxe_6, 1), new Object[]
  783. {
  784. "XX",
  785. "YX",
  786. "Y ",
  787. 'X', MyItem_6,
  788. 'Y', Items.stick
  789. });
  790.  
  791. // NIGHTS EDGE RECIPE
  792. GameRegistry.addRecipe(new ItemStack(MySword_5, 1), new Object[]
  793. {
  794. "X",
  795. "X",
  796. "Y",
  797. 'X', MyItem_4,
  798. 'Y', Items.stick,
  799. });
  800.  
  801. // NIGHT SHARD RECIPE
  802. GameRegistry.addRecipe(new ItemStack(MyItem_4, 1), new Object[]
  803. {
  804. "XXX",
  805. "XYX",
  806. "XXX",
  807. 'X', Items.ender_pearl,
  808. 'Y', Items.ender_eye,
  809. });
  810. // SWORD RECIPE
  811. GameRegistry.addRecipe(new ItemStack(MySword_1, 1), new Object[]
  812. {
  813. " X ",
  814. "XXX",
  815. " S ",
  816. 'S', Items.stick,
  817. 'X', MyItem_1,
  818. });
  819.  
  820. // NETHER SHARD RECIPE
  821. GameRegistry.addRecipe(new ItemStack(MyItem_5, 1), new Object[]
  822. {
  823. "S",
  824. 'S', Blocks.netherrack
  825. });
  826.  
  827. // PICKAXE RECIPE
  828. GameRegistry.addRecipe(new ItemStack(MyPickaxe_1, 1), new Object[]
  829. {
  830. "XXX",
  831. " S ",
  832. " S ",
  833. 'S', Items.stick,
  834. 'X', MyItem_1,
  835. });
  836.  
  837.  
  838.  
  839. // PICKAXE RECIPE
  840. GameRegistry.addRecipe(new ItemStack(MyPickaxe_5, 1), new Object[]
  841. {
  842. "XXX",
  843. " S ",
  844. " S ",
  845. 'S', Items.stick,
  846. 'X', MyItem_5,
  847. });
  848.  
  849. // PICKAXE RECIPE 2
  850. GameRegistry.addRecipe(new ItemStack(MyPickaxe_2, 1), new Object[]
  851. {
  852. "XXX",
  853. " S ",
  854. " S ",
  855. 'S', Items.stick,
  856. 'X', MyItem_2,
  857. });
  858.  
  859. // ENDER STAFF RECIPE
  860. GameRegistry.addRecipe(new ItemStack(MyEnderStaff, 1), new Object[]
  861. {
  862. "ZZZ",
  863. "XXX",
  864. "OSO",
  865. 'S', Items.nether_star,
  866. 'X', Items.ender_pearl,
  867. 'Z', Items.ender_eye,
  868. 'O', Blocks.obsidian,
  869. });
  870.  
  871.  
  872. // Sword RECIPE 6
  873. GameRegistry.addRecipe(new ItemStack(MySword_6, 1), new Object[]
  874. {
  875. "X",
  876. "X",
  877. "S",
  878. 'S', Items.stick,
  879. 'X', MyItem_5,
  880. });
  881.  
  882.  
  883. // FOOD RECIPE
  884. GameRegistry.addRecipe(new ItemStack(MyFood_1, 1), new Object[]
  885. {
  886. " X ",
  887. " S ",
  888. " X ",
  889. 'S', Items.cooked_beef,
  890. 'X', Items.bread
  891. });
  892.  
  893.  
  894. // FOOD RECIPE
  895. GameRegistry.addRecipe(new ItemStack(MyItem_6, 1), new Object[]
  896. {
  897. "X",
  898. 'X', Blocks.end_stone
  899. });
  900.  
  901. // FOOD RECIPE
  902. GameRegistry.addRecipe(new ItemStack(MyFood_2, 1), new Object[]
  903. {
  904. " Y ",
  905. " S ",
  906. " X ",
  907. 'S', MyFood_3,
  908. 'X', Items.bread,
  909. 'Y', Items.sugar
  910. });
  911.  
  912. // FOOD RECIPE
  913. GameRegistry.addRecipe(new ItemStack(MySword_8, 1), new Object[]
  914. {
  915. "S",
  916. "S",
  917. "X",
  918. 'S', Items.nether_star,
  919. 'X', Items.stick,
  920. });
  921.  
  922. // FOOD RECIPE
  923. GameRegistry.addRecipe(new ItemStack(MyFood_3, 1), new Object[]
  924. {
  925. " X ",
  926. " S ",
  927. " X ",
  928. 'S', Items.cooked_porkchop,
  929. 'X', Items.porkchop
  930. });
  931.  
  932. // SMELTING RECIPE
  933. GameRegistry.addSmelting(MyBlock_1, (new ItemStack(MyItem_1, 1)), 20);
  934.  
  935. // SMELTING RECIPE 2
  936. GameRegistry.addSmelting(MyBlock_3, (new ItemStack(MyItem_3, 1)), 21);
  937.  
  938. //Smelting Recipse
  939. GameRegistry.addSmelting(orcanBlock, (new ItemStack(orcanIngot)), 20);
  940.  
  941. // HELMET RECIPE
  942. GameRegistry.addRecipe(new ItemStack(MyHelmet_1, 1), new Object[]
  943. {
  944. "XXX",
  945. "X X",
  946. 'X', MyItem_1,
  947. });
  948.  
  949. // HELMET RECIPE
  950. GameRegistry.addRecipe(new ItemStack(MyHelmet_6, 1), new Object[]
  951. {
  952. "XXX",
  953. "X X",
  954. 'X', MyItem_6,
  955. });
  956.  
  957. // HELMET RECIPE
  958. GameRegistry.addRecipe(new ItemStack(MyChest_6, 1), new Object[]
  959. {
  960. "X X",
  961. "XXX",
  962. "XXX",
  963. 'X', MyItem_6,
  964. });
  965.  
  966. // HELMET RECIPE
  967. GameRegistry.addRecipe(new ItemStack(MyLeggings_6, 1), new Object[]
  968. {
  969. "XXX",
  970. "X X",
  971. "X X",
  972. 'X', MyItem_6,
  973. });
  974.  
  975. // HELMET RECIPE
  976. GameRegistry.addRecipe(new ItemStack(MyBoots_6, 1), new Object[]
  977. {
  978. "X X",
  979. "X X",
  980. 'X', MyItem_6,
  981. });
  982.  
  983. // HELMET RECIPE
  984. GameRegistry.addRecipe(new ItemStack(MyHelmet_5, 1), new Object[]
  985. {
  986. "XXX",
  987. "X X",
  988. 'X', MyItem_5,
  989. });
  990.  
  991. // HELMET RECIPE
  992. GameRegistry.addRecipe(new ItemStack(MyHelmet_4, 1), new Object[]
  993. {
  994. "XXX",
  995. "X X",
  996. 'X', MyItem_3,
  997. });
  998.  
  999. // HELMET RECIPE
  1000. GameRegistry.addRecipe(new ItemStack(MyChest_4, 1), new Object[]
  1001. {
  1002. "X X",
  1003. "XXX",
  1004. "XXX",
  1005. 'X', MyItem_3,
  1006. });
  1007.  
  1008. // HELMET RECIPE
  1009. GameRegistry.addRecipe(new ItemStack(MyChest_5, 1), new Object[]
  1010. {
  1011. "X X",
  1012. "XXX",
  1013. "XXX",
  1014. 'X', MyItem_5,
  1015. });
  1016.  
  1017. // HELMET RECIPE
  1018. GameRegistry.addRecipe(new ItemStack(MyLeggings_5, 1), new Object[]
  1019. {
  1020. "XXX",
  1021. "X X",
  1022. "X X",
  1023. 'X', MyItem_5,
  1024. });
  1025.  
  1026. // HELMET RECIPE
  1027. GameRegistry.addRecipe(new ItemStack(MyLeggings_4, 1), new Object[]
  1028. {
  1029. "XXX",
  1030. "X X",
  1031. "X X",
  1032. 'X', MyItem_3,
  1033. });
  1034. // PICKAXE RECIPE
  1035. GameRegistry.addRecipe(new ItemStack(MyAxe_4, 1), new Object[]
  1036. {
  1037. "XX",
  1038. "SX",
  1039. "S ",
  1040. 'S', Items.stick,
  1041. 'X', MyItem_3,
  1042. });
  1043. // HELMET RECIPE
  1044. GameRegistry.addRecipe(new ItemStack(MyBoots_5, 1), new Object[]
  1045. {
  1046. "X X",
  1047. "X X",
  1048. 'X', MyItem_5,
  1049. });
  1050.  
  1051. // HELMET RECIPE
  1052. GameRegistry.addRecipe(new ItemStack(MyBoots_4, 1), new Object[]
  1053. {
  1054. "X X",
  1055. "X X",
  1056. 'X', MyItem_3,
  1057. });
  1058.  
  1059. // NIO BLOCK RECIPE
  1060. GameRegistry.addRecipe(new ItemStack(MyBlock_2, 1), new Object[]
  1061. {
  1062. "CIC",
  1063. "IMI",
  1064. "CIC",
  1065. 'M', Blocks.glass,
  1066. 'I', Blocks.redstone_lamp,
  1067. 'C', Items.redstone
  1068. });
  1069.  
  1070.  
  1071. // CHESTPLATE RECIPE
  1072. GameRegistry.addRecipe(new ItemStack(MyChest_1, 1), new Object[]
  1073. {
  1074. "X X",
  1075. "XXX",
  1076. "XXX",
  1077. 'X', MyItem_1,
  1078. });
  1079.  
  1080. // LEGGINGS RECIPE
  1081. GameRegistry.addRecipe(new ItemStack(MyLeggings_1, 1), new Object[]
  1082. {
  1083. "XXX",
  1084. "X X",
  1085. "X X",
  1086. 'X', MyItem_1,
  1087. });
  1088.  
  1089. // BOOTS RECIPE
  1090. GameRegistry.addRecipe(new ItemStack(MyBoots_1, 1), new Object[]
  1091. {
  1092. "X X",
  1093. "X X",
  1094. 'X', MyItem_1,
  1095. });
  1096.  
  1097. // CHESTPLATE 2 RECIPE
  1098. GameRegistry.addRecipe(new ItemStack(MyChest_2, 1), new Object[]
  1099. {
  1100. "X X",
  1101. "XXX",
  1102. "XXX",
  1103. 'X', MyItem_2,
  1104. });
  1105.  
  1106. // HELMET 2 RECIPE
  1107. GameRegistry.addRecipe(new ItemStack(MyHelmet_2, 1), new Object[]
  1108. {
  1109. "XXX",
  1110. "X X",
  1111. 'X', MyItem_2,
  1112. });
  1113.  
  1114. // LEGGINGS RECIPE
  1115. GameRegistry.addRecipe(new ItemStack(MyLeggings_2, 1), new Object[]
  1116. {
  1117. "XXX",
  1118. "X X",
  1119. "X X",
  1120. 'X', MyItem_2,
  1121. });
  1122.  
  1123. // BOOTS RECIPE
  1124. GameRegistry.addRecipe(new ItemStack(MyBoots_2, 1), new Object[]
  1125. {
  1126. "X X",
  1127. "X X",
  1128. 'X', MyItem_2,
  1129. });
  1130.  
  1131. // SHOVEL RECIPE
  1132. GameRegistry.addRecipe(new ItemStack(MyShovel, 1), new Object[]
  1133. {
  1134. "X",
  1135. "Y",
  1136. "Y",
  1137. 'X', MyItem_2,
  1138. 'Y', Items.stick
  1139. });
  1140.  
  1141. // SHOVEL RECIPE
  1142. GameRegistry.addRecipe(new ItemStack(MyShovel5, 1), new Object[]
  1143. {
  1144. "X",
  1145. "Y",
  1146. "Y",
  1147. 'X', MyItem_5,
  1148. 'Y', Items.stick
  1149. });
  1150.  
  1151. // SHOVEL RECIPE 2
  1152. GameRegistry.addRecipe(new ItemStack(MyShovel2, 1), new Object[]
  1153. {
  1154. "X",
  1155. "Y",
  1156. "Y",
  1157. 'X', MyItem_1,
  1158. 'Y', Items.stick
  1159. });
  1160.  
  1161. // SHOVEL RECIPE 3
  1162. GameRegistry.addRecipe(new ItemStack(MyShovel3, 1), new Object[]
  1163. {
  1164. "X",
  1165. "Y",
  1166. "Y",
  1167. 'X', Items.glowstone_dust,
  1168. 'Y', Items.stick
  1169. });
  1170.  
  1171.  
  1172. // SHOVEL RECIPE 4
  1173. GameRegistry.addRecipe(new ItemStack(MyShovel4, 1), new Object[]
  1174. {
  1175. "X",
  1176. "Y",
  1177. "Y",
  1178. 'X', MyItem_3,
  1179. 'Y', Items.stick
  1180. });
  1181.  
  1182. // AXE RECIPE
  1183. GameRegistry.addRecipe(new ItemStack(MyAxe2, 1), new Object[]
  1184. {
  1185. "XX",
  1186. "SX",
  1187. "S ",
  1188. 'S', Items.stick,
  1189. 'X', MyItem_1,
  1190. });
  1191.  
  1192.  
  1193.  
  1194. // HELMET 3 RECIPE
  1195. GameRegistry.addRecipe(new ItemStack(MyHelmet_3, 1), new Object[]
  1196. {
  1197. "XXX",
  1198. "X X",
  1199. 'X', Items.glowstone_dust,
  1200. });
  1201.  
  1202. // CHEST 3 RECIPE
  1203. GameRegistry.addRecipe(new ItemStack(MyChest_3, 1), new Object[]
  1204. {
  1205. "X X",
  1206. "XXX",
  1207. "XXX",
  1208. 'X', Items.glowstone_dust,
  1209. });
  1210.  
  1211. // LEGGINGS 3 RECIPE
  1212. GameRegistry.addRecipe(new ItemStack(MyLeggings_3, 1), new Object[]
  1213. {
  1214. "XXX",
  1215. "X X",
  1216. "X X",
  1217. 'X', Items.glowstone_dust,
  1218. });
  1219.  
  1220. // BOOTS 3 RECIPE
  1221. GameRegistry.addRecipe(new ItemStack(MyBoots_3, 1), new Object[]
  1222. {
  1223. "X X",
  1224. "X X",
  1225. 'X', Items.glowstone_dust,
  1226. });
  1227.  
  1228. // PICKAXE 3 RECIPE
  1229. GameRegistry.addRecipe(new ItemStack(MyPickaxe_3, 1), new Object[]
  1230. {
  1231. "XXX",
  1232. " S ",
  1233. " S ",
  1234. 'S', Items.stick,
  1235. 'X', Items.glowstone_dust,
  1236. });
  1237.  
  1238.  
  1239. // PICKAXE 3 RECIPE
  1240. GameRegistry.addRecipe(new ItemStack(MySword_7, 1), new Object[]
  1241. {
  1242. "X",
  1243. "X",
  1244. "S",
  1245. 'S', Items.stick,
  1246. 'X', MyItem_6,
  1247.  
  1248. });
  1249.  
  1250.  
  1251. // PICKAXE 3 RECIPE
  1252. GameRegistry.addRecipe(new ItemStack(orcanSword, 1), new Object[]
  1253. {
  1254. "X",
  1255. "X",
  1256. "S",
  1257. 'S', Items.stick,
  1258. 'X', orcanIngot,
  1259.  
  1260. });
  1261.  
  1262. // Orcan Pickaxe Recipe
  1263. GameRegistry.addRecipe(new ItemStack(orcanPickaxe, 1), new Object[]
  1264. {
  1265. "XXX",
  1266. " S ",
  1267. " S ",
  1268. 'S', Items.stick,
  1269. 'X', orcanIngot,
  1270.  
  1271. });
  1272.  
  1273. // Orcan Pickaxe Recipe
  1274. GameRegistry.addRecipe(new ItemStack(orcanAxe, 1), new Object[]
  1275. {
  1276. "XX",
  1277. "SX",
  1278. "S ",
  1279. 'S', Items.stick,
  1280. 'X', orcanIngot,
  1281.  
  1282. });
  1283.  
  1284. // Orcan Pickaxe Recipe
  1285. GameRegistry.addRecipe(new ItemStack(orcanShovel, 1), new Object[]
  1286. {
  1287. "X",
  1288. "S",
  1289. "S",
  1290. 'S', Items.stick,
  1291. 'X', orcanIngot,
  1292.  
  1293. });
  1294. // Pulse Rifle Recipe
  1295. GameRegistry.addRecipe(new ItemStack(pulseRifle, 1), new Object[]
  1296. {
  1297. " LS",
  1298. "ZXL",
  1299. "XZ ",
  1300. 'S', Items.redstone,
  1301. 'X', MyItem_1,
  1302. 'Z', pulseBullet,
  1303. 'L', new ItemStack(Items.dye, 1, 4)
  1304. });
  1305.  
  1306.  
  1307. // Ammo Recipe
  1308. GameRegistry.addRecipe(new ItemStack(pulseAmmo, 4), new Object[]
  1309. {
  1310. "GXG",
  1311. "YXY",
  1312. "YSY",
  1313. 'S', Items.redstone,
  1314. 'X', pulseBullet,
  1315. 'Y', Blocks.stone,
  1316. 'G', Items.gunpowder
  1317.  
  1318. });
  1319.  
  1320.  
  1321. /* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */
  1322.  
  1323.  
  1324. /**
  1325. * EXTRA METHODS SECTION
  1326. * *********************************************************** */
  1327. AchievementPage.registerAchievementPage(new AchievementPage("InfiniAchievementPage", new Achievement[]{MyAchievement_1, MyAchievement_2, MyAchievement_3}));
  1328.  
  1329.  
  1330. GameRegistry.registerWorldGenerator(new MyBlockGen(), 1);
  1331. GameRegistry.registerWorldGenerator(new MyBlockGenRuby(), 2);
  1332. GameRegistry.registerWorldGenerator(new orcanBlockGen(), 3);
  1333. // CHANGE THE TEXT OF THE ACHIEVEMENT
  1334.  
  1335.  
  1336.  
  1337.  
  1338. // REGISTER PICKUP HANDLER
  1339. // MyPickupHandler MyPickupHandler_1 = new MyPickupHandler();
  1340. // GameRegistry.registerPickupHandler(MyPickupHandler_1);
  1341.  
  1342. // REGISTER CRAFTING HANDLER
  1343. // MyCraftingHandler MyCraftingHandler_1 = new MyCraftingHandler();
  1344. //GameRegistry.RegisterCraftingHandler(MyCraftingHandler_1);
  1345.  
  1346. // REGISTER CRAFTING HANDLER
  1347. //MyCraftingHandler MyCraftingHandler_2 = new MyCraftingHandler();
  1348. // GameRegistry.registerCraftingHandler(MyCraftingHandler_2);
  1349.  
  1350. // CHANGE TAB NAME
  1351. LanguageRegistry.instance().addStringLocalization("itemGroup.infinicraftMain", "en_US", "InfiniCraft Main");
  1352. LanguageRegistry.instance().addStringLocalization("itemGroup.infinicraftTech", "en_US", "InfiniCraft Tech");
  1353. LanguageRegistry.instance().addStringLocalization("itemGroup.infinicraftMagic", "en_US", "InfiniCraft Magic");
  1354. // CHANGE THE TEXT OF THE ACHIEVEMENT
  1355. LanguageRegistry.instance().addStringLocalization("achievement.MyAchievement_1", "en_US", "Dude, How Did You Get This Far?");
  1356. LanguageRegistry.instance().addStringLocalization("achievement.MyAchievement_1.desc", "en_US", "Aquire Mega Stone with 8 Nether Stars and 1 Nio Block");
  1357.  
  1358. // CHANGE THE TEXT OF THE ACHIEVEMENT
  1359. LanguageRegistry.instance().addStringLocalization("achievement.MyAchievement_2", "en_US", "The Nio");
  1360. LanguageRegistry.instance().addStringLocalization("achievement.MyAchievement_2.desc", "en_US", "Aquire A Nio Block");
  1361. // CHANGE THE TEXT OF THE ACHIEVEMENT
  1362. LanguageRegistry.instance().addStringLocalization("achievement.MyAchievement_3", "en_US", "BACON! HECK YEAH!");
  1363. LanguageRegistry.instance().addStringLocalization("achievement.MyAchievement_3.desc", "en_US", "Aquire Bacon");
  1364.  
  1365. /* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */
  1366.  
  1367.  
  1368. }
  1369.  
  1370.  
  1371.  
  1372.  
  1373. @EventHandler
  1374. public static void postInit( FMLPostInitializationEvent event ) {
  1375.  
  1376.  
  1377. }
  1378.  
  1379. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement