adjust depth levels, don't disable caves
This commit is contained in:
parent
f1f0abcc16
commit
133e66ad38
4 changed files with 13 additions and 9 deletions
9
deco.lua
9
deco.lua
|
@ -7,11 +7,10 @@ dofile(fun_caves_mod.path .. "/nodes.lua")
|
|||
dofile(fun_caves_mod.path .. "/fungal_tree.lua")
|
||||
|
||||
|
||||
local deco_depth = -30 -- place cave stuff this far beneath the surface
|
||||
local deco_depth = -5 -- place cave stuff this far beneath the surface
|
||||
local water_level = 1
|
||||
local fluid_compression = -200 -- the depth to start planting lava/water
|
||||
local max_depth = 31000
|
||||
|
||||
local fluid_compression = -22000 -- the depth to start planting lava/water
|
||||
local max_depth = -27960
|
||||
|
||||
local csize
|
||||
local node_match_cache = {}
|
||||
|
@ -25,6 +24,8 @@ fun_caves_mod.decogen = function(minp, maxp, data, area, node, heightmap)
|
|||
if not (minp and maxp and data and area and node and type(data) == 'table' and fun_caves_mod.cave_biomes and fun_caves_mod.make_fungal_tree) then
|
||||
return
|
||||
end
|
||||
local temp_y = (minp.y+maxp.y)/2
|
||||
if temp_y > -28000 or temp_y < -30999 then return end
|
||||
|
||||
csize = vector.add(vector.subtract(maxp, minp), 1)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue