If so, how do I do that exactly in my mod ?
Thanks

Code: Select all
data.raw.wall.wall.fast_replaceable_group = "walls"
Code: Select all
"dependencies": ["base"]
Where do I put this code ?rk84 wrote:Code: Select all
data.raw.wall.wall.fast_replaceable_group = "walls"
data.raw 'commands' need to be in a prototype lua file, or as I always did, placed at the end of your data.lua (which typically calls require for all of the other prototypes).Nirahiel wrote:Where do I put this code ?rk84 wrote:Code: Select all
data.raw.wall.wall.fast_replaceable_group = "walls"
You can put it in data.lua file or any file that you require in data.lua. ExampleNirahiel wrote:Where do I put this code ?rk84 wrote:Code: Select all
data.raw.wall.wall.fast_replaceable_group = "walls"
Code: Select all
--data.lua
require("base-edits")
Code: Select all
--base-edits.lua
data.raw.wall.wall.fast_replaceable_group = "walls"