I am trying to modify some recipes in a mod I am playing. I have successfully edited the mod's files and made some recipe changes, but I would like to keep my changes separate from the actual mod.
Essentially, I am making a new mod that has a dependency on the old mod.
I made my info.json file, and make the folder structure to match the original mod. I added the lines that I changed into the corresponding .lua files, and while my mod actually does load, no changes have been made to recipes. I feel like I am missing a step. I haven't been able to find much information on modding an existing mod; Does anyone have any suggestions on where I could look, or what I am missing / doing wrong?
edit: adding some more info
One of the files I have changed is the prototypes / recipe / part / assembly.lua file. My file contains this:
Code: Select all
data.raw.recipe["flying-robot-frame"].energy_required = 10
data.raw.recipe["flying-robot-frame"].ingredients = {{"battery-2", 1}, {"control-2", 1}, {"forging-aluminum", 1}, {"motor-2", 1}}
Thank you.
Khad