1
0
Fork 0

Make overworld_min configurable

lower_ow_mapgen
GNU Hacker 2022-10-06 07:25:16 +02:00 committed by cora
parent 1c09490ba3
commit 633d7a2fe1
5 changed files with 14 additions and 10 deletions

View File

@ -101,8 +101,10 @@ if not superflat and not singlenode then
]]
-- Overworld
local mg_overworld_min_default = -128
mcl_vars.mg_overworld_min_old = -62
mcl_vars.mg_overworld_min = -128
mcl_vars.mg_overworld_min = tonumber(minetest.settings:get("mcl_overworld_min")) or mg_overworld_min_default
mcl_vars.mg_overworld_max_official = mcl_vars.mg_overworld_min + minecraft_height_limit
mcl_vars.mg_bedrock_overworld_min = mcl_vars.mg_overworld_min
mcl_vars.mg_bedrock_overworld_max = mcl_vars.mg_bedrock_overworld_min + 4

View File

@ -1095,7 +1095,6 @@ local function register_biomes()
_mcl_palette_index = 22,
})
-- Savanna
minetest.register_biome({
name = "Savanna",

View File

@ -49,7 +49,7 @@ local function init_strongholds()
if superflat then
y = mcl_vars.mg_bedrock_overworld_max + 3
else
y = pr:next(mcl_vars.mg_bedrock_overworld_max+1, mcl_vars.mg_overworld_min+48)
y = pr:next(-50, -30)
end
local pos = { x = math.cos(angle) * dist, y = y, z = math.sin(angle) * dist }
pos = vector.round(pos)

View File

@ -136,6 +136,9 @@ mcl_default_shadow_intensity (Default shadow intensity) float 0.33 0.0 1.0
# See also: https://github.com/minetest/minetest/issues/95
mcl_translucent_ice (Translucent ice) bool false
# Overworld min deep (default: -128)
mcl_overworld_min (Overworld min deep) int -128 -25000 -62
# Whether to generate fallen logs in some biomes.
# They might not always look pretty and have strange overhangs.
mcl_generate_fallen_logs (Generate fallen logs) bool false