Not_Wilson Posted July 2, 2016 Share Posted July 2, 2016 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. Link to comment https://forums.kleientertainment.com/forums/topic/68615-using-crafting-to-get-a-couple-items/ Share on other sites More sharing options...
DarkXero Posted July 2, 2016 Share Posted July 2, 2016 Count the nils. Link to comment https://forums.kleientertainment.com/forums/topic/68615-using-crafting-to-get-a-couple-items/#findComment-789529 Share on other sites More sharing options...
Not_Wilson Posted July 2, 2016 Author Share Posted July 2, 2016 Oh darn. I feel so silly. Thank you! Link to comment https://forums.kleientertainment.com/forums/topic/68615-using-crafting-to-get-a-couple-items/#findComment-789543 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now