Guest User

CarbonWeaponry (Main class)

a guest
Oct 12th, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.53 KB | None | 0 0
  1. package com.assassin.carbonweaponry;
  2.  
  3. import com.assassin.carbonweaponry.items.CFHelmet;
  4.  
  5. import cpw.mods.fml.common.Mod;
  6. import cpw.mods.fml.common.Mod.EventHandler;
  7. import cpw.mods.fml.common.event.FMLInitializationEvent;
  8. import cpw.mods.fml.common.event.FMLPreInitializationEvent;
  9. import cpw.mods.fml.common.registry.GameRegistry;
  10. import net.minecraft.creativetab.CreativeTabs;
  11. import net.minecraft.init.Items;
  12. import net.minecraft.item.Item;
  13. import net.minecraft.item.ItemStack;
  14. import net.minecraftforge.common.util.EnumHelper;
  15.  
  16. @Mod(modid = CarbonWeaponry.MODID, version = CarbonWeaponry.VERSION)
  17. public class CarbonWeaponry
  18. {
  19. public static final String MODID = "carbonweaponry";
  20. public static final String VERSION = "1.0";
  21.  
  22. @EventHandler
  23. public void init(FMLInitializationEvent event)
  24. {
  25.  
  26.  
  27.  
  28. EnumHelper.addToolMaterial("CARBONFIBER", 8, 10000, 15.0F, 7.0F, 0);
  29. EnumHelper.addArmorMaterial("CARBONFIBER", 200, new int[] {6, 16, 12, 6}, 0);
  30. Item CFHelmet = new Item().setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("CFHelmet").setTextureName(MODID + ":CFHelmet.png");
  31. Item CFIngot = new Item().setCreativeTab(CreativeTabs.tabMaterials).setUnlocalizedName("CFIngot").setTextureName(CarbonWeaponry.MODID + ":CFIngot.png");
  32. Item CFSword = new Item().setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("CFSword").setTextureName(MODID + ":CFSword.png");
  33.  
  34. Item CFChestplate = new Item().setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("CFChestplate").setTextureName(MODID + ":CFChestplate.png");
  35. Item CFLeggings = new Item().setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("CFLeggings").setTextureName(MODID + ":CFLeggings.png");
  36. Item CFBoots = new Item().setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("CFBoots").setTextureName(MODID + ":CFBoots.png");
  37.  
  38.  
  39.  
  40. //Item registering
  41. GameRegistry.registerItem(CFIngot,"Carbon Fiber Ingot");
  42. GameRegistry.registerItem(CFSword,"Carbon Fiber Sword");
  43.  
  44. GameRegistry.registerItem(CFHelmet,"Carbon Fiber Helmet");
  45. GameRegistry.registerItem(CFChestplate,"Carbon Fiber Chestplate");
  46. GameRegistry.registerItem(CFLeggings,"Carbon Fiber Leggings");
  47. GameRegistry.registerItem(CFBoots,"Carbon Fiber Boots");
  48.  
  49.  
  50. //Random Shit
  51. GameRegistry.addSmelting(Items.rotten_flesh, new ItemStack(Items.leather), 5.0F);}
  52.  
  53.  
  54.  
  55.  
  56. }
Advertisement
Add Comment
Please, Sign In to add comment