Okay, so I have a modification I'm working on, and I want it compatible with 1.0.0, and I used ModLoader to create it. Is there anything I need to do to the class files to put them inside of the jar, or can I just create the class file, write the code inside it, and then save + put it in? Or is there some decompile/recompile things I need to do with something like MCP?
Also, in the mod, I'm creating more sets of tools, but I don't know where the EnumToolMaterial thing is. Can you help me with that as well, if possible?
If you need, I can post the file that I have written, or PM it, or whatever. Plus, I have a folder with all the textures inside of it.
Rollback Post to RevisionRollBack
"So this piece of tnt came flyin out of nowhere, and blew up my house. All of it. Then an admin chimed in and said, "SORRY, MISFIRED O_o;"
-My friend
Bump because I'd like a reply. A lot. I just tried putting the textures and the class file into minecraft. Didn't work well.
EDIT: Okay, I have an idea of what went wrong. I never did find the EnumToolMaterial bit, and I need to add in the FELSON and ADAMANTINE materials. Help on where to find that?
Bump, because I don't think people saw my edit on post. I checked over my entire mod class file, and it all seemed to be proper, so the only error I can think of is the EnumToolMaterial's. I have everything expanded, the entire minecraft.jar open in an editor, and I searched for it but could not find it.
Rollback Post to RevisionRollBack
"So this piece of tnt came flyin out of nowhere, and blew up my house. All of it. Then an admin chimed in and said, "SORRY, MISFIRED O_o;"
-My friend
So all of these files have to be .java files, NOT class files? is that it? because I just opened tw.class and got this:
import java.util.Random;
public class tw extends ig
{
public boolean a(ry paramry, Random paramRandom, int paramInt1, int paramInt2, int paramInt3)
{
for (int i = 0; i < 20; i++) {
int j = paramInt1 + paramRandom.nextInt(4) - paramRandom.nextInt(4);
int k = paramInt2;
int m = paramInt3 + paramRandom.nextInt(4) - paramRandom.nextInt(4);
if ((!paramry.h(j, k, m)) || (
(paramry.e(j - 1, k - 1, m) != p.g) && (paramry.e(j + 1, k - 1, m) != p.g) && (paramry.e(j, k - 1, m - 1) != p.g) && (paramry.e(j, k - 1, m + 1) != p.g)))
{
continue;
}
int n = 2 + paramRandom.nextInt(paramRandom.nextInt(3) + 1);
for (int i1 = 0; i1 < n; i1++) {
if (yy.aX.e(paramry, j, k + i1, m)) {
paramry.d(j, k + i1, m, yy.aX.bM);
}
}
}
return true;
}
}
Rollback Post to RevisionRollBack
"So this piece of tnt came flyin out of nowhere, and blew up my house. All of it. Then an admin chimed in and said, "SORRY, MISFIRED O_o;"
-My friend
Also, in the mod, I'm creating more sets of tools, but I don't know where the EnumToolMaterial thing is. Can you help me with that as well, if possible?
If you need, I can post the file that I have written, or PM it, or whatever. Plus, I have a folder with all the textures inside of it.
-My friend
EDIT: Okay, I have an idea of what went wrong. I never did find the EnumToolMaterial bit, and I need to add in the FELSON and ADAMANTINE materials. Help on where to find that?
-My friend
-My friend
-My friend