IMHO, learn some Java before trying to mod. Variables, methods, argument lists - these are all covered in the early lessons of Java tutorials, the New Boston videos, etc.
ModLoader.AddName(lightPlank, "Light Plank");
int textureID = ModLoader.addOverride("/terrain.png", "/myfolder/myimg.png");
But that's if you're using ModLoader. If you are not, then things get a bit harder, and your mod may be incompatible with other mods that add blocks or items.
Without ModLoader, the change to the lang file looks OK, so not sure why it is working. I've only had my images work if they are in the jar in MCP/jars/bin, but that's with 16x16 images for ModLoader - I have no experience modifying the terrain.png.
Whatever you think is best. Most mods with multiple items, blocks, etc, use one mod_ file. There is no reason you couldn't have a different mod_file for every individual object.
Of course, the mod_ file doesn't define the objects, so you may or may not need individual classes for those depending of if you are just using base classes or defining/extending your own.
And then there are related files and classes, depending on the object. For example, a block might require a tile entity and even a container and GUI,
How to install a mod:
1) Force update to get a clean version of MC
2) Install the mod according to directions
3) Force update to get a clean version of MC
4) Install the mod according to directions
5) Force update to get a clean version of MC
6) Install the mod according to directions
Repeat for infinity. (Or stop at step 2 if you want to keep the mod installed.)
0
1
0
0
0
0
0
int textureID = ModLoader.addOverride("/terrain.png", "/myfolder/myimg.png");
But that's if you're using ModLoader. If you are not, then things get a bit harder, and your mod may be incompatible with other mods that add blocks or items.
Without ModLoader, the change to the lang file looks OK, so not sure why it is working. I've only had my images work if they are in the jar in MCP/jars/bin, but that's with 16x16 images for ModLoader - I have no experience modifying the terrain.png.
1
Of course, the mod_ file doesn't define the objects, so you may or may not need individual classes for those depending of if you are just using base classes or defining/extending your own.
And then there are related files and classes, depending on the object. For example, a block might require a tile entity and even a container and GUI,
0
0
0
0
0
Actually, that is legal Java. However, I recommend against it since it can confuse the person coding or reading the code.
As already stated, the problem is with the constructor being called vs. the constructor that was declared. Java 101. (C++ 101 too, ftw)
0
1) Force update to get a clean version of MC
2) Install the mod according to directions
3) Force update to get a clean version of MC
4) Install the mod according to directions
5) Force update to get a clean version of MC
6) Install the mod according to directions
Repeat for infinity. (Or stop at step 2 if you want to keep the mod installed.)
0
Using some magic mod maker: ask in the thread for that magic mod maker