Jump to content

Add custom tech tree/crafting tab


Recommended Posts

Basically it's just like what it says - how can I add a custom recipe tab in which I can store custom recipes for normally uncraftable items? I only need to know how to add a custom tab (and it's picture (probably in .tex)) and I already know about adding custom recipes. 

 

Any ideas about adding a custom tab and it's picture through a modmain.lua file? This is what I've gotten to so far and it obviously doesn't work:

 

 

 

STRINGS = GLOBAL.STRINGS
RECIPETABS = GLOBAL.RECIPETABS
Recipe = GLOBAL.Recipe
Ingredient = GLOBAL.Ingredient
TECH = GLOBAL.TECH
 
CUSTOM_RECIPETABS =
{
    CUSTOM = { str = "CUSTOM", sort = 11, icon = "rsz_12th_doc.tex" },
}
 
STRINGS.RECIPE_DESC.SILK = "A spidery silk for testing"
 
Recipe( "silk", { Ingredient("cutgrass", 1), Ingredient("twigs", 1) }, RECIPETABS.CUSTOM, TECH.NONE )
Edited by kik4444
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...