Changing recipes in a bunch of k2sebz mods

Place to get help with not working mods / modding interface.
Post Reply
User avatar
Bong_Cat
Burner Inserter
Burner Inserter
Posts: 5
Joined: Wed Aug 16, 2023 4:57 pm
Contact:

Changing recipes in a bunch of k2sebz mods

Post by Bong_Cat »

Hello dudes!
Some time ago, I wanted to comprehensively change recipes and technologies in a bundle of k2+se+ mods, and I, however, unexpectedly ran into the fact that I can't just prescribe, for example,

Code: Select all

krastorio.add_ingredient("repair-pack", "stone-tablet", 5)
, since I'm from I call nil, which is logical, as there is no such function, but I can write an ingredient replacement

Code: Select all

krastorio.recipes.replaceIngredient("basic-tech-card", "wood", {"stone-tablet", 5})
Does anyone know how easy it is, without rewriting the recipe from scratch, to add to he has ingredients?

And i am so sory for my english :)

User avatar
Bong_Cat
Burner Inserter
Burner Inserter
Posts: 5
Joined: Wed Aug 16, 2023 4:57 pm
Contact:

Re: Changing recipes in a bunch of k2sebz mods

Post by Bong_Cat »

Okay, I find that K2 have own function addIngredient, and K2 recipes, I, now, can tweak)

Code: Select all

krastorio.recipes.replaceIngredient("basic-tech-card", "wood", {"stone-tablet", 5})

Post Reply

Return to “Modding help”