Concrete productivity

by marc40k

Cheaper concrete!! Adds Research to increase concrete productivity by 25%. First level is unlocked with blue science, and the last level with space science. The mod also adds infinite research.

Tweaks
9 months ago
2.0
1.79K
Transportation Manufacturing

i Dectorio Compatibility

9 months ago
(updated 9 months ago)

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"]
9 months ago

I appreciate the edit; though I wasn't planning on adding new recipes, from external mods or otherwise. Feel free to post your edit as your own mod if you want!

9 months ago

Fair enough!

New response