Jump to content

I need help with recipes for my character


Recommended Posts

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
Share on other sites

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
Share on other sites

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
 Share

×
  • Create New...