Multisurface promethium plate recipe


Mod that overhauls promethium science in order to connect all planets with single recipe chain

Internal
8 hours ago
2.0
0
Factorio: Space Age Icon Space Age Mod
Owner:
Talandar99
Source:
https://github.com/Talandar99/multi_s...
Homepage:
N/A
License:
GNU GPLv3
Created:
8 hours ago
Latest Version:
0.1.0 (8 hours ago)
Factorio version:
2.0
Downloaded by:
0 users

For modders

In order to add your own recipe to the chain just define item and recipe.
- you have to add special field (msppr) to recipe in order for it to be properly added to chain
- recipe should be surface locked
- recipe should contain low output number
- amount number from msppr field will set input and output for recipe
- you can adjust your recipe order in chain wiith recipe_chain_order field
- define your recipe in data.lua.
- in case you are making overhaul/modpack or want to adjust order or recipes you can do it in data-updates.lua
- final chain in build in data-final-fixes.lua so I kindly ask to apply your changes before

Must have fields

msppr = {
    result = { type = "item", name = "msppr-fulgora", amount = 1 },
    recipe_chain_order = "fulgora",
},
results = { { type = "item", name = "msppr-fulgora", amount = 1 } },

Minimal working example

data:extend({
    {
        type = "item",
        name = "msppr-nauvis",
        icon = "__multi_surface_promethium_plate_recipe__/graphics/msppr-nauvis.png",
        subgroup = "msppr",
        order = "d[promethium]-r[nauvis]",
        inventory_move_sound = item_sounds.sulfur_inventory_move,
        pick_sound = item_sounds.resource_inventory_pickup,
        drop_sound = item_sounds.sulfur_inventory_move,
        stack_size = 100,
        weight = 1 * kg,
        random_tint_color = item_tints.ice_blue,
    },

    {
        type = "recipe",
        name = "msppr-nauvis",
        subgroup = "science-pack",
        category = "centrifuging",
        surface_conditions = {
            {
                property = "pressure",
                min = 1000,
                max = 1000,
            },
        },
        enabled = false,
        ingredients = {
            { type = "item", name = "tree-seed", amount = 10 },
            { type = "item", name = "uranium-235", amount = 3 },
            { type = "item", name = "biter-egg", amount = 1 },
        },
        energy_required = 10,
        msppr = {
            result = { type = "item", name = "msppr-nauvis", amount = 1 },
            recipe_chain_order = "nauvis",
        },
        results = { { type = "item", name = "msppr-nauvis", amount = 1 } },
        allow_productivity = false,
        auto_recycle = false,
    },
})