prevent chasms from breaching oil and magma seas, make veinstone actually do something

This commit is contained in:
FaceDeer
2021-03-25 23:13:19 -06:00
parent ed54ceec93
commit a9dfec969b
3 changed files with 55 additions and 4 deletions

View File

@ -1,7 +1,7 @@
local data = {}
local maxy = tonumber(minetest.settings:get("chasms_maxy")) or -50
local miny = tonumber(minetest.settings:get("chasms_miny")) or -3000
local miny = tonumber(minetest.settings:get("chasms_miny")) or -2500
local falloff = tonumber(minetest.settings:get("chasms_falloff")) or 100
local chasms_threshold = tonumber(minetest.settings:get("chasms_threshold")) or 0.9
@ -56,7 +56,7 @@ local get_intensity = function(y)
return (y-miny)/falloff
end
-- if y > maxfalloff then
return (maxy-y)/falloff
return (maxy-y)/falloff
-- end
end

View File

@ -1,5 +1,5 @@
chasms_params (Noise params for chasms) noise_params_3d 0, 1, (50, 1000, 3000), 94586, 2, 0.63, 2.0
chasms_threshold (Noise threshold for chasms) float 0.9
chasms_maxy (Maximum Y) int -50
chasms_miny (Minimum Y) int -3000
chasms_miny (Minimum Y) int -2500
chasms_falloff (Taper range when approaching max or min) int 100