Pit caves (#20)

* A simple pit cave mod, based off of code from the volcano pipes in my magma_conduits mod

* option to seal off ocean pits

* reuse chasm's ignore list

* documentation

* rename findpits to prevent confusion with underworld glowing pits
This commit is contained in:
FaceDeer
2021-05-07 22:59:30 -06:00
committed by GitHub
parent 79fd356477
commit 289c353bb6
11 changed files with 294 additions and 2 deletions

View File

@ -9,6 +9,10 @@ chasms.register_ignore = function(node_name)
ignore[minetest.get_content_id(node_name)] = true
end
chasms.ignore_content_id = function(content_id)
return ignore[content_id]
end
local maxy = tonumber(minetest.settings:get("chasms_maxy")) or -50
local miny = tonumber(minetest.settings:get("chasms_miny")) or -2500
local falloff = tonumber(minetest.settings:get("chasms_falloff")) or 100