2015-09-01 17:15:24 +02:00
|
|
|
--
|
|
|
|
-- Villages mod
|
|
|
|
-- By Kaadmy, for Pixture
|
|
|
|
--
|
|
|
|
|
|
|
|
village = {}
|
|
|
|
|
2017-05-16 21:05:17 +02:00
|
|
|
village.min_size = 2 -- Min chunk gen iterations
|
|
|
|
village.max_size = 6 -- Max chunk gen iterations
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-16 21:05:17 +02:00
|
|
|
-- Closest distance a village will spawn from another village
|
|
|
|
village.min_spawn_dist = 512
|
2015-10-02 22:58:37 +02:00
|
|
|
|
2019-03-20 15:01:03 +01:00
|
|
|
local mapseed = minetest.get_mapgen_setting("seed")
|
|
|
|
village.pr = PseudoRandom(mapseed)
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-16 21:05:17 +02:00
|
|
|
dofile(minetest.get_modpath("village") .. "/names.lua")
|
|
|
|
dofile(minetest.get_modpath("village") .. "/generate.lua")
|
|
|
|
dofile(minetest.get_modpath("village") .. "/mapgen.lua")
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-16 21:05:17 +02:00
|
|
|
default.log("mod:village", "loaded")
|