Goregonzola Posted November 20, 2020 Share Posted November 20, 2020 (edited) Hey! I'm using the following coding for a custom Light Bulb recipe (it's in my modmain.lua) : Spoiler AddRecipe("lightbulb", { Ingredient("spoiled_food", 1)}, RECIPETABS.REFINE, TECH.NONE,nil,nil,nil,nil,"moleperson") It requires one spoiled food to make it. The "moleperson" tag is used to make this recipe character specific. My question is: I would like this recipe to make not one, but five Light Bulbs. How can I achieve that? Bonus question: How can I add a description to this recipe (that appears in the crafting menu)? Edited November 20, 2020 by BillTheCipher Link to comment Share on other sites More sharing options...
penguin0616 Posted November 20, 2020 Share Posted November 20, 2020 @BillTheCipher That parameter before "moleperson" is the number of the crafted item to give. You can add recipe descriptions by putting them in STRINGS.RECIPE_DESC 1 Link to comment Share on other sites More sharing options...
Goregonzola Posted November 20, 2020 Author Share Posted November 20, 2020 @penguin0616 It works flawlessly. Hats off to you! Link to comment Share on other sites More sharing options...
penguin0616 Posted November 20, 2020 Share Posted November 20, 2020 @BillTheCipher If only I had a fancy top hat like you to take off as well... 2 Link to comment 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