Hello Java Programmers!
I'm having a bit of trouble with one of my first java scripts! (i am a noob)
the error i've been getting is "reached end of file while parsing"
and my script is this Quote
//Generated using EASYMC. EasyModCreator.tk
package net.minecraft.src;
import java.util.Random;
public class mod_obbypickaxe extends BaseMod
{
public void load()
{
//This is our to-do list.
addNames();
setTextures();
addRecipes();
}
public String getVersion()
{
return "V1";
}
public void addNames();
{
ModLoader.AddName(obbypickaxe, "obbypickaxe ");
}
public void setTextures()
{
obbypickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "obbypick.png");
}
public void addRecipes()
{
ModLoader.addRecipe(new ItemStack(obbypick, 1), new Object[] {
"OOO", " D ", " D ",Character.valueOf('O'), Item.Obsidian, Character.valueOf("D"), Item.Obsidian
});
//You can go to the forums and look at my tutorial and the above code will make much more sense!
}
public static final Item obbypickaxe = new ItemPickaxe(5555, EnumToolMaterial.EMERALD).setItemName("obbypickaxe ");
Unquote
i've looked around and it would seem i needed a } to close it but i have tried to add
that at the end... which ends up in more errors!
So thanks in advance to any replys!
and if anyone has any getting started tips, i will gladly take any advise!
Thanks for your time
Justin