I want a planet with only desert biome, no water and not a single tree. Can i force this? Where should i start?
i don't find https://forums.factorio.com/wiki/inde ... cification helpful.
thanks.
mapgeneration override
Re: mapgeneration override
Don't think it's possible to tell the map generator to do this for you, but you can kludge something together yourself like this:safan wrote:I want a planet with only desert biome, no water and not a single tree. Can i force this? Where should i start?
i don't find https://forums.factorio.com/wiki/inde ... cification helpful.
thanks.
Code: Select all
require "defines"
script.on_event(defines.events.on_chunk_generated, function(event)
local tiles = {}
for x = event.area.left_top.x, event.area.right_bottom.x do
for y = event.area.left_top.y, event.area.right_bottom.y do
table.insert(tiles, {name="sand", position={x, y}})
end
end
event.surface.set_tiles(tiles)
for _, tree in pairs(event.surface.find_entities_filtered{area=event.area, type="tree"}) do
tree.destroy()
end
end)
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!