From 526e667362adb1bbcd922d1120dc7454678a2a30 Mon Sep 17 00:00:00 2001 From: oilboi <47129783+oilboi@users.noreply.github.com> Date: Mon, 20 Apr 2020 18:40:45 -0400 Subject: [PATCH] encapsulate the nether with bedrock --- README.md | 2 +- mods/nether/biomes.lua | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index a06dc2a..9801f63 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ - Add buckets in - Make buckets use special raycast function - Fix clientside global counters to after statements -- Made snow and grass floodable +- Made snow, grass, and torches floodable - Made lava spawn in blobs underground - Added nether ores - Make nether ores randomly explode when mined diff --git a/mods/nether/biomes.lua b/mods/nether/biomes.lua index 8603974..73147ba 100644 --- a/mods/nether/biomes.lua +++ b/mods/nether/biomes.lua @@ -12,8 +12,8 @@ minetest.register_biome({ node_dungeon_alt = "air", node_dungeon_stair = "air", vertical_blend = 0, - y_max = -10000, - y_min = -20000, + y_max = -10033, + y_min = -20113, heat_point = -100, humidity_point = -100, }) @@ -75,7 +75,7 @@ local data = {} -- define the 3D volume. minetest.register_on_generated(function(minp, maxp, seed) --nether starts at -10033 y - if maxp.y > -10033 then + if maxp.y > -10033 or maxp.y < -20033 then return end -- Start time of mapchunk generation. @@ -136,10 +136,10 @@ minetest.register_on_generated(function(minp, maxp, seed) --print(density_noise, density_gradient) -- Place solid nodes when 'density' > 0. --if density_noise + density_gradient > 0 then - if density_noise > 0 and y ~= -10033 then + if density_noise > 0 and y ~= -10033 and y ~= -20112 then data[vi] = c_sandstone - -- Otherwise if at or below water level place water. - elseif y == -10033 then + -- create bedrock layer + elseif y == -10033 or y == -20112 then data[vi] = c_bedrock --elseif y <= 1 then -- data[vi] = c_water -- 2.44.0