import buildings

User avatar
Semmett9
Member
 
Posts: 149
Joined: Sun Oct 07, 2012 13:48

import buildings

by Semmett9 » Sun Nov 02, 2014 22:49

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,
 

Sokomine
Member
 
Posts: 2980
Joined: Sun Sep 09, 2012 17:31

Re: import buildings

by Sokomine » Sun Nov 02, 2014 23:25

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.
A list of my mods can be found here.
 

User avatar
Semmett9
Member
 
Posts: 149
Joined: Sun Oct 07, 2012 13:48

Re: import buildings

by Semmett9 » Wed Nov 05, 2014 10:18

ahh thanks, another thing, how do you load the building into the mod. is there any tools which is used to do this?
 

Sokomine
Member
 
Posts: 2980
Joined: Sun Sep 09, 2012 17:31

Re: import buildings

by Sokomine » Thu Nov 06, 2014 19:19

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.
A list of my mods can be found here.
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 5 guests

cron