make webs slightly more prevalent

This commit is contained in:
FaceDeer 2021-03-28 13:01:50 -06:00
parent fd392311d6
commit 33c191fc03
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ 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
local web_probability = 0.1 -- the chance that a given mapblock will have webbing criss-crossing the chasm
local web_probability = 0.15 -- the chance that a given mapblock will have webbing criss-crossing the chasm
local chasms_threshold = tonumber(minetest.settings:get("chasms_threshold")) or 0.9
local np_chasms_default = {

View File

@ -367,7 +367,7 @@ local decorate_level_3 = function(minp, maxp, seed, vm, node_arrays, area, data)
else
df_caverns.tunnel_ceiling(minp, maxp, area, vi, nvals_cracks, data, data_param2, false)
end
if c_webs_egg and biome_name == "barren" and nvals_cracks[index2d] > 0.5 and math.random() < 0.1 then
if c_webs_egg and (biome_name == "barren" or biome_name == "blackcap") and nvals_cracks[index2d] > 0.5 and math.random() < 0.1 then
local index = vi-ystride
if data[index] == c_air then
data[index] = c_webs_egg