Jump to content

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

I can help you more when I'm home and have access to game files, but check out Wickerbottom's lua file, she has her own custom crafting tab for books. I'm sure within that it references whatever other prefab/image files you might need to make as well. 

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
×
  • Create New...