Project: shed in the forest
My new project is called "shed in the forest". The target of this project is to find a way to place this shed in a forest without damaging the environment and on a flat place, not at a slope.

FOSS gamedev and creative worlds
https://forums.minetest.org/
propose_anchor(pos)burli wrote:Well, it is about the shed, and of course about other schematics. Think about a villages mod. They currently only work on a plane, but Minetest has no plains
bell07 wrote:I do not search for a flat place because I flat the place byself before build the building. So the method checks if a building at a given position is buildable and propose the best "y" value in this case. So your mod needs to check in random places. I am working currently (ok stopped since some weeks) on a builder-npc that runs in the world, check the places and build if possible.
That's right. And yet - the majority of human players flattens the area before starting a project.
Most MT surfaces aren't particulary building-friendly.
burli wrote:search for flat spots because I don't want to place schematics on places like this.
Even flatten and filling wouldn't help there
hajo wrote:How about counting spaces with air,water / dirt,sand,stone / trees,leaves,flowers
at the intended place the size of you schematic, as well as at lower height of that.
hajo wrote:And maybe have the bottom layer of your shed 'optional',
i.e. is allowed to merge with the current terrain --> automatic fill up/levelling.
Also, how about optional blocks of stairs/slabs, that only get placed
when the terrain on the next block is higher/lower ?
burli wrote:I want to search for flat spots because I don't want to place schematics on places like this. Even flatten and filling wouldn't help there
burli wrote:That's right, but I want to generate a map automatically and I don't want to modify the map to much
hajo wrote:If air is found at lower height, adjust the intended position downward
--> that should take care of that half-floating hut.
Allow a certain amount of stone,sand etc. to be removed/replaced,
and plants to be replaced completely.
burli wrote: I have deal with a lot of 'ignore' and I guess that doesn't work