Jump to content

Recommended Posts

It is posible to add recipes only to a preset (level)?
 

The only function that i have found is:

 

AddLevelPreInit("MyPresetLevel", LevelInit)

local function LevelInit(level)

   ...

    Recipe("MY_receipe", {Ingredient("iron", 2), Ingredient("twigs", 1)}, RECIPETABS.ARCHAEOLOGY, TECH.SCIENCE_ONE)

 .....

end

But It is not working,It seems that you can only put in there code that alter the level generation?

Edited by hectorzx

My guess is that recipes cannot be added before the recipe system has been added during the world creation. If it is possible to do a DoTaskInTime call, you can wrap your Recipe call in that, and delay it a few seconds until the world has been loaded.

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