hello my name is zero6251(as in the name) I am a novice mod maker and I know the secrets of how to mod with Modloader. now most of you might use this and most of you might not read this but I will release another fourm for how to mod with forge. But for right now I am going to tell you how to:
update pre existing mods
and how to make the new ones updated
ok now lets get started!
ok so lets say your making a item for a sword your going to make.
when you make the Item There is some change in the coding process. for example:
this is the old code:
package net.minecraft.src;
import java.util.Random;
public class mod_SAO extends BaseMod
{
public static final Item NAMEHERE =new ItemNAME(2085).setItemName("NAME");
}
public String getVersion()
{
return "3.14159265;
}
}
this is how you would do it up until the 1.5.1 update
but the Mojang crew is smart (and tricky) so they made it "better" so they changed it to this:
public static final Item NAMEHERE =new ItemNAME(2087).setUnlocalizedName("NAME");
now when they did that they mad it even more easy by making the ("NAME") act like the:
Namehere.IconIndex = ModLoader.addOverride("/gui/items.png" , "/items/pic.png");
so in other words the ("NAME") is what sets the texture. but the thing is, you HAVE to put the name of the ****.png in the (textures/items) folder or else it will not work.!(sorry)
but the ItemNAME class is still the same! (yay!)
Now making amour Is another thing! (remember I said NOVICE!) but I will get back to you with that in hand!
ok so lets say your making a item for a sword your going to make.
when you make the Item There is some change in the coding process.
for example:
this is the old code:
package net.minecraft.src;
import java.util.Random;
public class mod_SAO extends BaseMod
{
public static final Item NAMEHERE =new ItemNAME(2085).setItemName("NAME");
public void load()
{
Namehere.IconIndex = ModLoader.addOverride("/gui/items.png" , "/items/pic.png");
ModLoader.addName(NAMEhere, "Ingame-Name");
}
public String getVersion()
{
return "3.14159265;
}
}
this is how you would do it up until the 1.5.1 update
but the Mojang crew is smart (and tricky) so they made it "better"
so they changed it to this:
public static final Item NAMEHERE =new ItemNAME(2087).setUnlocalizedName("NAME");
now when they did that they mad it even more easy by making the ("NAME") act like the:
Namehere.IconIndex = ModLoader.addOverride("/gui/items.png" , "/items/pic.png");
so in other words the ("NAME") is what sets the texture. but the thing is, you HAVE to put the name of the ****.png in the (textures/items) folder or else it will not work.!(sorry)
but the ItemNAME class is still the same! (yay!)
Now making amour Is another thing! (remember I said NOVICE!) but I will get back to you with that in hand!
your welcome
zero6251