May someone please spare a moment of there time to quickly help me, I am new to java and would like only about 10 minutes of your time to just fix an error that I cannot identify yet.
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
May someone please spare a moment of there time to quickly help me, I am new to java and would like only about 10 minutes of your time to just fix an error that I cannot identify yet.
Please post the code and the full text of the error message.
Be sure to wrap your code with code tags:
[code=java]
YOUR CODE HERE
[/code]
to get highlighting and preserve formatting.
If you don't understand my answer, don't ignore it, ask a question.
There are multiple packages, I am trying to make a simple mod but it isn't working when I try to add in tools.
Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for newcomers.
Are we supposed to guess the problem? You tell us the problem as clearly as possible with specific questions about what you need help with, and we'll do what we can.
EvenMoreSwords
package Unlimit3d.EvenMoreSwords.common; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.Item; import net.minecraftforge.common.EnumHelper; import Unlimit3d.EvenMoreSwords.block.BlockCopperOre; import Unlimit3d.EvenMoreSwords.item.ItemCopperAxe; import Unlimit3d.EvenMoreSwords.item.ItemCopperHoe; import Unlimit3d.EvenMoreSwords.item.ItemCopperIngot; import Unlimit3d.EvenMoreSwords.item.ItemCopperShovel; import Unlimit3d.EvenMoreSwords.item.ItemCopperPickaxe; import Unlimit3d.EvenMoreSwords.item.ItemCopperSword; 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; @Mod(modid = "EvenMoreSwords", name = "Even More Swords Mod", version = "1.0.0 Alpha" ) @NetworkMod(clientSideRequired = true, serverSideRequired = false) public class EvenMoreSwords { private static final EnumToolMaterial toolCopper = null; @SidedProxy(clientSide = "Unlimit3d.EvenMoreSwords.client.ClientProxy", serverSide = "Unlimit3d.EvenMoreSwords.common.CommonProxy") public static CommonProxy proxy; //Tools Materials public static EnumToolMaterial toolCopperIngot = EnumHelper.addToolMaterial("COPPER", 3, 1200, 6.0F, 9.0F, 30); //Copper Toolset public static Item CopperPickaxe = new ItemCopperPickaxe(1202, toolCopper).setUnlocalizedName("Copper Pickaxe"); public static Item CopperShovel = new ItemCopperPickaxe(1203, toolCopper).setUnlocalizedName("Copper Shovel"); public static Item CopperHoe = new ItemCopperHoe(1204, toolCopper).setUnlocalizedName("Copper Hoe"); public static Item CopperAxe = new ItemCopperAxe(1205, toolCopper).setUnlocalizedName("Copper Axe"); public static Item CopperSword = new ItemCopperSword(1206, toolCopper).setUnlocalizedName("Copper Sword"); //Blocks public static Block CopperOre = new BlockCopperOre(1200, Material.rock).setUnlocalizedName("Copper Ore"); //Items public static Item CopperIngot = new ItemCopperIngot(1201).setUnlocalizedName("Copper Ingot"); @Init public void load(FMLInitializationEvent event) { proxy.registerRenderInformation(); } public EvenMoreSwords() { GameRegistry.registerBlock(CopperOre); //Blocks LanguageRegistry.addName(CopperOre, "Copper Ore"); //Items LanguageRegistry.addName(CopperIngot, "Copper Ingot"); //Copper Toolset Language Registries LanguageRegistry.addName(CopperPickaxe, "Copper Pickaxe"); LanguageRegistry.addName(CopperShovel, "Copper Shovel"); LanguageRegistry.addName(CopperHoe, "Copper Hoe"); LanguageRegistry.addName(CopperAxe, "Copper Axe"); LanguageRegistry.addName(CopperSword, "Copper Sword"); } }
Sorry, I don't do Minecraft, but I'm sure there are some who do.
okay well thanks for trying
--- Update ---
If you can help just tell me and I will show you the rest of the code
Can you isolate the problem into a Short, Self Contained, Correct Example and not post the whole program?
If you don't understand my answer, don't ignore it, ask a question.
Sorry, we are not able to understand what are you trying to do exactly and what is the problem you are facing. Please can we have a detailed explanation.
Thanks and regards,
Sambit Swain