--
-- Villages mod
--

village = {}

village.min_size = 2 -- Min chunk gen iterations
village.max_size = 6 -- Max chunk gen iterations

-- Closest distance a village will spawn from another village
village.min_spawn_dist = 512

-- Number of village chunks the village spreads at maxium, measured from
-- the starting chunk (the well)
village.max_village_spread = 6

local mapseed = minetest.get_mapgen_setting("seed")
village.pr = PseudoRandom(mapseed)

dofile(minetest.get_modpath("rp_village") .. "/names.lua")
dofile(minetest.get_modpath("rp_village") .. "/generate.lua")
dofile(minetest.get_modpath("rp_village") .. "/mapgen.lua")
dofile(minetest.get_modpath("rp_village") .. "/command.lua")
