orlando gonzalez Posted May 22, 2021 Share Posted May 22, 2021 When I create recipes in my local master_postinit = function(inst) I use the following code Recipe("redlantern", {Ingredient("rope", 1 ), Ingredient("twigs", 2 ), Ingredient("red_cap", 1), Ingredient("lightbulb", 1) }, RECIPETABS.SURVIVAL, {SCIENCE = 0}) STRINGS.RECIPE_DESC.REDLANTERN = "Linterna Improvisada" Recipe("bugnet", {Ingredient("rope", 1 ), Ingredient("twigs", 2 ), Ingredient("Silk", 1) }, RECIPETABS.SURVIVAL, {SCIENCE = 0}) STRINGS.RECIPE_DESC.BUGNET = "Un Red Para Insectos Simple!" Recipe("honey", {Ingredient("petals_evil", 1 ), Ingredient("petals", 2 )}, RECIPETABS.FARM, {SCIENCE = 2}) STRINGS.RECIPE_DESC.HONEY = "Sucedanio de miel!" When I start my server, I choose my character and enter my recipes, they are working fine, but if I put caverns in my server configuration, I don't see any recipes created, does anyone know what I can do? I just want to modify the creation of recipes for my character of those elements. Link to comment https://forums.kleientertainment.com/forums/topic/130175-i-need-help-with-recipes-for-my-character/ Share on other sites More sharing options...
DecDuck Posted May 23, 2021 Share Posted May 23, 2021 Couple things: - Recipes should be defined in modmain.lua, not character - Use AddRecipe instead of Recipe - Use tags to restrict crafting Link to comment https://forums.kleientertainment.com/forums/topic/130175-i-need-help-with-recipes-for-my-character/#findComment-1462835 Share on other sites More sharing options...
orlando gonzalez Posted May 24, 2021 Author Share Posted May 24, 2021 13 hours ago, decduck3 said: Un par de cosas: - Las recetas deben definirse en modmain.lua, no en caracteres - Utilice AddRecipe en lugar de Recipe - Use etiquetas para restringir la elaboración AddRecipe("honey", {Ingredient("petals_evil", 1 ), Ingredient("petals", 2 )}, RECIPETABS.SURVIVAL, {SCIENCE = 0}) close the client can you give me a basic example to restrict the recipe Link to comment https://forums.kleientertainment.com/forums/topic/130175-i-need-help-with-recipes-for-my-character/#findComment-1463012 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