Sign in to follow this  

Recommended Posts

NeddoFreddo    1078

Heyo,

I added a bunch of custom prefabs with recipes in a mod which also includes a bunch of structures. I can craft and place the structures just fine, but the item's recipes dont show up in the recipe tab. I've tried using a few different recipe formats but none of them seem to work.

So how do I get the recipes to work? Also I was kinda wondering how to add a crafting tab, I can get this to work in DS but not DST.

Share this post


Link to post
Share on other sites
Serpens    570

I also don't know, but I think the best would be to download any other mod that adds recipes and a new crafting tab , and take a look how it is done there ;)

Share this post


Link to post
Share on other sites
Joachim    351
On 8/2/2016 at 11:40 AM, NeddoFreddo said:

Heyo,

I added a bunch of custom prefabs with recipes in a mod which also includes a bunch of structures. I can craft and place the structures just fine, but the item's recipes dont show up in the recipe tab. I've tried using a few different recipe formats but none of them seem to work.

So how do I get the recipes to work? Also I was kinda wondering how to add a crafting tab, I can get this to work in DS but not DST.

Have you tried checking the bottom of the list? Item recipes are identical to structure recipes, except that item recipes have no placer defined.

Here is how I added a recipe of my own (I know that adding a Recipe like this is actually deprecated, but I am too lazy to change it):

local antidoteRecipe = Recipe(
	"antidote",
	{
		Ingredient("venom_gland", 1, "images/inventoryimages/venom_gland.xml"),
		Ingredient("phlegm", 1),
		Ingredient("mucus", 1, "images/inventoryimages/mucus.xml"),
	},
	RECIPETABS.SURVIVAL,
	TECH.SCIENCE_ONE
)
antidoteRecipe.atlas = GLOBAL.resolvefilepath("images/inventoryimages/antidote.xml")
STRINGS.RECIPE_DESC.ANTIDOTE = "Cures poison"

 

Edited by Joachim

Share this post


Link to post
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
Sign in to follow this