Posted December 28, 201410 yr I'm trying to use flint as part of a recipie, but I can't find the documentation on how to use an item not in the ore dictionary. The current recipie I have is as follows GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModItems.adaptiveIgnitorBlack), "dfi", 'd', "dyeBlack", 'f', "ItemFlint", 'i', "ingotIron"));
December 28, 201410 yr Author Ah, thanks. I'm just starting modding, so I didn't know how to call non oreDic items in any recipie.
December 28, 201410 yr Author And it still breaks. I'm not missing something with how I'm using the dyes, am I? GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModItems.adaptiveIgnitorBlack), "dfi", 'd', "dyeBlack", 'f', "Items.flint", 'i', "ingotIron"));
December 28, 201410 yr Author Ah, gotcha. This is where the whole "first time modder" bit really sucks. and it still doesn't work. recipie is now GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModItems.adaptiveIgnitorBlack), "dfi", 'd', "dyeBlack", 'f', Items.flint, 'i', "ingotIron"));
December 28, 201410 yr Hi This is where the whole "first time modder" bit really sucks. yes, so true. Since I am still a newbie too, I don't know if I am right, but I currently use GameRegistry.addShapelessRecipe(ItemStack, Object... args) Where the itemStack the result is (metadata and quantity set) and the args-object is a so-called variable argument list, containing ItemStacks of ingredients (again, metadata and quantity sensitive). But all this code is at least for 1.7.10 and I do absolutely know nothing about 1.8... Hope this was helpful Sincerely -pick PS: http://www.wuppy29.com/minecraft/modding-tutorials/wuppys-minecraft-forge-modding-tutorials-for-1-7-creating-your-own-mod-standard-setup/#sthash.cinJYSQ8.dpbs - A link to some really good beginners tutorials, they helped me a lot. Since English is not my mother tongue, my sentences may are confusing. I'm coding java for a long time now - just MC and forge stop me sometimes.
December 28, 201410 yr Author I was being stupid. You are using the format for a Shaped recipe, but are using ShapelessOreRecipe. That makes no sense. Oh, yeah, that could be a problem. Fixed it, thanks
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.