]> git.lizzy.rs Git - Crafter.git/commitdiff
encapsulate the nether with bedrock
authoroilboi <47129783+oilboi@users.noreply.github.com>
Mon, 20 Apr 2020 22:40:45 +0000 (18:40 -0400)
committeroilboi <47129783+oilboi@users.noreply.github.com>
Mon, 20 Apr 2020 22:40:45 +0000 (18:40 -0400)
README.md
mods/nether/biomes.lua

index a06dc2a00fe06fabc863f01a1c30bd8fd3c2a6a4..9801f6301a84c4b6cce7c6cfa23175fc25092c8b 100644 (file)
--- 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
index 860397484f6feaace526227c2e9b8da99af0f8e5..73147ba2cb202d85d1c88dce4c12b5499e61be9d 100644 (file)
@@ -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