For example when I try and use something like.
Code: Select all
data.raw.recipe["piercing-shotgun-shell"].ingredients =
{
{"copper-plate", 10},
{"steel-plate", 5},
{"coal", 4}
}
Code: Select all
data.raw.recipe["piercing-shotgun-shell"].ingredients =
{
{"copper-plate", 10},
{"steel-plate", 5},
{"coal", 4}
}
Code: Select all
game.player.force.resetrecipes() --reloads all recipes
Code: Select all
game.player.force.recipes["piercing-shotgun-shell"].reload() --reloads specific recipe
FreeER wrote:That should work. The problem might be if you are loading a previously started game rather than starting a new one, in that case you have to tell Factorio to reload the recipes (either using the in-game console or a control.lua or a migration) withorCode: Select all
game.player.force.resetrecipes() --reloads all recipes
Code: Select all
game.player.force.recipes["piercing-shotgun-shell"].reload() --reloads specific recipe