takoyamaa Posted March 25, 2018 Share Posted March 25, 2018 (edited) I had an idea of adding recipes to my mod, but I don't know how to add custom recipes to already existing tabs. I don't want to make a custom tab (to not clutter up the sidebar for them) and I was wondering if there's a way to do that. To be more specific, I'm planning on adding some dress items to the dress tab and want to know how to incorporate those into that tab. Any help would be appreciated. Edited March 25, 2018 by takoyamaa Link to comment https://forums.kleientertainment.com/forums/topic/89087-how-to-add-recipes-to-a-tab/ Share on other sites More sharing options...
K1NGT1GER609 Posted March 25, 2018 Share Posted March 25, 2018 (edited) Heres an example: PrefabFiles = { --reference "customitem", --your custom item local TECH = GLOBAL.TECH --get the tech level for unlocking the recipe local Ingredient = GLOBAL.Ingredient --get ingredients for recipes local RECIPETABS = GLOBAL.RECIPETABS --recipe tabs no further explanation local STRINGS = GLOBAL.STRINGS --putting info for your item local ACTIONS = GLOBAL.ACTIONS --make item local Action = GLOBAL.Action --ditto local customitem2 = Ingredient( "customitem2 ", 1 )--incase if you want a custom item as a ingredient for other recipes customitem2 .atlas = "images/inventoryimages/customitem2 .xml" --search path for ingredient local customitem_recipe = AddRecipe("customitem", { Ingredient("nightmarefuel", 1), customitem2 , Ingredient("goldnugget", 1)}, RECIPETABS.DRESS, {SCIENCE=0}, nil, nil, nil, nil, nil, "images/inventoryimages/customitem.xml") --customitem uses customitem2 as a ingredient, dress tab located, tech level none via instant access, nil for certain things but im lazy to explain, items xml or image searchpath. All that goes into the modmain, other wise read the code and notes as I try to make sense of most of the code and hopefully you catch where to make the edits. Edited March 25, 2018 by K1NGT1GER609 Link to comment https://forums.kleientertainment.com/forums/topic/89087-how-to-add-recipes-to-a-tab/#findComment-1019433 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