• 0

    posted a message on Modding help
    Sorry ive only been doing this for 2 days. try adding a ";" to the end of public String Version()
    Posted in: Mods Discussion
  • 0

    posted a message on Modding help
    So I need help with an error I'm getting during recompiling

    2011-12-16 14:55 - commands.recompile - ERROR - javac -g -source 1.6 -target 1.6 -classpath "lib/:lib/*:jars/bin/minecraft.jar:jars/bin/jinput.jar:jars/bin/lwjgl.jar:jars/bin/lwjgl_util.jar" -sourcepath src/minecraft -d bin/minecraft src/minecraft/net/minecraft/client/*.java src/minecraft/net/minecraft/src/*.java conf/patches/*.java failed.
    2011-12-16 14:55 - commands.recompile - ERROR - Return code : 1
    2011-12-16 14:55 - commands.recompile - ERROR -
    2011-12-16 14:55 - commands.recompile - ERROR - == ERRORS FOUND ==
    2011-12-16 14:55 - commands.recompile - ERROR -
    2011-12-16 14:55 - commands.recompile - ERROR - mod_Ore.java:43: class, interface, or enum expected
    2011-12-16 14:55 - commands.recompile - ERROR - public void load()
    2011-12-16 14:55 - commands.recompile - ERROR - ^
    2011-12-16 14:55 - commands.recompile - ERROR -
    2011-12-16 14:55 - commands.recompile - ERROR - 1 error
    2011-12-16 14:55 - commands.recompile - ERROR - ==================
    2011-12-16 14:55 - commands.recompile - ERROR -
    2011-12-16 14:55 - commands.checksources - WARNING - !! Can not find server sources !!
    <spoiler>

    heres the code I'm using



    package net.minecraft.src;

    import java.util.Random;

    public class mod_Ore extends BaseMod
    {
    public mod_Ore()
    {
    ModLoader.RegisterBlock(newore);
    ModLoader.AddName(newore, "Copper Ore");
    orerefined.iconIndex = ModLoader.addOverride("/gui/items.png", "/Ruby/orerefined.png");
    ModLoader.AddName(orerefined, "Copper");
    ModLoader.AddSmelting(newore.blockID, new ItemStack(orerefined));
    }
    public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
    {
    for(int i = 0; i < 20; i++)
    {
    int randPosX = chunkX + rand.nextInt(16);
    int randPosY = rand.nextInt(128);
    int randPosZ = chunkZ = rand.nextInt(16);
    (new WorldGenMinable(newore.blockID, 16)).generate(world, rand, randPosX, randPosY, randPosZ);
    }
    }


    public static Block newore;
    public static Item orerefined = (new ItemOrerefined(ModLoader.getUniqueEntityId())).setItemName("orerefined");

    static
    {package net.minecraft.src;

    import java.util.Random;

    public class mod_Ore extends BaseMod
    {
    public mod_Ore()
    {
    ModLoader.RegisterBlock(newore);
    ModLoader.AddName(newore, "Copper Ore");
    orerefined.iconIndex = ModLoader.addOverride("/gui/items.png", "/Ruby/orerefined.png");
    ModLoader.AddName(orerefined, "Copper");
    ModLoader.AddSmelting(newore.blockID, new ItemStack(orerefined));
    }
    public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
    {
    for(int i = 0; i < 20; i++)
    {
    int randPosX = chunkX
    newore = new BlockNewore(201, ModLoader.addOverride("/terrain.png", "/Ruby/ore.png")).setHardness(2.0F).setResistance(2.0F).setBlockName("newore");
    }


    public String getVersion()

    {
    return "1.0.0";
    }
    }
    @Override
    public void load()
    {
    }
    Posted in: Mods Discussion
  • To post a comment, please or register a new account.