data.raw["type"]["name"].the_thing_you_want_to_change = new_value
data.raw["item"]["iron-chest"].icon = "__newicons__/graphics/icons/iron-chest.png"
for _, v in pairs(data.raw["item"]) do
v.icon = string.gsub(v.icon, "__oldmod__", "__newmod__")
prg wrote:If you put that code in data-final-fixes.lua it'll hopefully run last so the changes will stick around. (If another mod is doing something similar in data-final-fixes.lua and overwriting your changes, add a dependency to it so your mod will be loaded last.)
Users browsing this forum: apriori, Bing [Bot] and 4 guests