Advertisement
Guest User

Untitled

a guest
Aug 13th, 2013
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.57 KB | None | 0 0
  1. package teamoverhaul.netheroverhaul;
  2.  
  3. import net.minecraft.block.Block;
  4. import net.minecraft.block.BlockFurnace;
  5. import net.minecraft.creativetab.CreativeTabs;
  6. import net.minecraft.entity.EntityList;
  7. import net.minecraft.item.EnumArmorMaterial;
  8. import net.minecraft.item.EnumToolMaterial;
  9. import net.minecraft.item.Item;
  10. import net.minecraft.item.ItemStack;
  11. import net.minecraft.stats.Achievement;
  12. import net.minecraft.world.biome.BiomeGenBase;
  13. import net.minecraftforge.common.AchievementPage;
  14. import net.minecraftforge.common.DimensionManager;
  15. import net.minecraftforge.common.EnumHelper;
  16. import teamoverhaul.netheroverhaul.block.BlockBloodRock;
  17. import teamoverhaul.netheroverhaul.block.BlockGlowShroom1;
  18. import teamoverhaul.netheroverhaul.block.BlockGlowShroom2;
  19. import teamoverhaul.netheroverhaul.block.BlockGlowshroomStem;
  20. import teamoverhaul.netheroverhaul.block.BlockGlowshroomTop1;
  21. import teamoverhaul.netheroverhaul.block.BlockGlowshroomTop2;
  22. import teamoverhaul.netheroverhaul.block.BlockGraphite;
  23. import teamoverhaul.netheroverhaul.block.BlockHellCobble;
  24. import teamoverhaul.netheroverhaul.block.BlockHellLeaves;
  25. import teamoverhaul.netheroverhaul.block.BlockHellLog;
  26. import teamoverhaul.netheroverhaul.block.BlockHellPlanks;
  27. import teamoverhaul.netheroverhaul.block.BlockHellSapling;
  28. import teamoverhaul.netheroverhaul.block.BlockHellTorch;
  29. import teamoverhaul.netheroverhaul.block.BlockHellsoil;
  30. import teamoverhaul.netheroverhaul.block.BlockHellstone;
  31. import teamoverhaul.netheroverhaul.block.BlockNetherrack;
  32. import teamoverhaul.netheroverhaul.block.BlockRope;
  33. import teamoverhaul.netheroverhaul.block.BlockSoot;
  34. import teamoverhaul.netheroverhaul.block.BlockSootSmoldering;
  35. import teamoverhaul.netheroverhaul.block.OreBrimstone;
  36. import teamoverhaul.netheroverhaul.block.OreDarkQuartz;
  37. import teamoverhaul.netheroverhaul.block.OreGarnet;
  38. import teamoverhaul.netheroverhaul.block.OreGraphite;
  39. import teamoverhaul.netheroverhaul.block.OreNetherrack;
  40. import teamoverhaul.netheroverhaul.block.OreQuartz;
  41. import teamoverhaul.netheroverhaul.common.CommonProxy;
  42. import teamoverhaul.netheroverhaul.common.FuelHandler;
  43. import teamoverhaul.netheroverhaul.common.TickHandler;
  44. import teamoverhaul.netheroverhaul.creativetab.CreativeTabBlockNether;
  45. import teamoverhaul.netheroverhaul.creativetab.CreativeTabCombatNether;
  46. import teamoverhaul.netheroverhaul.creativetab.CreativeTabDecorNether;
  47. import teamoverhaul.netheroverhaul.creativetab.CreativeTabResourceNether;
  48. import teamoverhaul.netheroverhaul.creativetab.CreativeTabToolNether;
  49. import teamoverhaul.netheroverhaul.entity.EntityDweller;
  50. import teamoverhaul.netheroverhaul.entity.EntityGhoul;
  51. import teamoverhaul.netheroverhaul.entity.EntityShade;
  52. import teamoverhaul.netheroverhaul.gui.GuiHandler;
  53. import teamoverhaul.netheroverhaul.gui.NetherFurnace;
  54. import teamoverhaul.netheroverhaul.gui.TileEntityNetherFurnace;
  55. import teamoverhaul.netheroverhaul.item.ItemBrimstone;
  56. import teamoverhaul.netheroverhaul.item.ItemDarkQuartz;
  57. import teamoverhaul.netheroverhaul.item.ItemGarnet;
  58. import teamoverhaul.netheroverhaul.item.ItemGraphite;
  59. import teamoverhaul.netheroverhaul.item.ItemHellStick;
  60. import teamoverhaul.netheroverhaul.item.ItemNetherrack;
  61. import teamoverhaul.netheroverhaul.tool.AxeBrimstone;
  62. import teamoverhaul.netheroverhaul.tool.AxeGarnet;
  63. import teamoverhaul.netheroverhaul.tool.AxeGraphite;
  64. import teamoverhaul.netheroverhaul.tool.AxeHellstone;
  65. import teamoverhaul.netheroverhaul.tool.AxeHellwood;
  66. import teamoverhaul.netheroverhaul.tool.PickaxeBrimstone;
  67. import teamoverhaul.netheroverhaul.tool.PickaxeGarnet;
  68. import teamoverhaul.netheroverhaul.tool.PickaxeGraphite;
  69. import teamoverhaul.netheroverhaul.tool.PickaxeHellstone;
  70. import teamoverhaul.netheroverhaul.tool.PickaxeHellwood;
  71. import teamoverhaul.netheroverhaul.tool.ShovelBrimstone;
  72. import teamoverhaul.netheroverhaul.tool.ShovelGarnet;
  73. import teamoverhaul.netheroverhaul.tool.ShovelGraphite;
  74. import teamoverhaul.netheroverhaul.tool.ShovelHellstone;
  75. import teamoverhaul.netheroverhaul.tool.ShovelHellwood;
  76. import teamoverhaul.netheroverhaul.tool.SwordBrimstone;
  77. import teamoverhaul.netheroverhaul.tool.SwordGarnet;
  78. import teamoverhaul.netheroverhaul.tool.SwordGraphite;
  79. import teamoverhaul.netheroverhaul.tool.SwordHellstone;
  80. import teamoverhaul.netheroverhaul.tool.SwordHellwood;
  81. import teamoverhaul.netheroverhaul.tool.SwordWithering;
  82. import teamoverhaul.netheroverhaul.wearable.BrimstoneBoots;
  83. import teamoverhaul.netheroverhaul.wearable.BrimstoneChest;
  84. import teamoverhaul.netheroverhaul.wearable.BrimstoneHelmet;
  85. import teamoverhaul.netheroverhaul.wearable.BrimstoneLegs;
  86. import teamoverhaul.netheroverhaul.wearable.GarnetBoots;
  87. import teamoverhaul.netheroverhaul.wearable.GarnetChest;
  88. import teamoverhaul.netheroverhaul.wearable.GarnetHelmet;
  89. import teamoverhaul.netheroverhaul.wearable.GarnetLegs;
  90. import teamoverhaul.netheroverhaul.wearable.GraphiteBoots;
  91. import teamoverhaul.netheroverhaul.wearable.GraphiteChest;
  92. import teamoverhaul.netheroverhaul.wearable.GraphiteHelmet;
  93. import teamoverhaul.netheroverhaul.wearable.GraphiteLegs;
  94. import teamoverhaul.netheroverhaul.world.BiomeGenNether;
  95. import teamoverhaul.netheroverhaul.world.WorldGeneratorNether;
  96. import teamoverhaul.netheroverhaul.world.WorldProviderNether;
  97. import cpw.mods.fml.common.Mod;
  98. import cpw.mods.fml.common.Mod.Init;
  99. import cpw.mods.fml.common.Mod.Instance;
  100. import cpw.mods.fml.common.Mod.PreInit;
  101. import cpw.mods.fml.common.SidedProxy;
  102. import cpw.mods.fml.common.event.FMLInitializationEvent;
  103. import cpw.mods.fml.common.event.FMLPreInitializationEvent;
  104. import cpw.mods.fml.common.network.NetworkMod;
  105. import cpw.mods.fml.common.network.NetworkRegistry;
  106. import cpw.mods.fml.common.registry.EntityRegistry;
  107. import cpw.mods.fml.common.registry.GameRegistry;
  108. import cpw.mods.fml.common.registry.LanguageRegistry;
  109. import cpw.mods.fml.common.registry.TickRegistry;
  110. import cpw.mods.fml.relauncher.Side;
  111.  
  112. //The old stuff was WAY too unorganized, so here's a much better layout, complete with comments from ME (allshallobey)!
  113.  
  114. //Gives Forge Nether Overhaul's ID, name, and version.
  115. @Mod(modid = mod_Nether.modid, name = "The Nether Overhaul", version="ALPHA 1.0")
  116. @NetworkMod(clientSideRequired = true, serverSideRequired = false)
  117.  
  118. public class mod_Nether {
  119.  
  120. public static final String modid = "teamOverhaul_netherOverhaul";
  121.  
  122. @Instance("The Nether Overhaul")
  123. public static mod_Nether instance;
  124.  
  125. @SidedProxy(clientSide="teamoverhaul.netheroverhaul.client.ClientProxy", serverSide="teamoverhaul.netheroverhaul.common.CommonProxy")
  126. public static CommonProxy proxy;
  127.  
  128. //BIOME
  129. public static BiomeGenBase nether;
  130.  
  131. //CREATIVE TABS
  132. public static final CreativeTabs tabBlockNether = new CreativeTabBlockNether(CreativeTabs.getNextID(), "tabBlockNether");
  133. public static final CreativeTabs tabDecorNether = new CreativeTabDecorNether(CreativeTabs.getNextID(), "tabDecorNether");
  134. public static final CreativeTabs tabResourceNether = new CreativeTabResourceNether(CreativeTabs.getNextID(), "tabResourceNether");
  135. public static final CreativeTabs tabCombatNether = new CreativeTabCombatNether(CreativeTabs.getNextID(), "tabCombatNether");
  136. public static final CreativeTabs tabToolNether = new CreativeTabToolNether(CreativeTabs.getNextID(), "tabToolNether");
  137.  
  138. //BLOCKS
  139. //Building blocks
  140. public static Block hellStone;
  141. public static Block hellCobble;
  142. public static Block hellSoil;
  143. public static Block soot;
  144. public static Block sootSmoldering;
  145. public static Block hellSapling;
  146. public static Block hellLog;
  147. public static Block hellLeaves;
  148. public static Block hellPlanks;
  149. public static Block blockNetherrack;
  150. public static Block blockGraphite;
  151. public static Block bigGlowshroom1;
  152. public static Block bigGlowshroom2;
  153. public static Block bigGlowshroomStem;
  154. public static Block netherFurnaceIdle;
  155. public static Block netherFurnaceBurning;
  156. public static Block bloodRock;
  157. public static Block rope;
  158.  
  159. //Ore
  160. public static Block oreNetherrack;
  161. public static Block oreQuartz;
  162. public static Block oreDarkQuartz;
  163. public static Block oreBrimstone;
  164. public static Block oreGarnet;
  165. public static Block oreGraphite;
  166.  
  167. //Decorative blocks
  168. public static Block hellTorch;
  169. public static Block glowShroom1;
  170. public static Block glowShroom2;
  171.  
  172. //ITEMS
  173. //Materials: addToolMaterial(name, harvest level, max uses, efficiency, damage, enchantability)
  174. public static EnumToolMaterial matHellwood = EnumHelper.addToolMaterial("Hellwood", 0, 59, 2.0F, 0, 15);
  175. public static EnumToolMaterial matHellstone = EnumHelper.addToolMaterial("Hellstone", 1, 131, 4.0F, 1, 5);
  176. public static EnumToolMaterial matBrimstone = EnumHelper.addToolMaterial("Brimstone", 2, 250, 6.0F, 2, 14);
  177. public static EnumToolMaterial matGarnet = EnumHelper.addToolMaterial("Garnet", 3, 1561, 8.0F, 3, 10);
  178. public static EnumToolMaterial matGraphite = EnumHelper.addToolMaterial("Graphite", 4, 1721, 14.0F, 5, 25);
  179.  
  180. //Armor materials: addArmorMaterial(name, durability, reductionAmounts, enchantability)
  181. public static EnumArmorMaterial armorBrimstone = EnumHelper.addArmorMaterial("Brimstone", 15, new int[]{2, 5, 4, 2}, 9);
  182. public static EnumArmorMaterial armorGarnet = EnumHelper.addArmorMaterial("Garnet", 33, new int[]{3, 7, 5, 3}, 10);
  183. public static EnumArmorMaterial armorGraphite = EnumHelper.addArmorMaterial("Graphite", 33, new int[]{3, 8, 6, 3}, 11);
  184.  
  185. //Resources
  186. public static Item hellStick;
  187. public static Item netherRack;
  188. public static Item brimStone;
  189. public static Item garnet;
  190. public static Item graphite;
  191. public static Item darkQuartz;
  192.  
  193. //Armor
  194. public static Item helmetBrimstone;
  195. public static Item chestBrimstone;
  196. public static Item legsBrimstone;
  197. public static Item bootsBrimstone;
  198. public static Item helmetGarnet;
  199. public static Item chestGarnet;
  200. public static Item legsGarnet;
  201. public static Item bootsGarnet;
  202. public static Item helmetGraphite;
  203. public static Item chestGraphite;
  204. public static Item legsGraphite;
  205. public static Item bootsGraphite;
  206.  
  207. //Swords
  208. public static Item swordHellwood;
  209. public static Item swordHellstone;
  210. public static Item swordBrimstone;
  211. public static Item swordGarnet;
  212. public static Item swordGraphite;
  213. public static Item swordWithering;
  214.  
  215. //Pickaxes
  216. public static Item pickHellwood;
  217. public static Item pickHellstone;
  218. public static Item pickBrimstone;
  219. public static Item pickGarnet;
  220. public static Item pickGraphite;
  221.  
  222. //Axes
  223. public static Item axeHellwood;
  224. public static Item axeHellstone;
  225. public static Item axeBrimstone;
  226. public static Item axeGarnet;
  227. public static Item axeGraphite;
  228.  
  229. //Shovels
  230. public static Item shovelHellwood;
  231. public static Item shovelHellstone;
  232. public static Item shovelBrimstone;
  233. public static Item shovelGarnet;
  234. public static Item shovelGraphite;
  235.  
  236. //Misc
  237. public static Item discSong1;
  238. public static Item discSong2;
  239. public static Item discSong3;
  240.  
  241. //Achievements
  242. public static AchievementPage NetherPage;
  243. public static Achievement getToTheNether;
  244. public static Achievement gettingCloseToTheNether;
  245.  
  246. //Pre-initialization, anything that happens BEFORE the game starts!
  247. @PreInit
  248. public void PreInit(FMLPreInitializationEvent event) {
  249.  
  250. proxy.renderCapes();
  251.  
  252. //World Generator
  253. GameRegistry.registerWorldGenerator(new WorldGeneratorNether());
  254.  
  255. //DEFINE BLOCKS
  256. //Move vanilla blocks
  257. Block.portal.setCreativeTab(this.tabBlockNether);
  258. Block.glowStone.setCreativeTab(this.tabBlockNether);
  259. Block.slowSand.setCreativeTab(this.tabBlockNether);
  260. Block.netherBrick.setCreativeTab(this.tabBlockNether);
  261. Block.stairsNetherBrick.setCreativeTab(this.tabBlockNether);
  262. Block.netherFence.setCreativeTab(this.tabDecorNether);
  263. Block.netherStalk.setCreativeTab(this.tabDecorNether);
  264. Block.blockNetherQuartz.setCreativeTab(this.tabBlockNether);
  265. Block.stairsNetherQuartz.setCreativeTab(this.tabBlockNether);
  266. Block.oreNetherQuartz.setCreativeTab(null);
  267. Block.netherrack.setCreativeTab(null);
  268.  
  269. //Define building blocks
  270. hellStone = new BlockHellstone(200).setHardness(2.0F).setResistance(10.0F).setUnlocalizedName("hellStone").setCreativeTab(this.tabBlockNether);
  271. hellCobble = new BlockHellCobble(201).setHardness(2.0F).setResistance(10.0F).setUnlocalizedName("hellCobble").setCreativeTab(this.tabBlockNether);
  272. hellSoil = new BlockHellsoil(202).setHardness(0.5F).setResistance(10.0F).setUnlocalizedName("hellSoil").setCreativeTab(this.tabBlockNether);
  273. soot = new BlockSoot(204).setHardness(0.6F).setUnlocalizedName("soot").setCreativeTab(this.tabDecorNether);
  274. sootSmoldering = new BlockSootSmoldering(205).setHardness(0.6F).setUnlocalizedName("sootSmoldering").setCreativeTab(this.tabDecorNether).setLightValue(0.5F);
  275. hellSapling = (new BlockHellSapling(206)).setHardness(0.0F).setStepSound(Block.soundGrassFootstep).setUnlocalizedName("sapling").setCreativeTab(this.tabDecorNether);
  276. hellLog = new BlockHellLog(207).setHardness(2.5F).setUnlocalizedName("hellLog").setLightValue(1.0F).setCreativeTab(this.tabBlockNether);
  277. hellLeaves = new BlockHellLeaves(208).setHardness(0.2F).setUnlocalizedName("hellLeaves").setLightValue(1.0F).setCreativeTab(this.tabDecorNether);
  278. hellPlanks = new BlockHellPlanks(209).setHardness(2.5F).setUnlocalizedName("hellPlanks").setCreativeTab(this.tabBlockNether);
  279. blockGraphite = new BlockGraphite(210).setHardness(3.5F).setUnlocalizedName("blockGraphite").setCreativeTab(this.tabBlockNether);
  280. blockNetherrack = new BlockNetherrack(212).setHardness(0.4F).setUnlocalizedName("blockNetherrack").setCreativeTab(this.tabBlockNether);
  281. blockGraphite = new BlockGraphite(213).setHardness(50.5F).setResistance(2000.0F).setUnlocalizedName("blockGraphite").setCreativeTab(this.tabBlockNether);
  282. bigGlowshroom1 = new BlockGlowshroomTop1(214).setHardness(0.9F).setUnlocalizedName("bigGlowshroom1").setLightValue(1.0F).setCreativeTab(this.tabBlockNether);
  283. bigGlowshroom2 = new BlockGlowshroomTop2(215).setHardness(0.9F).setUnlocalizedName("bigGlowshroom2").setLightValue(1.0F).setCreativeTab(this.tabBlockNether);
  284. bigGlowshroomStem = new BlockGlowshroomStem(216).setHardness(0.9F).setUnlocalizedName("bigGlowshroomStem").setLightValue(1.0F).setCreativeTab(null);
  285. bloodRock = new BlockBloodRock(227).setHardness(-1.0F).setUnlocalizedName("bloodRock").setCreativeTab(this.tabBlockNether);
  286.  
  287. //Define ore
  288. oreNetherrack = new OreNetherrack(217).setHardness(3.5F).setResistance(10.0F).setUnlocalizedName("oreNetherrack").setCreativeTab(this.tabBlockNether);
  289. oreQuartz = new OreQuartz(218).setHardness(3.5F).setResistance(10.0F).setUnlocalizedName("oreQuartz").setCreativeTab(this.tabBlockNether);
  290. oreDarkQuartz = new OreDarkQuartz(219).setHardness(3.5F).setResistance(10.0F).setUnlocalizedName("oreDarkQuartz").setCreativeTab(this.tabBlockNether);
  291. oreBrimstone = new OreBrimstone(220).setHardness(3.5F).setResistance(10.0F).setUnlocalizedName("oreBrimstone").setCreativeTab(this.tabBlockNether);
  292. oreGarnet = new OreGarnet(221).setHardness(3.5F).setResistance(10.0F).setUnlocalizedName("oreGarnet").setCreativeTab(this.tabBlockNether);
  293. oreGraphite = new OreGraphite(222).setHardness(3.5F).setResistance(10.0F).setUnlocalizedName("oreGraphite").setCreativeTab(this.tabBlockNether);
  294.  
  295. //Define decorative blocks
  296. hellTorch = new BlockHellTorch(224).setUnlocalizedName("hellTorch").setCreativeTab(this.tabDecorNether).setLightValue(1.0F);
  297. glowShroom1 = new BlockGlowShroom1(225, null).setUnlocalizedName("glowShroom1").setCreativeTab(this.tabDecorNether).setLightValue(1.0F);
  298. glowShroom2 = new BlockGlowShroom2(226, null).setUnlocalizedName("glowShroom2").setCreativeTab(this.tabDecorNether).setLightValue(1.0F);
  299. netherFurnaceIdle = new NetherFurnace(1000, false).setHardness(2.0F).setResistance(10.0F).setCreativeTab(this.tabDecorNether);
  300. netherFurnaceBurning = new NetherFurnace(1001, true).setHardness(2.0F).setResistance(10.0F).setCreativeTab(this.tabDecorNether);
  301. rope = new BlockRope(1002).setHardness(2.0F).setUnlocalizedName("rope").setCreativeTab(this.tabDecorNether);
  302.  
  303. //DEFINE ITEMS
  304. //Move/fix vanilla Resources
  305. Item.lightStoneDust.setCreativeTab(this.tabResourceNether);
  306. Item.blazeRod.setFull3D().setCreativeTab(this.tabResourceNether);
  307. Item.netherrackBrick.setCreativeTab(this.tabResourceNether);
  308. Item.ghastTear.setCreativeTab(this.tabResourceNether);
  309. Item.magmaCream.setCreativeTab(this.tabResourceNether);
  310. Item.goldNugget.setCreativeTab(this.tabResourceNether);
  311. Item.netherQuartz.setCreativeTab(this.tabResourceNether);
  312. Item.netherStar.setCreativeTab(this.tabResourceNether);
  313. Item.blazePowder.setCreativeTab(this.tabResourceNether);
  314.  
  315. //Define Resources
  316. hellStick = new ItemHellStick(1500).setFull3D().setUnlocalizedName("hellStick").setCreativeTab(this.tabResourceNether);
  317. netherRack = new ItemNetherrack(1501).setUnlocalizedName("netherRack").setCreativeTab(this.tabResourceNether);
  318. brimStone = new ItemBrimstone(1502).setUnlocalizedName("brimStone").setCreativeTab(this.tabResourceNether);
  319. garnet = new ItemGarnet(1503).setUnlocalizedName("garnet").setCreativeTab(this.tabResourceNether);
  320. darkQuartz = new ItemDarkQuartz(1504).setUnlocalizedName("darkQuartz").setCreativeTab(this.tabResourceNether);
  321. graphite = new ItemGraphite(1505).setUnlocalizedName("graphite").setCreativeTab(this.tabResourceNether);
  322.  
  323. //Define Armor
  324. helmetBrimstone = new BrimstoneHelmet(1506, armorBrimstone, proxy.addArmor("brimstone"), 0).setUnlocalizedName("helmetBrimstone").setCreativeTab(this.tabCombatNether);
  325. chestBrimstone = new BrimstoneChest(1507, armorBrimstone, proxy.addArmor("brimstone"), 1).setUnlocalizedName("chestBrimstone").setCreativeTab(this.tabCombatNether);
  326. legsBrimstone = new BrimstoneLegs(1508, armorBrimstone, proxy.addArmor("brimstone"), 2).setUnlocalizedName("legsBrimstone").setCreativeTab(this.tabCombatNether);
  327. bootsBrimstone = new BrimstoneBoots(1509, armorBrimstone, proxy.addArmor("brimstone"), 3).setUnlocalizedName("bootsBrimstone").setCreativeTab(this.tabCombatNether);
  328. helmetGarnet = new GarnetHelmet(1510, armorGarnet, proxy.addArmor("garnet"), 0).setUnlocalizedName("helmetGarnet").setCreativeTab(this.tabCombatNether);
  329. chestGarnet = new GarnetChest(1511, armorGarnet, proxy.addArmor("garnet"), 1).setUnlocalizedName("chestGarnet").setCreativeTab(this.tabCombatNether);
  330. legsGarnet = new GarnetLegs(1512, armorGarnet, proxy.addArmor("garnet"), 2).setUnlocalizedName("legsGarnet").setCreativeTab(this.tabCombatNether);
  331. bootsGarnet = new GarnetBoots(1513, armorGarnet, proxy.addArmor("garnet"), 3).setUnlocalizedName("bootsGarnet").setCreativeTab(this.tabCombatNether);
  332. helmetGraphite = new GraphiteHelmet(1514, armorGraphite, proxy.addArmor("graphite"), 0).setUnlocalizedName("helmetGraphite").setCreativeTab(this.tabCombatNether);
  333. chestGraphite = new GraphiteChest(1515, armorGraphite, proxy.addArmor("graphite"), 1).setUnlocalizedName("chestGraphite").setCreativeTab(this.tabCombatNether);
  334. legsGraphite = new GraphiteLegs(15156, armorGraphite, proxy.addArmor("graphite"), 2).setUnlocalizedName("legsGraphite").setCreativeTab(this.tabCombatNether);
  335. bootsGraphite = new GraphiteBoots(1517, armorGraphite, proxy.addArmor("graphite"), 3).setUnlocalizedName("bootsGraphite").setCreativeTab(this.tabCombatNether);
  336.  
  337. //Define Swords
  338. swordHellwood = new SwordHellwood(1530, this.matHellwood).setUnlocalizedName("swordHellwood").setCreativeTab(this.tabCombatNether);
  339. swordHellstone = new SwordHellstone(1531, this.matHellstone).setUnlocalizedName("swordHellstone").setCreativeTab(this.tabCombatNether);
  340. swordBrimstone = new SwordBrimstone(1532, this.matBrimstone).setUnlocalizedName("swordBrimstone").setCreativeTab(this.tabCombatNether);
  341. swordGarnet = new SwordGarnet(1533, this.matGarnet).setUnlocalizedName("swordGarnet").setCreativeTab(this.tabCombatNether);
  342. swordGraphite = new SwordGraphite(1535, this.matGraphite).setUnlocalizedName("swordGraphite").setCreativeTab(this.tabCombatNether);
  343. swordWithering = new SwordWithering(1536, this.matGraphite).setUnlocalizedName("swordWithering").setCreativeTab(this.tabCombatNether);
  344.  
  345. //Define Pickaxes
  346. pickHellwood = new PickaxeHellwood(1537, this.matHellwood).setUnlocalizedName("pickHellwood").setCreativeTab(this.tabToolNether);
  347. pickHellstone = new PickaxeHellstone(1538, this.matHellstone).setUnlocalizedName("pickHellstone").setCreativeTab(this.tabToolNether);
  348. pickBrimstone = new PickaxeBrimstone(1539, this.matBrimstone).setUnlocalizedName("pickBrimstone").setCreativeTab(this.tabToolNether);
  349. pickGarnet = new PickaxeGarnet(1540, this.matGarnet).setUnlocalizedName("pickGarnet").setCreativeTab(this.tabToolNether);
  350. pickGraphite = new PickaxeGraphite(1542, this.matGraphite).setUnlocalizedName("pickGraphite").setCreativeTab(this.tabToolNether);
  351.  
  352. //Define Axes
  353. axeHellwood = new AxeHellwood (1560, this.matHellwood).setUnlocalizedName("axeHellwood").setCreativeTab(this.tabToolNether);
  354. axeHellstone = new AxeHellstone (1561, this.matHellstone).setUnlocalizedName("axeHellstone").setCreativeTab(this.tabToolNether);
  355. axeBrimstone = new AxeBrimstone (1562, this.matBrimstone).setUnlocalizedName("axeBrimstone").setCreativeTab(this.tabToolNether);
  356. axeGarnet = new AxeGarnet (1563, this.matGarnet).setUnlocalizedName("axeGarnet").setCreativeTab(this.tabToolNether);
  357. axeGraphite = new AxeGraphite (1565, this.matGraphite).setUnlocalizedName("axeGraphite").setCreativeTab(this.tabToolNether);
  358.  
  359. //Define Shovels
  360. shovelHellwood = new ShovelHellwood (1571, this.matHellwood).setUnlocalizedName("shovelHellwood").setCreativeTab(this.tabToolNether);
  361. shovelHellstone = new ShovelHellstone (1572, this.matHellstone).setUnlocalizedName("shovelHellstone").setCreativeTab(this.tabToolNether);
  362. shovelBrimstone = new ShovelBrimstone (1573, this.matBrimstone).setUnlocalizedName("shovelBrimstone").setCreativeTab(this.tabToolNether);
  363. shovelGarnet = new ShovelGarnet (1574, this.matGarnet).setUnlocalizedName("shovelGarnet").setCreativeTab(this.tabToolNether);
  364. shovelGraphite = new ShovelGraphite (1575, this.matGraphite).setUnlocalizedName("shovelGraphite").setCreativeTab(this.tabToolNether);
  365.  
  366. //Achievements!
  367. getToTheNether = (new Achievement(27, "goToTheNether", 0, 0, Item.flintAndSteel, null)).registerAchievement();
  368. gettingCloseToTheNether = (new Achievement(28, "gettingCloseToTheNether", 2, 0, Block.obsidian, getToTheNether)).registerAchievement();
  369.  
  370.  
  371. //Achievement Naming
  372.  
  373. this.addAchievementName("goToTheNether", "Quest For The Nether");
  374. this.addAchievementName("gettingCloseToTheNether", "Closer To The Nether");
  375.  
  376. this.addAchievementDesc("goToTheNether", "Step 1 Complete");
  377. this.addAchievementDesc("gettingCloseToTheNether", "Step 2 Complete");
  378.  
  379. NetherPage = new AchievementPage("Nether Achievements", getToTheNether, gettingCloseToTheNether);
  380.  
  381. AchievementPage.registerAchievementPage(NetherPage);
  382.  
  383. //CraftingManager/SmeltingManager
  384. GameRegistry.registerCraftingHandler(new CraftingHandler());
  385.  
  386. //PickupHandler
  387. GameRegistry.registerPickupHandler(new PickupHandler());
  388.  
  389.  
  390. //BIOMES
  391. nether = (new BiomeGenNether(8)).setColor(16711680).setBiomeName("Nether").setDisableRain().setTemperatureRainfall(2.0F, 0.0F);
  392.  
  393. //MONSTER REGISTRY
  394. //Register Shade
  395. EntityRegistry.registerModEntity(EntityShade.class, "Shade", 1, this, 80, 3, true);
  396. EntityList.addMapping(EntityShade.class, "Shade", 1, 219032, 219031);
  397.  
  398. //Register Ghoul
  399. EntityRegistry.registerModEntity(EntityGhoul.class, "Ghoul", 2, this, 80, 3, true);
  400. EntityList.addMapping(EntityGhoul.class, "Ghoul", 2, 843942, 4254343);
  401.  
  402. //Register Dweller
  403. EntityRegistry.registerModEntity(EntityDweller.class, "Dweller", 3, this, 80, 3, true);
  404. EntityList.addMapping(EntityDweller.class, "Dweller", 3, 345345, 987552);
  405.  
  406. //DIMENSION REGISTRY
  407. DimensionManager.unregisterProviderType(-1);
  408. DimensionManager.registerProviderType(-1, WorldProviderNether.class, true);
  409.  
  410. //GEN REGISTRY
  411.  
  412. //BLOCK REGISTRY
  413. //Register building blocks
  414. GameRegistry.registerBlock(hellStone, "hellStone");
  415. GameRegistry.registerBlock(hellCobble, "hellCobble");
  416. GameRegistry.registerBlock(hellSoil, "hellSoil");
  417. GameRegistry.registerBlock(soot, "soot");
  418. GameRegistry.registerBlock(sootSmoldering, "sootSmoldering");
  419. GameRegistry.registerBlock(hellSapling, "hellSapling");
  420. GameRegistry.registerBlock(hellLog, "hellLog");
  421. GameRegistry.registerBlock(hellLeaves, "hellLeaves");
  422. GameRegistry.registerBlock(hellPlanks, "hellPlanks");
  423. GameRegistry.registerBlock(blockGraphite, "blockGraphite");
  424. GameRegistry.registerBlock(blockNetherrack, "blockNetherrack");
  425. GameRegistry.registerBlock(bigGlowshroom1, "bigGlowshroom1");
  426. GameRegistry.registerBlock(bigGlowshroom2, "bigGlowshroom2");
  427. GameRegistry.registerBlock(bloodRock, "bloodRock");
  428.  
  429. //Register ores
  430. GameRegistry.registerBlock(oreNetherrack, "oreNetherrack");
  431. GameRegistry.registerBlock(oreQuartz, "oreQuartz");
  432. GameRegistry.registerBlock(oreDarkQuartz, "oreDarkQuartz");
  433. GameRegistry.registerBlock(oreBrimstone, "oreBrimstone");
  434. GameRegistry.registerBlock(oreGarnet, "oreGarnet");
  435. GameRegistry.registerBlock(oreGraphite, "oreGraphite");
  436.  
  437. //Register decorative blocks
  438. GameRegistry.registerBlock(hellTorch, "hellTorch");
  439. GameRegistry.registerBlock(glowShroom1, "glowShroom1");
  440. GameRegistry.registerBlock(glowShroom2, "glowShroom2");
  441. GameRegistry.registerBlock(bigGlowshroomStem, "bigGlowshroomStem");
  442. GameRegistry.registerBlock(netherFurnaceIdle, "netherFurnaceIdle");
  443. GameRegistry.registerBlock(rope, "rope");
  444.  
  445. //ITEM REGISTRY
  446. //Register resources
  447. GameRegistry.registerItem(hellStick, "hellStick");
  448. GameRegistry.registerItem(netherRack, "netherRack");
  449. GameRegistry.registerItem(brimStone, "brimStone");
  450. GameRegistry.registerItem(garnet, "garnet");
  451. GameRegistry.registerItem(darkQuartz, "darkQuartz");
  452. GameRegistry.registerItem(graphite, "graphite");
  453.  
  454. //Register armor
  455. GameRegistry.registerItem(helmetBrimstone, "helmetBrimstone");
  456. GameRegistry.registerItem(chestBrimstone, "chestBrimstone");
  457. GameRegistry.registerItem(legsBrimstone, "legsBrimstone");
  458. GameRegistry.registerItem(bootsBrimstone, "bootsBrimstone");
  459. GameRegistry.registerItem(helmetGarnet, "helmetGarnet");
  460. GameRegistry.registerItem(chestGarnet, "chestGarnet");
  461. GameRegistry.registerItem(legsGarnet, "legsGarnet");
  462. GameRegistry.registerItem(bootsGarnet, "bootsGarnet");
  463. GameRegistry.registerItem(helmetGraphite, "helmetGraphite");
  464. GameRegistry.registerItem(chestGraphite, "chestGraphite");
  465. GameRegistry.registerItem(legsGraphite, "legsGraphite");
  466. GameRegistry.registerItem(bootsGraphite, "bootsGraphite");
  467.  
  468. //Register swords
  469. GameRegistry.registerItem(swordHellwood, "swordHellwood");
  470. GameRegistry.registerItem(swordHellstone, "swordHellstone");
  471. GameRegistry.registerItem(swordBrimstone, "swordBrimstone");
  472. GameRegistry.registerItem(swordGarnet, "swordGarnet");
  473. GameRegistry.registerItem(swordGraphite, "swordGraphite");
  474. GameRegistry.registerItem(swordWithering, "swordWithering");
  475.  
  476. //Register pickaxes
  477. GameRegistry.registerItem(pickHellwood, "pickHellwood");
  478. GameRegistry.registerItem(pickHellstone, "pickHellstone");
  479. GameRegistry.registerItem(pickBrimstone, "pickBrimstone");
  480. GameRegistry.registerItem(pickGarnet, "pickGarnet");
  481. GameRegistry.registerItem(pickGraphite, "pickGraphite");
  482.  
  483. //Register axes
  484. GameRegistry.registerItem(axeHellwood, "axeHellwood");
  485. GameRegistry.registerItem(axeHellstone, "axeHellstone");
  486. GameRegistry.registerItem(axeBrimstone, "axeBrimstone");
  487. GameRegistry.registerItem(axeGarnet, "axeGarnet");
  488. GameRegistry.registerItem(axeGraphite, "axeGraphite");
  489.  
  490. //Register shovels
  491. GameRegistry.registerItem(shovelHellwood, "shovelHellwood");
  492. GameRegistry.registerItem(shovelHellstone, "shovelHellstone");
  493. GameRegistry.registerItem(shovelBrimstone, "shovelBrimstone");
  494. GameRegistry.registerItem(shovelGarnet, "shovelGarnet");
  495. GameRegistry.registerItem(shovelGraphite, "shovelGraphite");
  496.  
  497.  
  498. GameRegistry.addSmelting(this.oreGraphite.blockID, new ItemStack(this.graphite), 0.5F);
  499.  
  500. }
  501.  
  502. //ACHIEVEMENT STUFF
  503. private void addAchievementName(String ach, String name)
  504. {
  505. LanguageRegistry.instance().addStringLocalization("achievement." + ach, "en_US", name);
  506. }
  507.  
  508. private void addAchievementDesc(String ach, String desc)
  509. {
  510. LanguageRegistry.instance().addStringLocalization("achievement." + ach + ".desc", "en_US", desc);
  511. }
  512.  
  513. //Initialization, anything that happens WHILE the game is starting!
  514. @Init
  515. public void Init(FMLInitializationEvent event) {
  516.  
  517. proxy.init();
  518. TickRegistry.registerTickHandler(new TickHandler(), Side.SERVER);
  519. GameRegistry.registerFuelHandler(new FuelHandler());
  520.  
  521. GameRegistry.registerTileEntity(teamoverhaul.netheroverhaul.gui.TileEntityNetherFurnace.class, "0");
  522.  
  523. //MONSTER NAMES
  524. LanguageRegistry.instance().addStringLocalization("entity.Ghoul.name", "Ghoul");
  525. LanguageRegistry.instance().addStringLocalization("entity.Shade.name", "Shade");
  526. LanguageRegistry.instance().addStringLocalization("entity.Dweller.name", "Dweller");
  527.  
  528. //BLOCK NAMES
  529. //Extend vanilla blocks via metadata
  530. LanguageRegistry.addName(new ItemStack(Block.workbench, 1, 1), "Crafting Table");
  531.  
  532. //Add names to building blocks
  533. LanguageRegistry.addName(hellStone, "Hellstone");
  534. LanguageRegistry.addName(hellCobble, "Hell Cobblestone");
  535. LanguageRegistry.addName(hellSoil, "Hellsoil");
  536. LanguageRegistry.addName(soot, "Soot");
  537. LanguageRegistry.addName(sootSmoldering, "Smoldering Soot");
  538. LanguageRegistry.addName(hellLog, "Blazewood");
  539. LanguageRegistry.addName(hellLeaves, "Blazewood Leaves");
  540. LanguageRegistry.addName(hellPlanks, "Blazewood Planks");
  541. LanguageRegistry.addName(blockNetherrack, "Netherrack Block");
  542. LanguageRegistry.addName(blockGraphite, "Graphite Block");
  543. LanguageRegistry.addName(bloodRock, "Blood Rock");
  544.  
  545. //Add names to ores
  546. LanguageRegistry.addName(oreNetherrack, "Netherrack Ore");
  547. LanguageRegistry.addName(oreQuartz, "Quartz Ore");
  548. LanguageRegistry.addName(oreDarkQuartz, "Blackquartz Ore");
  549. LanguageRegistry.addName(oreBrimstone, "Brimstone Ore");
  550. LanguageRegistry.addName(oreGarnet, "Garnet Ore");
  551. LanguageRegistry.addName(oreGraphite, "Graphite Ore");
  552.  
  553. //Add names to decorative blocks
  554. LanguageRegistry.addName(hellTorch, "Torch");
  555. LanguageRegistry.addName(glowShroom1, "Glowshroom");
  556. LanguageRegistry.addName(glowShroom2, "Glowshroom");
  557. LanguageRegistry.addName(bigGlowshroom1, "Big Glowshroom Cap");
  558. LanguageRegistry.addName(bigGlowshroom2, "Big Glowshroom Cap");
  559. LanguageRegistry.addName(bigGlowshroomStem, "Big Glowshroom Stem");
  560. LanguageRegistry.addName(netherFurnaceIdle, "Nether Furnace");
  561. LanguageRegistry.addName(rope, "Rope");
  562.  
  563. //NAME ITEMS
  564. //Add names to resources
  565. LanguageRegistry.addName(hellStick, "Stick");
  566. LanguageRegistry.addName(netherRack, "Netherrack");
  567. LanguageRegistry.addName(brimStone, "Brimstone");
  568. LanguageRegistry.addName(garnet, "Garnet");
  569. LanguageRegistry.addName(darkQuartz, "Blackquartz");
  570. LanguageRegistry.addName(graphite, "Graphite");
  571.  
  572. //Add names to armor
  573. LanguageRegistry.addName(helmetBrimstone, "Brimstone Helmet");
  574. LanguageRegistry.addName(chestBrimstone, "Brimstone Chestplate");
  575. LanguageRegistry.addName(legsBrimstone, "Brimstone Leggings");
  576. LanguageRegistry.addName(bootsBrimstone, "Brimstone Boots");
  577. LanguageRegistry.addName(helmetGarnet, "Garnet Helmet");
  578. LanguageRegistry.addName(chestGarnet, "Garnet Chestplate");
  579. LanguageRegistry.addName(legsGarnet, "Garnet Leggings");
  580. LanguageRegistry.addName(bootsGarnet, "Garnet Boots");
  581. LanguageRegistry.addName(helmetGraphite, "Graphite Helmet");
  582. LanguageRegistry.addName(chestGraphite, "Graphite Chestplate");
  583. LanguageRegistry.addName(legsGraphite, "Graphite Leggings");
  584. LanguageRegistry.addName(bootsGraphite, "Graphite Boots");
  585.  
  586. //Add names to swords
  587. LanguageRegistry.addName(swordHellwood, "Wooden Sword");
  588. LanguageRegistry.addName(swordHellstone, "Hellstone Sword");
  589. LanguageRegistry.addName(swordBrimstone, "Brimstone Sword");
  590. LanguageRegistry.addName(swordGarnet, "Garnet Sword");
  591. LanguageRegistry.addName(swordGraphite, "Graphite Sword");
  592. LanguageRegistry.addName(swordWithering, "Withering Sword");
  593.  
  594. //Add names to pickaxes
  595. LanguageRegistry.addName(pickHellwood, "Wooden Pickaxe");
  596. LanguageRegistry.addName(pickHellstone, "Hellstone Pickaxe");
  597. LanguageRegistry.addName(pickBrimstone, "Brimstone Pickaxe");
  598. LanguageRegistry.addName(pickGarnet, "Garnet Pickaxe");
  599. LanguageRegistry.addName(pickGraphite, "Graphite Pickaxe");
  600.  
  601. //Add names to axes
  602. LanguageRegistry.addName(axeHellwood, "Wooden Axe");
  603. LanguageRegistry.addName(axeHellstone, "Hellstone Axe");
  604. LanguageRegistry.addName(axeBrimstone, "Brimstone Axe");
  605. LanguageRegistry.addName(axeGarnet, "Garnet Axe");
  606. LanguageRegistry.addName(axeGraphite, "Graphite Axe");
  607.  
  608. //Add names to shovel
  609. LanguageRegistry.addName(shovelHellwood, "Wooden Shovel");
  610. LanguageRegistry.addName(shovelHellstone, "Hellstone Shovel");
  611. LanguageRegistry.addName(shovelBrimstone, "Brimstone Shovel");
  612. LanguageRegistry.addName(shovelGarnet, "Garnet Shovel");
  613. LanguageRegistry.addName(shovelGraphite, "Graphite Shovel");
  614.  
  615.  
  616. NetworkRegistry.instance().registerGuiHandler(this, new GuiHandler());
  617.  
  618. }
  619. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement