1
Help with my mod (SOLVED)
im making a mod for thor and the recompiler gives me this and i dont see why: (its probably ADD but please help me anyways)
this error is fixed working on the new ones
src\minecraft\net\minecraft\src\ItemMjolnir.java:8: error: reached end of file while parsing
}
^
1 error
heres the code:
and heres the ItemMjolnir that i forgot
this error is fixed working on the new ones
src\minecraft\net\minecraft\src\ItemMjolnir.java:8: error: reached end of file while parsing
}
^
1 error
heres the code:
package net.minecraft.src;
import java.util.Random;
public class mod_thor extends BaseMod
{
public static final Item m_Mjolnir = new Mjolnir(2000)
.setItemName("m_Mjolnir");
public String getVersion()
{
return "thor 1.0.0";
}
public void load() { }
public mod_thor()
{
ModLoader.addName(m_Mjolnir, "Mjolnir");
m_Mjolnir.iconIndex = ModLoader.addOverride("/gui/items.png", "/thor_mod/GFX/Mjolnir");
ModLoader.addRecipe(new ItemStack(m_Mjolnir, 1), new Object []{"###" , "###" , " B " ,
Character.valueOf('#'), Item.ingotIron
, Character.valueOf('B'), Item.stick });
}
}and heres the ItemMjolnir that i forgot
package net.minecraft.src;
public class Mjlonir extends Item
{public Mjlonir(int i)
{
super(i);
maxStackSize = 1;
}
16
but everything seem to be working
im in notepad++
eclipse isnt working today for some reason
eclipse isnt working today for some reason
are yo using eclipsE? it tells yo the error and most of the time how you can fix it!
that fixed the problem
compile...
got this
src\minecraft\net\minecraft\src\ItemMjolnir.java:4: error: invalid method declaration; return type required
{public Mjlonir(int i)
^
1 error
compile...
got this
src\minecraft\net\minecraft\src\ItemMjolnir.java:4: error: invalid method declaration; return type required
{public Mjlonir(int i)
^
1 error
package net.minecraft.src;
public class ItemMjlonir extends Item
{public ItemMjlonir(int i)
{
super(i);
maxStackSize = 1;
}
}
Heres the code should be fixed all you were missing is a "squiglly bracket*
public class ItemMjlonir extends Item
{public ItemMjlonir(int i)
{
super(i);
maxStackSize = 1;
}
}
Heres the code should be fixed all you were missing is a "squiglly bracket*
ok that would make sense thats sorry about that last post
i did that but the error is in the item file
try moving " public void load() { }" down near the bottom of the code and move
" public mod_thor()
{
ModLoader.addName(m_Mjolnir, "Mjolnir");
m_Mjolnir.iconIndex = ModLoader.addOverride("/gui/items.png", "/thor_mod/GFX/Mjolnir");
ModLoader.addRecipe(new ItemStack(m_Mjolnir, 1), new Object []{"###" , "###" , " B " ,
Character.valueOf('#'), Item.ingotIron
, Character.valueOf('B'), Item.stick });
}"
to near the top where your public final static code is.
in your item code:
you forgot "}" at the end
heres what it should look like
package net.minecraft.src;
public class Mjlonir extends Item
{public Mjlonir(int i)
{
super(i);
maxStackSize = 1;
}
}
" public mod_thor()
{
ModLoader.addName(m_Mjolnir, "Mjolnir");
m_Mjolnir.iconIndex = ModLoader.addOverride("/gui/items.png", "/thor_mod/GFX/Mjolnir");
ModLoader.addRecipe(new ItemStack(m_Mjolnir, 1), new Object []{"###" , "###" , " B " ,
Character.valueOf('#'), Item.ingotIron
, Character.valueOf('B'), Item.stick });
}"
to near the top where your public final static code is.
in your item code:
you forgot "}" at the end
heres what it should look like
package net.minecraft.src;
public class Mjlonir extends Item
{public Mjlonir(int i)
{
super(i);
maxStackSize = 1;
}
}
would you tell me then kind sir?
I Know Why
updated the code you see here still problematic
deleted all the unecessary stuff
went ahead an rewrote the whole thing still giving me that
he he it seems i posted this in the wrong place he he
please still help me
please still help me
BUMP BUMP *cough* it would be nice if someone took a minute to help *cough* (i have a cold) BUMP BUMP
fixed spelling errors no difference
