public String Version()
{
return "Food Mod for 1.8.1";
}
}
and when i recompile it with MCP44 I get no errors, the game doesn't crash etc. However, once I get into game, the items can not be crafted. Any help is wanted and appreciated.
public String Version()
{
return "Food Mod for 1.8.1";
}
}
and when i recompile it with MCP44 I get no errors, the game doesn't crash etc. However, once I get into game, the items can not be crafted. Any help is wanted and appreciated.
Isn't there something similar to ModLoader.RegisterBlock() for items you need to do? Otherwise, I'm not sure. Are you sure you are using the right recipe?
Rollback Post to RevisionRollBack
Did I help? Press the + to up my reputation if I did!
Isn't there something similar to ModLoader.RegisterBlock() for items you need to do? Otherwise, I'm not sure. Are you sure you are using the right recipe?
No there isn't, at least I never have.
OP have you made sure that A) You have ModLoader installed and :cool.gif: META-INF was deleted(it's located in your minecraft.jar).
public class mod_Food extends BaseMod
{
public static final Item PizzaSlice = new ItemFood(601, 8, false).setIconCoord(13, 10).setItemName("PizzSlice");
public mod_Food()
{
PizzaSlice.iconIndex = ModLoader.addOverride("/gui/items.png", "/Food/PizzaSlice.png");
ModLoader.AddName(PizzaSlice, "Pizza Slice");
ModLoader.AddRecipe(new ItemStack(PizzaSlice, 1), new Object[]
{ "###", "XXX", "YYY", Character.valueOf('#'), Block.dirt, Character.valueOf('X'), Block.cobblestone, Character.valueOf('Y'), Block.dirt});
}
public String Version()
{
return "Food Mod for 1.8.1";
}
}
and when i recompile it with MCP44 I get no errors, the game doesn't crash etc. However, once I get into game, the items can not be crafted. Any help is wanted and appreciated.
Isn't there something similar to ModLoader.RegisterBlock() for items you need to do? Otherwise, I'm not sure. Are you sure you are using the right recipe?
No there isn't, at least I never have.
OP have you made sure that A) You have ModLoader installed and :cool.gif: META-INF was deleted(it's located in your minecraft.jar).
META-INF has been deleted, the game isn't blackscreening. It's an error with the code somewhere.
Well looking at the code I see two things that might be causing it.
First remove:
Since you use PizzaSlice.iconIndex = ModLoader.AddOverride("/gui/items.png", "/Food/PizzaSlice.png");
Second Change your recipe code to this:
You already defined # as being Block.dirt, so there was no need to define it again as a different symbol, which I assume was the culprit.
if i remove the icon coords would it still show up? i placed the texture directly in the items image in the gui sub folder.
edit: i did wat you said and nothing happened!