Changing Item Picture
Changing Item Picture
I'd like to change the default base item picture (icon) to one that i have created without removing the original base picture. Is it possible to have a mod do so and if so, how?
Re: Changing Item Picture
In data-updates.lua:
Code: Select all
data.raw.item["iron-plate"].icon = "__yourmod__/graphics/new.png"
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
Re: Changing Item Picture
So here's what i have for the code to change the icon picture of the iron-axe. This is in the data-updates.lua.
data.raw.mining-tools["iron-axe"].icon = "__DSD__/graphics/axes/iron-axe.png"
But I get this error.
__DSD__/data-updates.lua:1: syntax error near '-'
Any ideas?
data.raw.mining-tools["iron-axe"].icon = "__DSD__/graphics/axes/iron-axe.png"
But I get this error.
__DSD__/data-updates.lua:1: syntax error near '-'
Any ideas?
Re: Changing Item Picture
You need to use the square bracket syntax for element names containing punctuation and such. Also, it's just mining-tool.
Code: Select all
data.raw["mining-tool"]["iron-axe"].icon = "__DSD__/graphics/axes/iron-axe.png"
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
Re: Changing Item Picture
Yes,
That worked.
Thanks prg
That worked.
Thanks prg