Berany Posted February 14, 2020 Share Posted February 14, 2020 (edited) Hi. I've been visiting a lot lately. Do you know how to make two kinds of items with one recipe? I'm making a recipe for my mod. For example, there is a recipe that requires :twigs, spear, bluegem, redgem. When collect all the ingredients in this recipe, can get both ice staff and fire staff. I'm not sure if it's possible, but let me know if it's possible. If this is impossible, tell me it's impossible. I'm sorry to asking too much help. But thanks to the help I received here, I think I'll be able to complete my mod soon. Thank you, everyone. Edited February 14, 2020 by Berany Link to comment Share on other sites More sharing options...
Yakuzashi Posted February 14, 2020 Share Posted February 14, 2020 Hi. I am not sure if it's even possible to assign one recipe to two prefabs. Anyway, there's stuff that you need to paste into modmain. It should be functional, but in game there will pop 2 icons in crafting tab for each variant. local Ingredient = GLOBAL.Ingredient local RECIPETABS = GLOBAL.RECIPETABS local TECH = GLOBAL.TECH AddRecipe("firestaff", {Ingredient("twigs", 1), Ingredient("spear", 1),Ingredient("bluegem", 1), Ingredient("redgem", 1)}, RECIPETABS.MAGIC, TECH.MAGIC_TWO, nil, nil, nil, nil) AddRecipe("icestaff", {Ingredient("twigs", 1), Ingredient("spear", 1),Ingredient("bluegem", 1), Ingredient("redgem", 1)}, RECIPETABS.MAGIC, TECH.MAGIC_TWO, nil, nil, nil, nil) 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now