summaryrefslogtreecommitdiff
path: root/caverealms_lite/config.lua
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2019-04-24 18:59:36 -0400
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2019-04-24 18:59:36 -0400
commita5eef1c5de77fa7770877802e66c3e1c53f9a0da (patch)
tree0f36e64a58e5f5bb7d95be6ae692f58f2ebfe483 /caverealms_lite/config.lua
parentdda854cf06f90a04a03844e19c4d4ad220e38fe4 (diff)
downloaddreambuilder_modpack-a5eef1c5de77fa7770877802e66c3e1c53f9a0da.tar
dreambuilder_modpack-a5eef1c5de77fa7770877802e66c3e1c53f9a0da.tar.gz
dreambuilder_modpack-a5eef1c5de77fa7770877802e66c3e1c53f9a0da.tar.bz2
dreambuilder_modpack-a5eef1c5de77fa7770877802e66c3e1c53f9a0da.tar.xz
dreambuilder_modpack-a5eef1c5de77fa7770877802e66c3e1c53f9a0da.zip
update castles, areas, homedecor, plantlife,
gloopblocks, hotbar, inspector, maptools, mesecons, moreblocks, moreores, technic, teleport_request, and worldedit switched to caverealms_lite (with minor fixes by me) switched to CWz's fork of player_textures The homedecor update brings in the big split, and will require you to re-enable all modpack components in order to avoid loss of content.
Diffstat (limited to 'caverealms_lite/config.lua')
-rw-r--r--caverealms_lite/config.lua53
1 files changed, 53 insertions, 0 deletions
diff --git a/caverealms_lite/config.lua b/caverealms_lite/config.lua
new file mode 100644
index 0000000..a4c9a0f
--- /dev/null
+++ b/caverealms_lite/config.lua
@@ -0,0 +1,53 @@
+local CONFIG_FILE_PREFIX = "caverealms."
+
+caverealms.config = {}
+
+-- This function based on kaeza/minetest-irc/config.lua and used under the
+-- terms of BSD 2-clause license.
+local function setting(stype, name, default)
+ local value
+ if stype == "bool" then
+ value = minetest.setting_getbool(CONFIG_FILE_PREFIX..name)
+ elseif stype == "string" then
+ value = minetest.setting_get(CONFIG_FILE_PREFIX..name)
+ elseif stype == "number" then
+ value = tonumber(minetest.setting_get(CONFIG_FILE_PREFIX..name))
+ end
+ if value == nil then
+ value = default
+ end
+ caverealms.config[name] = value
+end
+
+--generation settings
+setting("number", "ymin", -33000) --bottom realm limit
+setting("number", "ymax", -1500) --top realm limit
+setting("number", "tcave", 0.75) --cave threshold
+
+--decoration chances
+setting("number", "stagcha", 0.003) --chance of stalagmites
+setting("number", "stalcha", 0.003) --chance of stalactites
+
+setting("number", "h_lag", 8) --max height for stalagmites
+setting("number", "h_lac", 8) --...stalactites
+setting("number", "crystal", 0.0002) --chance of glow crystal formations
+setting("number", "h_cry", 8) --max height of glow crystals
+setting("number", "h_clac", 8) --max height of glow crystal stalactites
+
+setting("number", "gemcha", 0.03) --chance of small glow gems
+setting("number", "mushcha", 0.04) --chance of mushrooms
+setting("number", "myccha", 0.03) --chance of mycena mushrooms
+setting("number", "wormcha", 0.015) --chance of glow worms
+setting("number", "giantcha", 0.001) --chance of giant mushrooms
+setting("number", "icicha", 0.035) --chance of icicles
+setting("number", "flacha", 0.04) --chance of constant flames
+
+--realm limits for Dungeon Masters' Lair
+setting("number", "dm_top", -14000) --upper limit
+setting("number", "dm_bot", -16000) --lower limit
+
+--should DMs spawn in DM Lair?
+setting("bool", "dm_spawn", true)
+
+--Deep cave settings
+setting("number", "deep_cave", -7000) -- upper limit