Posted December 12, 201212 yr So When you read about the problem im having, many of you who know what they are doing are gonna be like "Dude, gtfo and go learn Java before you attempt to mod" I've looked up tutorials(Generic on the wiki is what im specifically having problems with) so I copied it(because Im not very familiar with modding Minecraft(I know some Java but Im not in College Majoring in it or anything)) and Im having problems.(Spiler for you all) GameRegistry.addRecipe(new ItemStack(Item.myFirstItem), "iii", " s ", " s " 'i', myFirstItemStack, 's', stickStack Im getting errors on the 'i', myFirstItemStack, 's', stickStack part. It Says they cannot be resolved to a variable(So i obviously need a variable) but Im very dumb so Im confused. Feel free to yell at me and all for not knowing Java. I accept that. I learn by doing. reading stuff on how to do it doesnt work for me. Well if you can please help. Thanks.
December 12, 201212 yr You have to tell forge what myFirstItemStack and sitckStack are. You could change stickStack to Item.stick and define myFirstItemStack like this: ItemStack myFirstItemStack = new ItemStack(Item.WhateverItemThisIs); I think there might be a better way to do this because I to am not that experienced
December 12, 201212 yr Author I messed up lol, I meant for the 'i', myFirstItem to be myFirstBlock. So What do I do then, and could I do Block.myFirstBlock ?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.