Fatal_Edge

ObsidianMod

Sep 25th, 2013
98
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package Fatal_Edge.ObsidianMod.common;
  2.  
  3. import Fatal_Edge.ObsidianMod.item.ItemObsidianAxe;
  4. import Fatal_Edge.ObsidianMod.item.ItemObsidianHoe;
  5. import Fatal_Edge.ObsidianMod.item.ItemObsidianIngot;
  6. import Fatal_Edge.ObsidianMod.item.ItemObsidianPickaxe;
  7. import Fatal_Edge.ObsidianMod.item.ItemObsidianShovel;
  8. import Fatal_Edge.ObsidianMod.item.ItemObsidianSword;
  9. import net.minecraft.block.Block;
  10. import net.minecraft.item.EnumToolMaterial;
  11. import net.minecraft.item.Item;
  12. import net.minecraft.item.ItemStack;
  13. import net.minecraftforge.common.EnumHelper;
  14. import cpw.mods.fml.common.Mod;
  15. import cpw.mods.fml.common.registry.GameRegistry;
  16. import cpw.mods.fml.common.registry.LanguageRegistry;
  17.  
  18.  
  19. @Mod(modid = "ObsidianMod", name = "ObsidianMod", version = "0.1 Alpha")
  20. public class ObsidianMod {
  21.  
  22. //EmuToolMaterial
  23. public static EnumToolMaterial toolObsidian = EnumHelper.addToolMaterial("OBSIDIAN", 3, 2500, 15.0F, 2.0F, 30);
  24.  
  25. //registrations
  26. public static Item ObsidianPickaxe = new ItemObsidianPickaxe(2000, toolObsidian).setUnlocalizedName("ObsidianPickaxe");
  27. public static Item ObsidianSword = new ItemObsidianSword(2001, toolObsidian).setUnlocalizedName("ObsidianSword");
  28. public static Item ObsidianShovel = new ItemObsidianShovel(2002, toolObsidian).setUnlocalizedName("ObsidianShovel");
  29. public static Item ObsidianAxe = new ItemObsidianAxe(2003, toolObsidian).setUnlocalizedName("ObsidianAxe");
  30. public static Item ObsidianHoe = new ItemObsidianHoe(2004, toolObsidian).setUnlocalizedName("OsidianHoe");
  31. public static Item ObsidianIngot = new ItemObsidianIngot(2005).setUnlocalizedName("ObsidianIngot");
  32.  
  33.  
  34.  
  35.  
  36. public ObsidianMod() {
  37.  
  38. LanguageRegistry.addName(ObsidianPickaxe, "Obsidan Pickaxe");
  39. LanguageRegistry.addName(ObsidianSword, "Obsidian Sword");
  40. LanguageRegistry.addName(ObsidianShovel, "Obsidian Shovel");
  41. LanguageRegistry.addName(ObsidianAxe, "Obsidian Axe");
  42. LanguageRegistry.addName(ObsidianHoe, "Obsidian Hoe");
  43. LanguageRegistry.addName(ObsidianIngot, "Obsidian Ingot");
  44.  
  45. GameRegistry.addRecipe(new ItemStack(ObsidianPickaxe, 1), new Object [] {
  46. "***", " X ", " X ", 'X', Item.stick, '*', Block.obsidian
  47. });
  48.  
  49. GameRegistry.addRecipe(new ItemStack(ObsidianSword, 1), new Object [] {
  50. " * ", " * ", " X ", 'X', Item.stick, '*', Block.obsidian
  51. });
  52.  
  53. GameRegistry.addRecipe(new ItemStack(ObsidianShovel, 1), new Object [] {
  54. " * ", " X ", " X ", 'X', Item.stick, '*', Block.obsidian
  55. });
  56.  
  57. GameRegistry.addRecipe(new ItemStack(ObsidianAxe, 1), new Object [] {
  58. "** ", "*X ", " X ", 'X', Item.stick, '*', Block.obsidian
  59. });
  60.  
  61. GameRegistry.addRecipe(new ItemStack(ObsidianHoe, 1), new Object [] {
  62. "** ", " X ", " X ", 'X', Item.stick, '*', Block.obsidian
  63. });
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72. }
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91. }
RAW Paste Data