Jump to content

Recommended Posts

Similar to how you get 4 hay wall pieces when you craft them, I need to do the same with an item in a mod.

I tried looking at the walls' recipes, which is as follows.

Recipe("wall_hay_item", {
Ingredient("cutgrass", 4), 
Ingredient("twigs", 2) }, 
RECIPETABS.TOWN, 
TECH.SCIENCE_ONE,
nil,nil,nil,4)

So I followed suit with

AddRecipe("throwingknife", 
{
Ingredient("flint", 1)
},
shank_tab, --Custom Tab added
TECH.NONE, --No science needed
nil, 
nil, 
nil, 
nil,
4, --Should make 4 knives.
"shank",
"images/inventoryimages/throwingknife.xml", 
"throwingknife.tex")

It resulted in a crash that pretty much said "idk what that 4 is for"

I'm not too certain how else to do it.

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