Okay I ported over some sources from a mod I made a while ago for SMP, and now when the mod is ran through MPC no recipes are loaded, and the sprite overrides do not occur.
Please help me....
And the three things I have are ModLoader, Modloader MP, and Minecraft Forge
package net.minecraft.src;
public class mod_M$CSMP extends BaseMod
{
@Override
public String getVersion()
{
return "Alpha v0.1";
}
@Override
public void load()
{
}
public mod_M$CSMP()
{
//Add Names
ModLoader.AddName(Dynamite, "Dynamite");
ModLoader.AddName(GreenBrick, "Green Bricks");
//Register Entity
ModLoader.RegisterEntityID(M$CEntityDynamite.class, "Dynamite", ModLoader.getUniqueEntityId());
//Register Block
ModLoader.RegisterBlock(GreenBrick);
//Items
Dynamite = new M$CItemDynamite(1004).setItemName("Dynamite");
//Recipes
ModLoader.AddRecipe(new ItemStack(Dynamite, 64), new Object[] {
" X ", " X ", " X ", Character.valueOf('X'), Block.dirt
});
ModLoader.AddRecipe(new ItemStack(GreenBrick, 64), new Object[] {
" X ", " ", " ", Character.valueOf('X'), Block.dirt
});
//Texture Overrides
Dynamite.iconIndex = ModLoader.addOverride("/gui/items.png", "/M$C/dynamite.png");
}
//Declare Items
public static Item Dynamite;
//Declare Blocks
public static final Block GreenBrick;
static
{
//Blocks
GreenBrick = (new BlockDirt(130, ModLoader.addOverride("/terrain.png", "/MineTerria/greenbrick.png"))).setHardness(0.7F).setStepSound(Block.soundStoneFootstep).setBlockName("GreenBrick");
}
}
yea i think the way modloader works is difrent for 1.0.0 not really sure. i just know that the mods i make dont seem to work for 1.0 but the way they were written worked in 1.8.1
Please help me....
And the three things I have are ModLoader, Modloader MP, and Minecraft Forge
Farewell everyone o/