this part works well at map generation and when new chunks are generated:
Code: Select all
Event.register(defines.events.on_chunk_generated, function(event)
-- create voids in new chunks
-- create custom ores in new chunks randomly
end)
Code: Select all
Event.register(defines.events.on_chunk_generated, function(event)
-- create voids in new chunks
-- create custom ores in new chunks randomly
end)
Code: Select all
if not RsoMod then
RsoMod = {}
end
Opsie sorry thats only mod marker.Trblz wrote: Fri Jan 04, 2019 12:30 am This is what i found in the RSO data.lua:
Code: Select all
if not RsoMod then RsoMod = {} end![]()
i'll check control.lua - at least it has more lines of code![]()
RSO doesn't destroy ores.Trblz wrote: Fri Jan 04, 2019 1:22 am From what I quickly found in RSO, it works as followed something like
for chunks not in starting area
{
destroy ores
create rso_ores
}
which works for me - haven't thought of this way of doing it before.
Code: Select all
function resetRichness(ent)
if ent and ent.autoplace then
ent.autoplace.richness_multiplier = 0
ent.autoplace.richness_base = 0
end
end