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.

Results 1 to 9 of 9

Thread: Help needed

  1. #1
    Junior Member
    Join Date
    Feb 2014
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Help needed

    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.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,067
    Thanks
    47
    Thanked 2,146 Times in 2,119 Posts

    Default Re: Help needed

    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.

  3. #3
    Junior Member
    Join Date
    Feb 2014
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Help needed

    There are multiple packages, I am trying to make a simple mod but it isn't working when I try to add in tools.

  4. #4
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    4,453
    My Mood
    Mellow
    Thanks
    146
    Thanked 607 Times in 594 Posts

    Default Re: Help needed

    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.

  5. #5
    Junior Member
    Join Date
    Feb 2014
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Help needed

    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");
    }
    }

  6. #6
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    4,453
    My Mood
    Mellow
    Thanks
    146
    Thanked 607 Times in 594 Posts

    Default Re: Help needed

    Sorry, I don't do Minecraft, but I'm sure there are some who do.

  7. #7
    Junior Member
    Join Date
    Feb 2014
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Help needed

    okay well thanks for trying

    --- Update ---

    If you can help just tell me and I will show you the rest of the code

  8. #8
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,067
    Thanks
    47
    Thanked 2,146 Times in 2,119 Posts

    Default Re: Help needed

    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.

  9. #9
    Member
    Join Date
    Oct 2013
    Location
    United Kingdom
    Posts
    62
    Thanks
    1
    Thanked 4 Times in 4 Posts

    Default Re: Help needed

    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

Similar Threads

  1. HELP NEEDED
    By dorian10 in forum Java Theory & Questions
    Replies: 3
    Last Post: December 1st, 2013, 01:10 PM
  2. Help Needed
    By komal510 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: February 13th, 2013, 12:55 PM
  3. Grails Developer Needed - URGENTLY NEEDED *WORK FROM HOME*
    By IngeniumR in forum Paid Java Projects
    Replies: 0
    Last Post: February 5th, 2013, 06:19 AM
  4. [SOLVED] Help needed!
    By subhvi in forum Web Frameworks
    Replies: 4
    Last Post: February 18th, 2010, 08:26 AM