Below are some bugs/oddities I found while playing around with your latest code (@ 8b9749a).
-
Buildings sometimes spawn inside rivers (using the valleys mapgen, I suspect you're not using it. Probably easy to fix though.)



-
Mer settlements sometimes spawn inside caves below the sea.

-
Settlements get generated without a single building. In some cases it seems likely that no suitable surface was found, while in others there definitely should have been enough free space to build on.


-
Buildings sometimes spawn inside each other and/or have missing parts.



-
Settlements sometimes get cut off at mapblock borders (supposedly, didn't check the coordinates). This one could likely be an engine issue, because default trees are affected as well:

PS: Great work on this! I'd been thinking about doing something similar to this mod for a while, but you beat me to it 😄 Any reason you didn't make use of your excellent mapgen_helper lib for the rewrite?
Below are some bugs/oddities I found while playing around with your latest code (@ 8b9749a).
Buildings sometimes spawn inside rivers (using the



valleysmapgen, I suspect you're not using it. Probably easy to fix though.)Mer settlements sometimes spawn inside caves below the sea.

Settlements get generated without a single building. In some cases it seems likely that no suitable surface was found, while in others there definitely should have been enough free space to build on.


Buildings sometimes spawn inside each other and/or have missing parts.



Settlements sometimes get cut off at mapblock borders (supposedly, didn't check the coordinates). This one could likely be an engine issue, because default trees are affected as well:

PS: Great work on this! I'd been thinking about doing something similar to this mod for a while, but you beat me to it 😄 Any reason you didn't make use of your excellent
mapgen_helperlib for the rewrite?