Make area above Nether roof Nether instead of Void

This commit is contained in:
Nils Dagsson Moskopp 2022-02-12 08:17:41 +01:00
parent 54f72a1457
commit 58b21fbe79
Signed by untrusted user who does not match committer: erle
GPG Key ID: A3BC671C35191080
2 changed files with 27 additions and 4 deletions

View File

@ -131,9 +131,9 @@ mcl_vars.mg_overworld_max = mcl_vars.mapgen_edge_max
-- The Nether (around Y = -29000)
mcl_vars.mg_nether_min = -29067 -- Carefully chosen to be at a mapchunk border
mcl_vars.mg_nether_max = mcl_vars.mg_nether_min + 128
mcl_vars.mg_nether_max = mcl_vars.mg_nether_min + 256
mcl_vars.mg_bedrock_nether_bottom_min = mcl_vars.mg_nether_min
mcl_vars.mg_bedrock_nether_top_max = mcl_vars.mg_nether_max
mcl_vars.mg_bedrock_nether_top_max = mcl_vars.mg_nether_max - 128
if not superflat then
mcl_vars.mg_bedrock_nether_bottom_max = mcl_vars.mg_bedrock_nether_bottom_min + 4
mcl_vars.mg_bedrock_nether_top_min = mcl_vars.mg_bedrock_nether_top_max - 4

View File

@ -2022,9 +2022,32 @@ local function basic(vm, data, data2, emin, emax, area, minp, maxp, blockseed)
-- [[ THE NETHER: mcl_vars.mg_nether_min mcl_vars.mg_nether_max ]]
-- The Air on the Nether roof, https://git.minetest.land/MineClone2/MineClone2/issues/1186
lvm_used = set_layers(data, area, c_air , nil, mcl_vars.mg_nether_max +1, mcl_vars.mg_nether_max + 128 , minp, maxp, lvm_used, pr)
-- This was modified later, see https://git.minetest.land/Mineclonia/Mineclonia/issues/270
lvm_used = set_layers(
data,
area,
c_air,
nil,
mcl_vars.mg_bedrock_nether_top_max + 1,
mcl_vars.mg_nether_max,
minp,
maxp,
lvm_used,
pr
)
-- The Void above the Nether below the End:
lvm_used = set_layers(data, area, c_void , nil, mcl_vars.mg_nether_max + 128 +1, mcl_vars.mg_end_min -1, minp, maxp, lvm_used, pr)
lvm_used = set_layers(
data,
area,
c_void,
nil,
mcl_vars.mg_nether_max + 1,
mcl_vars.mg_end_min - 1,
minp,
maxp,
lvm_used,
pr
)
-- [[ THE END: mcl_vars.mg_end_min mcl_vars.mg_end_max ]]