i_i, I really love that idea, but that is something the campfire mod would need to enable.
If the campfire mod is active, you could actually remove data.raw["assembling-machine"]["camp-fire"].fixed_recipe. Then make a copy of your cooked-fish recipes, with some additions/changes:
{
type = "recipe",
-- New name
name = "cooked-fish-recipe-campfire",
-- Changed category
category = "burning",
energy_required = 16,
enabled = true,
-- Only usable in machines
hide_from_player_crafting = true,
ingredients = {{"raw-fish", 1}},
-- Results instead of result
results = {
{
type = "item",
name = "cooked-fish",
amount = 1,
},
{
type = "item",
name = "coal",
amount = 1,
probability = 0.01,
},
},
-- Icon and subgroup depend on this
main_product = "cooked-fish"
}
Didn't test this, but that's how I would go about it. :-D