Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Posts

  • Joined

  • Last visited


  • Gender
  • Personal Text
    I am new!

Felcri's Achievements

Tree Puncher

Tree Puncher (2/8)



  1. I am trying to make a mod which adds a new pickaxe to the game and I cant create a new tool material. Mod Code: package Fel.Cri; import net.minecraft.src.Block; import net.minecraft.src.EnumToolMaterial; import net.minecraft.src.Item; import net.minecraft.src.ItemStack; import net.minecraftforge.common.EnumHelper; import Felcri.Common.CommonProxyFelcri; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; //Info @Mod(modid="Felcri",name="Fel",version="1.0.0") @NetworkMod(clientSideRequired=true,serverSideRequired = false) public class mod_Fel { //blocks/items public static Block BlockFelIron_Ore; public static Item ItemFelIron_Bar; public static Item ItemFelIron_Pick; //texture proxy @SidedProxy(clientSide="Felcri.Client.ClientProxyFelcri", serverSide= "Felcri.Common.ClientProxyFelcri") public static CommonProxyFelcri proxy; @Init public void load(FMLInitializationEvent event){ //blocks/items information BlockFelIron_Ore = new BlockFelIron_Ore(255, 0).setBlockName("BlockFelIron_Ore").setHardness(3F).setResistance(5F); ItemFelIron_Bar= new ItemFelIron_Bar(500).setItemName("ItemFelIron_Bar").setIconIndex(1); ItemFelIron_Pick = new ItemFelIron_Pick(501, Feliron).setIconIndex(0).setItemName("ItemFelIron_Pick"); The error is in the ItemFelIron_Pick and it says Feliron can not be resolved to a variable. //Block Registry GameRegistry.registerBlock(BlockFelIron_Ore); //Material EnumToolMaterial Feliron = EnumHelper.addToolMaterial("Feliron", 2, 300, 6.0F, 2, 14); //Language Registry LanguageRegistry.addName(BlockFelIron_Ore, "Fel Iron Ore"); LanguageRegistry.addName(ItemFelIron_Bar, "Fel Iron Ingot"); LanguageRegistry.addName(ItemFelIron_Pick, "Fel Iron Pickaxe"); //Recipe Registry GameRegistry.addRecipe(new ItemStack(ItemFelIron_Pick,1), new Object[]{ " X ","XSX"," S ", 'X', mod_Fel.ItemFelIron_Bar, 'S', Item.stick }); //Proxy proxy.registerRenderThings(); } }
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.