Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.assassin.carbonweaponry;
- import com.assassin.carbonweaponry.items.CFHelmet;
- import cpw.mods.fml.common.Mod;
- import cpw.mods.fml.common.Mod.EventHandler;
- import cpw.mods.fml.common.event.FMLInitializationEvent;
- import cpw.mods.fml.common.event.FMLPreInitializationEvent;
- import cpw.mods.fml.common.registry.GameRegistry;
- import net.minecraft.creativetab.CreativeTabs;
- import net.minecraft.init.Items;
- import net.minecraft.item.Item;
- import net.minecraft.item.ItemStack;
- import net.minecraftforge.common.util.EnumHelper;
- @Mod(modid = CarbonWeaponry.MODID, version = CarbonWeaponry.VERSION)
- public class CarbonWeaponry
- {
- public static final String MODID = "carbonweaponry";
- public static final String VERSION = "1.0";
- @EventHandler
- public void init(FMLInitializationEvent event)
- {
- EnumHelper.addToolMaterial("CARBONFIBER", 8, 10000, 15.0F, 7.0F, 0);
- EnumHelper.addArmorMaterial("CARBONFIBER", 200, new int[] {6, 16, 12, 6}, 0);
- Item CFHelmet = new Item().setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("CFHelmet").setTextureName(MODID + ":CFHelmet.png");
- Item CFIngot = new Item().setCreativeTab(CreativeTabs.tabMaterials).setUnlocalizedName("CFIngot").setTextureName(CarbonWeaponry.MODID + ":CFIngot.png");
- Item CFSword = new Item().setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("CFSword").setTextureName(MODID + ":CFSword.png");
- Item CFChestplate = new Item().setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("CFChestplate").setTextureName(MODID + ":CFChestplate.png");
- Item CFLeggings = new Item().setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("CFLeggings").setTextureName(MODID + ":CFLeggings.png");
- Item CFBoots = new Item().setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("CFBoots").setTextureName(MODID + ":CFBoots.png");
- //Item registering
- GameRegistry.registerItem(CFIngot,"Carbon Fiber Ingot");
- GameRegistry.registerItem(CFSword,"Carbon Fiber Sword");
- GameRegistry.registerItem(CFHelmet,"Carbon Fiber Helmet");
- GameRegistry.registerItem(CFChestplate,"Carbon Fiber Chestplate");
- GameRegistry.registerItem(CFLeggings,"Carbon Fiber Leggings");
- GameRegistry.registerItem(CFBoots,"Carbon Fiber Boots");
- //Random Shit
- GameRegistry.addSmelting(Items.rotten_flesh, new ItemStack(Items.leather), 5.0F);}
- }
Advertisement
Add Comment
Please, Sign In to add comment