Code: Select all
table.insert(data.raw["technology"]["advanced-electronics"].effects, { type = "unlock-recipe", recipe = "my-new-item"})
What is the best way, I guess somewhere in control.lua, to enable the recipe if the tech is already researched, so that the item will be immediately available for people who add the new mod and load an existing save that already has the tech researched?