1
Help with my food mod
Try changing Cupcake.iconIndex to Cupcake.setIconIndex
Create an account or sign in to comment.
14
1
if you need to do something like this uses this http://yaml-online-parser.appspot.com/
1
you dont have the format for the recipe eg (xxx)(sms)(xxx) so that you have
(xxx)
(sms)
(xxx)
now im not 100% on the code its been a long time
(xxx)
(sms)
(xxx)
now im not 100% on the code its been a long time
1
ModLoader.AddRecipe(new ItemStack(Cupcake, 1), new Object[]{
"CMS", Character.valueOf('C'), new ItemStack(Item.sugar, 1, 3), Character.valueOf('M'), Item.bucketMilk, Character.valueOf('S'), Item.sugar
});
This is messed up. You put new ItemStack(Item.sugar, 1, 3),
instead of this. Item.sugar,
Fix that and it should work.1
Conquerjohn111898ConquerHeres what happens when i recompile http://i42.tinypic.com/2cyi0ih.png
Ok. You should have this:
Cupcake.setIconIndex(ModLoader.addOverride("/gui/items.png", "/Cupcake/cupcake.png"));
I think that is the error. I believe the can't find Start error thing was when you tried to run startclient, right?
Yes minecraft didnt crash and no errors, but the recipie doesnt work
Its
XXX
SMS
XXX
right?
S = suger
m = milk
x = empty
It should be that recipe.
1
ConquerHeres what happens when i recompile http://i42.tinypic.com/2cyi0ih.png
Ok. You should have this:
Cupcake.setIconIndex(ModLoader.addOverride("/gui/items.png", "/Cupcake/cupcake.png"));
I think that is the error. I believe the can't find Start error thing was when you tried to run startclient, right?
1
Conquersame thing happened, it only happens when i put my mod in, why?
That's odd. What file are you running where it comes up with this?
1
Conquerjohn111898Conquerhttp://i40.tinypic.com/25oxyc2.pngI get that when my mods dont work not a error report?
That looks like an error with MCP then, not the mod.
ok ill get a fresh mcp and do all that stuff and try again
Ok, tell me how it goes.
1
Conquerhttp://i40.tinypic.com/25oxyc2.pngI get that when my mods dont work not a error report?
That looks like an error with MCP then, not the mod.
1
Wouldn't it be : return "Cupcake for 1.8.1"; not return "BeefSandwich for 1.8.1";
1
That just is what appears in the error report if MC crashes I think.
1
Conquerumm... i have no idea where that link sends me, some other minecraft site
can we stay on pmc like on pmc chat or pms?
If you want to, although it would probably be a bit easier using the live support on the other website. There isn't private chat on PMC.
1
Would you mind going to http://www.mc-servers.org and then going to Live Chat? I can chat with you there and give you some examples from one of my mods.
1
By the way, what errors are you getting?
1
Conquerjohn111898Try changing Cupcake.iconIndex to Cupcake.setIconIndex
Nope that didnt work but thanks for trying any other things you can spot?
Can you use the code (
[code] [/code]
) to make it easier to read?