Change a modded recipe with an another mod?
Posted: Sat Jul 04, 2020 12:36 pm
I am very new in modding and I want to make a mod which changes an another mod recipe if the mod is active.
I came up with this, but it gives an error in line 2.
Can anyone help?
Code: Select all
if (mods or script.active_mods)["LogisticTrainNetwork"] then
{
type = "recipe",
name = "logistic-train-stop",
enabled = true,
ingredients ={},
energy_required = 0.01,
result = "logistic-train-stop",
}
end
Can anyone help?