As example:
Factorio\data\base\prototypes\recipe\fluid-recipe.lua
Code: Select all
{
type = "recipe",
name = "sulfuric-acid",
category = "chemistry",
energy_required = 1,
enabled = false,
ingredients =
{
{type="item", name="sulfur", amount=5},
{type="item", name="iron-plate", amount=1},
{type="fluid", name="water", amount=100}
},
results=
{
{type="fluid", name="sulfuric-acid", amount=50}
},
subgroup = "fluid-recipes",
crafting_machine_tint =
{
primary = {r = 0.875, g = 0.735, b = 0.000, a = 0.000}, -- #dfbb0000
secondary = {r = 0.103, g = 0.940, b = 0.000, a = 0.000}, -- #1aef0000
tertiary = {r = 0.564, g = 0.795, b = 0.000, a = 0.000}, -- #8fca0000
}
}
or
Code: Select all
{
type = "recipe",
name = "plastic-bar",
category = "chemistry",
energy_required = 1,
enabled = false,
ingredients =
{
{type="fluid", name="petroleum-gas", amount=20},
{type="item", name="coal", amount=1}
},
results=
{
{type="item", name="plastic-bar", amount=2}
},
crafting_machine_tint =
{
primary = {r = 0.498, g = 0.498, b = 0.498, a = 0.000}, -- #7f7f7f00
secondary = {r = 0.400, g = 0.400, b = 0.400, a = 0.000}, -- #66666600
tertiary = {r = 0.305, g = 0.305, b = 0.305, a = 0.000}, -- #4d4d4d00
}
}
Just make new mod, info.json, then in data.lua add new code

For better modding you are need
https://notepad-plus-plus.org/