2016-04-01 20:02:19 -04:00
|
|
|
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
|
2019-06-07 00:54:45 -04:00
|
|
|
value = minetest.settings:get_bool(CONFIG_FILE_PREFIX..name)
|
2016-04-01 20:02:19 -04:00
|
|
|
elseif stype == "string" then
|
2019-06-07 00:54:45 -04:00
|
|
|
value = minetest.settings:get(CONFIG_FILE_PREFIX..name)
|
2016-04-01 20:02:19 -04:00
|
|
|
elseif stype == "number" then
|
2019-06-07 00:54:45 -04:00
|
|
|
value = tonumber(minetest.settings:get(CONFIG_FILE_PREFIX..name))
|
2016-04-01 20:02:19 -04:00
|
|
|
end
|
|
|
|
if value == nil then
|
|
|
|
value = default
|
|
|
|
end
|
|
|
|
caverealms.config[name] = value
|
|
|
|
end
|
|
|
|
|
|
|
|
--generation settings
|
|
|
|
setting("number", "ymin", -33000) --bottom realm limit
|
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.
2019-04-24 18:59:36 -04:00
|
|
|
setting("number", "ymax", -1500) --top realm limit
|
|
|
|
setting("number", "tcave", 0.75) --cave threshold
|
2016-04-01 20:02:19 -04:00
|
|
|
|
|
|
|
--decoration chances
|
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.
2019-04-24 18:59:36 -04:00
|
|
|
setting("number", "stagcha", 0.003) --chance of stalagmites
|
2016-04-01 20:02:19 -04:00
|
|
|
setting("number", "stalcha", 0.003) --chance of stalactites
|
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.
2019-04-24 18:59:36 -04:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2016-04-01 20:02:19 -04:00
|
|
|
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
|
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.
2019-04-24 18:59:36 -04:00
|
|
|
setting("number", "wormcha", 0.015) --chance of glow worms
|
2016-04-01 20:02:19 -04:00
|
|
|
setting("number", "giantcha", 0.001) --chance of giant mushrooms
|
|
|
|
setting("number", "icicha", 0.035) --chance of icicles
|
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.
2019-04-24 18:59:36 -04:00
|
|
|
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
|