So I have the line:
public static EnumToolMaterial AmethystToolMaterial;
Eclipse is telling me the semi colon is incorrect.
The line before it: public static Item ItemAmethystPickaxe;
does not have this problem.
Here you go:
@Override
public boolean func_111207_a(ItemStack itemstack, EntityPlayer player, EntityLivingBase target){
if(!target.worldObj.isRemote){
if(target instanceof EntityCreeper){
if(player.onGround()){
target.motionY = 2.5;
} else {
player.addChatMessage("This item only works while on the ground!"); }
So Im trying to code something to happen when the player is on land. I do if(player.onGround()){ but it eclipse says it is an error even though it was in the list. Can anyone help?
So I have recompiled and reobfusacted. But I am having trouble actually transferring the class files to minecraft. Can anyone help me install my forge mod to minecraft?
This doesn't help. What other file can I run other than the .bat? By the way I am running the .sh from my mcp folder. I'm kinda new to this, and your aren't helping.
So I get this error when I try to run recompile.bat on mac:
/Users/maxberezovsky/Desktop/Minecraft Modding/MCP/forge/mcp/recompile.bat: line 1: @echo: command not found
/Users/maxberezovsky/Desktop/Minecraft Modding/MCP/forge/mcp/recompile.bat: line 2: runtimebinpythonpython_mcp: command not found
: command not foundy/Desktop/Minecraft Modding/MCP/forge/mcp/recompile.bat: line 3: pause
If I try to run recompile.sh I get this error:
/Users/maxberezovsky/Desktop/Minecraft\ Modding/MCP/forge/mcp/recompile.sh
python: can't open file 'runtime/recompile.py': [Errno 2] No such file or directory
I am trying to recompile my mod to publish it but this is in my way, anyone know how to fix this?