Jump to content

Recommended Posts

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.

Link to comment
Share on other sites

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
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...