To the topic at hand, how do I add a result to a vanilla recipe? I have been working on a mod off and on for the past month. With summer here, I am dedicating more time to it. One thing I've managed to do is make it so furnaces yield two items. For example, magnetite ore smelts to iron plate and iron slag. Alas, I've hit a road block! How does one add to the results of an existing recipe? Here is what I have tried thus far...
Code: Select all
data.raw.recipe["stone-brick"].results = {{"stone-brick",2},{"rock-slag",1}}
Yes, my mod's name is "Slave to the System" in honor of a song I liked from the command and conquer series. The title also seems appropriate for the direction this mod is going.
Code: Select all
table.insert(data.raw["recipe"]["stone-brick"].results, {type="item", name="rock-slag", amount=1})
This probably falls into the category of GenFrogKing-doesn't-know-Lua... .
<.<
>.>
Help greatly appreciated!
Also, as a part two question, I want to know what sort of legal issues might arise with my mod. I'm making a compilation mod that revisits many of the mods I've mentioned and tweaks them to my liking. It also adds elements that are entirely my own creation. My questions are these: Do I need permission from the original mod developers to do this? What do I need to be aware of? Any sort of direction here would be appreciated! My goal here is not to take credit or step on any toes, but just to make what I believe will be an awesome extension of the Factorio experience; especially for those hardcore/masochistic players like me and my friends!