1

Help with my food mod

john111898's Avatar john11189810/29/11 2:55 am
10/29/2011 3:50 am
getthetroll's Avatar getthetroll
Try changing Cupcake.iconIndex to Cupcake.setIconIndex
Posted by john111898's Avatar
john111898
Level 48 : Master Modder
29

Create an account or sign in to comment.

14

1
10/29/2011 3:50 am
Level 29 : Expert Blockhead
getthetroll
getthetroll's Avatar
if you need to do something like this uses this http://yaml-online-parser.appspot.com/
1
10/29/2011 3:48 am
Level 29 : Expert Blockhead
getthetroll
getthetroll's Avatar
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
1
10/29/2011 3:44 am
Level 48 : Master Modder
john111898
john111898's Avatar
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
10/29/2011 3:43 am
Level 48 : Master Modder
john111898
john111898's Avatar
Conquer
john111898
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?

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
10/29/2011 3:32 am
Level 48 : Master Modder
john111898
john111898's Avatar
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
10/29/2011 3:29 am
Level 48 : Master Modder
john111898
john111898's Avatar
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
10/29/2011 3:22 am
Level 48 : Master Modder
john111898
john111898's Avatar
Conquer
john111898
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.

ok ill get a fresh mcp and do all that stuff and try again

Ok, tell me how it goes.
1
10/29/2011 3:19 am
Level 48 : Master Modder
john111898
john111898's Avatar
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
10/29/2011 3:14 am
Level 22 : Expert Demolitionist
P0CKETLINT13
P0CKETLINT13's Avatar
Wouldn't it be : return "Cupcake for 1.8.1"; not return "BeefSandwich for 1.8.1";
1
10/29/2011 3:16 am
Level 48 : Master Modder
john111898
john111898's Avatar
That just is what appears in the error report if MC crashes I think.
1
10/29/2011 3:10 am
Level 48 : Master Modder
john111898
john111898's Avatar
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
10/29/2011 3:06 am
Level 48 : Master Modder
john111898
john111898's Avatar
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
10/29/2011 3:03 am
Level 48 : Master Modder
john111898
john111898's Avatar
By the way, what errors are you getting?
1
10/29/2011 3:03 am
Level 48 : Master Modder
john111898
john111898's Avatar
Conquer
john111898Try 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?
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome