Ok, by now I am feeling kinda dumb. I got my last error fixed... Now
*** Minecraft Coder Pack Version 2.8 ***
MCP 2.8 running in C:\Users\Nicholas\Downloads\mcp28
Compiling Minecraft
sources\minecraft\net\minecraft\src\EntityBrock.java:6: invalid method declarati
on; return type required
public EntityBrock(World world)
^
1 error
*** minecraft_server.jar was not found, skipping
=== MCP 2.8 recompile script finished ===
Press any key to continue . . .
these are my two things...
package net.minecraft.src;
import java.lang.reflect.Method;
import java.util.Map;
public class mod_Brock extends BaseMod
{
public String Version()
{
//not sure exactly what this does, but I know that you can write pretty much anything you want in there.
return "mod_Brock version 0.3";
}
public mod_Brock()
{
ModLoader.RegisterEntityID(EntityBrock.class, "Brock", ModLoader.getUniqueEntityId());
spawnlist.add("Surface biomes", 1, new Object[] {EntityBrock.class});
}
//this part gives your mob a human model. This part is necessary if you want your mob to be able to carry stuff.
public void AddRenderer(Map map)
{
map.put(EntityBrock.class, new RenderBiped(new ModelBiped(), 0.5F));
}
}
package net.minecraft.src;
public class Brock extends EntityCreature
{
public EntityBrock(World world)
{
super(world);
//This is the texture for your mob
texture = "/mob/Brock.png";
}
protected int getDropItemId()
{
//This is the item your mob will drop
return Item.porkCooked.shiftedIndex;
}
}
Hey! Great Guide! Thank you for it and for others helping with code. :smile.gif:
I just got one problem, im using the code:
public void func_21077_o()
{
dropItem(Item.porkCooked.shiftedIndex, 5);
}
but I don't get any dropped items at all, I killed tons of mobs that I made but they don't drop anything at all. If I use the normal code they sometimes drop 1 or 2 porkchops. I even tried some code that other people have posted for their mobs, but its still the same. Anyone have any ideas what I'm doing wrong?
Having some issues. It's saying that I didn't install JDK when I try to recompile. Which I did, but I don't know how to configure the path for it?
" Unable to locate javac.exe Please verify that it is in the PATH.
If you don't know where to get it, please visit http://www.oracle.com/technetwork/java/ ... index.html and download a JDK.
Press any key to continue . . . "
EDIT: Please? I have no idea how to edit the path of it. Would appreciate some help.
It's not that bad, if you've ever coded in anything else. I started with C, then AS2, THEN java so I didn't have too many problems learning, apart from dropping some bad habits that just didn't fly with java. Even if you haven't ever coded with java tho, this tutorial was written under the assumption that the reader has no idea what I'm talking about, so if you follow it to dot you should be able to make your own mobs.
Rollback Post to RevisionRollBack
GENERATION 25: The first time you see this, copy it into your sig on any forum and add 1 to the generation.
I have the jdk installed and everything.
EDIT: FIXED I FOLLOWED THE INSTRUCTIONS AND EDITED MY PATH.
"A Freudian Slip is when you say one thing but mean your mother"
-Unknown
Life is more fun with Spacebar held down!
Honestly the recompiler shouldnt have any issues trying to find javac. The only thing I can advise is to re/download this-
http://www.oracle.com/technetwork/java/javase/downloads/index.html
That should fix everything. Hopefully. Just click the big java button :tongue.gif: Hope this helps.
these are my two things...
Sorry...
you should have
Thanks that worked
no problem man didnt even have to read the error just saw and compared to one of my codes and saw it was wrong
viewtopic.php?f=25&t=170604
Goddamn do I hate this name z_z
I just got one problem, im using the code:
public void func_21077_o()
{
dropItem(Item.porkCooked.shiftedIndex, 5);
}
but I don't get any dropped items at all, I killed tons of mobs that I made but they don't drop anything at all. If I use the normal code they sometimes drop 1 or 2 porkchops. I even tried some code that other people have posted for their mobs, but its still the same. Anyone have any ideas what I'm doing wrong?
" Unable to locate javac.exe Please verify that it is in the PATH.
If you don't know where to get it, please visit http://www.oracle.com/technetwork/java/ ... index.html and download a JDK.
Press any key to continue . . . "
EDIT: Please? I have no idea how to edit the path of it. Would appreciate some help.
no it wont trust me work on my mod has halted for a couple of days while they fixing it
then read this guide and do what it says http://titanpad.com/GZLpNFpvuQ only takes a couple of minutes
(Bookmarked)
It's not that bad, if you've ever coded in anything else. I started with C, then AS2, THEN java so I didn't have too many problems learning, apart from dropping some bad habits that just didn't fly with java. Even if you haven't ever coded with java tho, this tutorial was written under the assumption that the reader has no idea what I'm talking about, so if you follow it to dot you should be able to make your own mobs.
One how can I fix this error?
And two is it possible to make it drop two items? If so what code do I need?