Hey!
I added support for Dectorios Grid concrete as well as a foundry recipe for it.
Dectorio recipe might break in the future when/if they add a foundry recipe themselves.
technologies.lua
-- add me
local dectorio_enabled = data.raw["recipe"]["dect-concrete-grid"] ~= nil
-- other stuff here
-- add me
if dectorio_enabled then
table.insert(effects_with_concrete, {
type = "change-recipe-productivity",
recipe = "dect-concrete-grid",
change = 0.25
}
)
end
new file recipes.lua in prototypes
local space_age_enabled = data.raw["recipe"]["concrete-from-molten-iron"] ~= nil
local dectorio_enabled = data.raw["recipe"]["dect-concrete-grid"] ~= nil
if dectorio_enabled and space_age_enabled then
data:extend(
{
{
-- Concrete grid
type = "recipe",
name = "dect-concrete-grid",
energy_required = 10,
enabled = false,
category = "crafting-with-fluid-or-metallurgy",
ingredients = {
{type = "item", name = "stone-brick", amount = 5},
{type = "item", name = "iron-ore", amount = 1},
{type = "fluid", name = "water", amount = 100}
},
results = {
{type = "item", name = "dect-concrete-grid", amount = 10},
}
}
}
)
end
data.lua
-- add me
require("prototypes.recipes")
info.json
-- change me
"dependencies": ["base >= 2.0", "? space-age", "?Dectorio >= 0.13.1"]