Posted February 8, 201312 yr How would I go about having an item being used in a recipe, but so that I get to keep the item after the crafting. Example: Buckets in cake recipes. If you found this post helpful, please take your time to give me a "Thank You".
February 8, 201312 yr Author Have a look at setContainerItem in the Item Class. So if I set it as the item it should give me back the item after crafting? If you found this post helpful, please take your time to give me a "Thank You".
February 8, 201312 yr Author So if I set it as the item it should give me back the item after crafting? Yup. I just tried it, it didn't work: metalConvert = new portableMagik(metalID).setMaxStackSize(1).setCreativeTab(MagikTab).setIconIndex(0).setItemName("MetalConvert").setContainerItem(metalConvert); So basically it should turn iron into copper, but when I craft with it, it uses it up. If you found this post helpful, please take your time to give me a "Thank You".
February 8, 201312 yr Author You need to create your Item first of course. At the point where you do setContainerItem(metalConvert) metalConvert is still null (= no containerItem). So inside my item class? EDIT: Nevermind, just put it after the declaration like so: metalConvert.setContainerItem(metalConvert); If you found this post helpful, please take your time to give me a "Thank You".
February 8, 201312 yr Author You need to create your Item first of course. At the point where you do setContainerItem(metalConvert) metalConvert is still null (= no containerItem). Ok, but it disappears every time I craft something. Is there a way how to prevent it from going into my inventory every time? Example: The minium stone from EE3. If you found this post helpful, please take your time to give me a "Thank You".
February 8, 201312 yr The EE3 source is open to everyone, so you could check how they do it inn EE by going to their github If you guys dont get it.. then well ya.. try harder...
February 8, 201312 yr Author The EE3 source is open to everyone, so you could check how they do it inn EE by going to their github I did, I couldn't find it. If you found this post helpful, please take your time to give me a "Thank You".
February 8, 201312 yr Author Bump If you found this post helpful, please take your time to give me a "Thank You".
February 8, 201312 yr I dont know how or where did you look but you definetly missed it, I found this in EE3 code just in 5 mins (that includes time of testing it) https://github.com/pahimar/Equivalent-Exchange-3/blob/master/ee3_common/com/pahimar/ee3/item/ItemMiniumStone.java Look at line 65 and 52. ~I was here~
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.