Page 1 of 1

import buildings

PostPosted: Sun Nov 02, 2014 22:49
by Semmett9
i was wondering is it possible to spawn buildings into the world randomly such as a house or a farm. know that the are some mods which kind of do this, but im more intrested of adding it randomly to the world or only spawning in the plains biome,

Re: import buildings

PostPosted: Sun Nov 02, 2014 23:25
by Sokomine
Semmett9 wrote:i was wondering is it possible to spawn buildings into the world randomly such as a house or a farm. know that the are some mods which kind of do this, but im more intrested of adding it randomly to the world or only spawning in the plains biome,

My villages mod does that. The newest version also supports individual buildings again (as random_buildings did already). Paramat wrote some nice code which does very well looking terrain blend for such lone houses - better than what I managed so far. That'll be the next step in the mod :-) Without terrain blend, spawned buildings look very artificial in a Minetest world because the landscape is so small-scale. I hope to be able to release the mod soon. It can already be found on github.

Re: import buildings

PostPosted: Wed Nov 05, 2014 10:18
by Semmett9
ahh thanks, another thing, how do you load the building into the mod. is there any tools which is used to do this?

Re: import buildings

PostPosted: Thu Nov 06, 2014 19:19
by Sokomine
Semmett9 wrote:ahh thanks, another thing, how do you load the building into the mod. is there any tools which is used to do this?

The terrain blending paramat did for me looks very good. Once I manage to integrate that into the mg_villages mod, I'll add a function so that buildings can easily be added from other mods. For now, editing buildings.lua is required.
Perhaps we can even have paramats blending code plus some house placement code (mixture of code from nore and me; needs cleanup) as a standalone mod, kind of like an api for spawning houses in general.