Can someone make these recipes for my own personal use?
1. coal compression
unlocked by default on map start
2 coal = 1 stone
0.5 crafting time
----------------------------------------------------
2. Advanced coal compression
unlocked by advanced material processing
4 coal + 2 stone = 4 stone + 1 coal
1 crafting time
2 new recipe suggestions
2 new recipe suggestions
Last edited by milkyman on Tue Oct 15, 2019 8:14 am, edited 1 time in total.
Re: 2 new recipe suggestions
Why not 4c+2s => 4s+1c for one second? The half of item looks as too few.
Re: 2 new recipe suggestions
The first recipe is really easy, just copy the info.json from any mod to the new folder and change it, then put this code to the data.lua (use Notepad++ for it):
Code: Select all
date:extend({
{
type="recipe",
name="coal-to-ore-compression",
ingredients={{"coal", 2}},
result="stone"
}
})
Re: 2 new recipe suggestions
The code of asked mod:
Code: Select all
data:extend ({
{
type = "recipe",
name = "coal-to-stone-compression",
icons = {
{icon = "__core__/graphics/editor-selection.png", icon_size = 32}, -- why I cant without it?
{icon = "__base__/graphics/icons/coal.png", scale = 0.6, shift = {-8, 0}, icon_size = 32},
{icon = "__base__/graphics/icons/stone.png", scale = 0.6, shift = { 8, 0}, icon_size = 32}
},
-- icon_size = 32,
subgroup = "raw-material",
order = "c-c-a",
category = "advanced-crafting", -- in the assembling machine only, not for player crafting
enabled = true,
energy_required = 0.5, -- it's time in seconds
ingredients = {{"coal", 2}},
result = "stone"
},
{
type = "recipe",
name = "advanced-coal-to-stone-compression",
icons = {
{icon = "__core__/graphics/editor-selection.png", icon_size = 32}, -- why I cant without it?
{icon = "__base__/graphics/icons/coal.png", scale = 0.6, shift = {-8, 0}, icon_size = 32},
{icon = "__base__/graphics/icons/stone.png", scale = 0.6, shift = { 8, -8}, icon_size = 32},
{icon = "__base__/graphics/icons/stone.png", scale = 0.6, shift = { 8, 8}, icon_size = 32},
},
subgroup = "raw-material",
order = "c-c-b",
category = "advanced-crafting",
enabled = false, -- needs technology if false
energy_required = 1, -- it's time in seconds
ingredients = {{"coal", 4}, {"stone", 2}},
results = {{"coal", 1}, {"stone", 4}}
}
})
table.insert(data.raw.technology["advanced-material-processing"].effects, {type = "unlock-recipe", recipe = "advanced-coal-to-stone-compression"})
- Attachments
-
- coal-to-stone-compression_0.0.1.zip
- (1.88 KiB) Downloaded 81 times
-
- 2019-10-16T21_12_54-Factorio 0.17.69.png (67.91 KiB) Viewed 1546 times
-
- 2019-10-16T21_13_06-Factorio 0.17.69.png (77.94 KiB) Viewed 1546 times
Re: 2 new recipe suggestions
thank you so much for this i can't believe you actually made it!