Changing all resources to result uranium

Place to get help with not working mods / modding interface.
Post Reply
MathieuG89
Burner Inserter
Burner Inserter
Posts: 12
Joined: Mon Apr 27, 2020 7:02 pm
Contact:

Changing all resources to result uranium

Post by MathieuG89 »

Can't wrap my head around this one

Code: Select all

for i, resource in pairs(data.raw.resource) do
    resource.result = "uranium-ore"
  end
 
Any help would be greatly appreciated, thanks !

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Changing all resources to result uranium

Post by DaveMcW »

Code: Select all

for i, resource in pairs(data.raw.resource) do
  resource.minable.result = "uranium-ore"
end

Post Reply

Return to “Modding help”