I'm trying to adapt an already existing mod, "endless resources" to transform only ore tiles that are above a value (let's say 3000) to infinite like oil. The code of the mod is fairly simple, it transform anything that isn't infinite (everything except oil) to an infinite type resource :
Code: Select all
for k, v in pairs(data.raw.resource) do
if not data.raw.resource[k].infinite then
data.raw.resource[k].infinite = true
data.raw.resource[k].minimum = 175
data.raw.resource[k].normal = 350
end
end