To address the casting recipe, this is run inside the above if-then:
if mods["space-age"] then
recipe = data.raw["recipe"]["casting-steel"]
recipe.ingredients = {
{
amount = 25, -- vanilla is 30
fluidbox_multiplier = 10,
name = "molten-iron",
type = "fluid"
},
{
amount = 1,
name = "carbon",
type = "item"
}
}
end