However for some reason I can't figure out it won't work for certain additional mod ores. Seems to work for bobs mods but not 5DIM.
Code: Select all
multiplier = 10
for _, res in pairs(data.raw.resource) do
if not res.category --crude-oil has "basic-fluid" here, for ores this is nil
and res.minable then
if res.minable.result then
if res.minable.count then
res.minable.count = res.minable.count * multiplier
else
res.minable.count = multiplier
end
elseif res.minable.results then
for _, result in pairs(res.minable.results) do
result.amount = result.amount * multiplier
end
end
end
end