I have gone crazy in trying to disable caves and dungeons for the mapgen at subgame-level.
I want to make a perfectly flat map without all the mapgen garbage floating around.
And it MUST be the “flat” mapgen because the user should be able to select it from the main menu.
I tried to clean minetest.conf, just to make sure it doesn't conflict.
I tried this:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.set_mapgen_setting("mg_flags", "nocaves,nodungeons,nodecorations")
But it did nothing. When I create a new flat world, caves, dungeons and decorations still appear.
The file “map_meta.txt” showed the default flags instead of the flags I chose.
What's the point of minetest.set_mapgen_setting if I can't even use it to set the most basic mapgen flags? :-(
Yes, I'm in a bad mood.
EDIT:
I also tried editing the subgame-level minetest.conf.
When I add “mg_flags=nocaves,nodungeons,nodecorations”, it works for “flat”.
BUT this also removes all caves and decorations from the other mapgens, so having a minetest.conf at subgame level is also not helping. :O