Jump to content

Recommended Posts

It's quite simple. An example taken out of my mod:

AddRecipe("potions_station_item", {Ingredient("boards", 4), Ingredient("transistor", 2), Ingredient("cutstone", 2)}, RECIPETABS.SCIENCE, TECH.SCIENCE_ONE, nil, nil, nil, nil, "scientist","images/inventoryimages/potions_station_item.xml")

Here's a little breakdown of each component:

AddRecipe(
"youritem", -- Prefab to be crafted.
{Ingredient("item1", 1), Ingredient("item2", 1), Ingredient("item3", 1)}, -- Ingredients.
RECIPETABS.WAR, -- Tab.
TECH.NONE, -- Tech.
nil, -- Extra data. Not needed.
nil, -- Minimal spacing. Not needed.
nil, -- Wether or not you can Prototype the recipe. Prototyped recipes can be crafted anytime after crafted. (true or false)
nil, -- The amount of the item that is given upon crafting.
"customtag", -- THIS is what we are looking for: the tag your character needs to have in order to see the recipe.
)

See the "customtag" written there? You need to replace it with a Tag your character has.

Edited by HarryPPP

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