a bit of work on the lava sea

This commit is contained in:
FaceDeer 2017-04-03 09:32:40 -06:00
parent 6b4ebb9ff9
commit 18d64da1bd
3 changed files with 25 additions and 11 deletions

View File

@ -98,13 +98,14 @@ subterrane:register_cave_layer({
subterrane:register_cave_layer({ subterrane:register_cave_layer({
minimum_depth = dfcaverns.config.level3_min, minimum_depth = dfcaverns.config.level3_min,
maximum_depth = dfcaverns.config.lava_sea_min, maximum_depth = dfcaverns.config.lava_sea_min,
cave_threshold = 0.1
}) })
subterrane:register_cave_layer({ --subterrane:register_cave_layer({
minimum_depth = dfcaverns.config.lava_sea_min, -- minimum_depth = dfcaverns.config.lava_sea_min,
maximum_depth = dfcaverns.config.ymin, -- maximum_depth = dfcaverns.config.ymin,
cave_threshold = 0.3, -- cave_threshold = 0.3,
}) --})
dfcaverns.can_support_vegetation = {[c_sand] = true, [c_dirt] = true, [c_coal_ore] = true, [c_gravel] = true} dfcaverns.can_support_vegetation = {[c_sand] = true, [c_dirt] = true, [c_coal_ore] = true, [c_gravel] = true}

View File

@ -13,14 +13,27 @@ local c_cavern_fungi = minetest.get_content_id("dfcaverns:cavern_fungi") -- para
------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------
local subsea_level = (dfcaverns.config.lava_sea_min - dfcaverns.config.level3_min) * 0.3 + dfcaverns.config.level3_min
minetest.debug("level3_min", dfcaverns.config.level3_min)
minetest.debug("lava subsea", subsea_level)
minetest.debug("lava_sea_min", dfcaverns.config.lava_sea_min)
minetest.register_biome({ minetest.register_biome({
name = "dfcaverns_lava_sea", name = "dfcaverns_lava_sea_lower",
y_min = dfcaverns.config.lava_sea_min, y_min = dfcaverns.config.lava_sea_min,
y_max = subsea_level,
heat_point = 50,
humidity_point = 50,
_subterrane_fill_node = c_lava,
_subterrane_cave_fill_node = c_lava,
})
minetest.register_biome({
name = "dfcaverns_lava_sea_upper",
y_min = subsea_level,
y_max = dfcaverns.config.level3_min, y_max = dfcaverns.config.level3_min,
heat_point = 50, heat_point = 50,
humidity_point = 50, humidity_point = 50,
_subterrane_fill_node = c_air, -- It's proving tricky to get lava-flooded caves without spilling into forested ones, temporarily disabling until a better solution is found. _subterrane_fill_node = c_air,
_subterrane_cave_fill_node = c_air, _subterrane_cave_fill_node = c_lava,
}) })

View File

@ -457,9 +457,9 @@ minetest.register_biome({
minetest.register_biome({ minetest.register_biome({
name = "dfcaverns_level3_tunnel_tube_biome_lower", name = "dfcaverns_level3_tunnel_tube_biome_lower",
y_min = dfcaverns.config.level3_min, y_min = dfcaverns.config.level3_min,
y_max = subsea_level,
heat_point = 60, heat_point = 60,
humidity_point = 40, humidity_point = 40,
y_max = subsea_level,
_subterrane_ceiling_decor = level_3_moist_ceiling, _subterrane_ceiling_decor = level_3_moist_ceiling,
_subterrane_floor_decor = level_3_tunnel_tube_floor, _subterrane_floor_decor = level_3_tunnel_tube_floor,
_subterrane_fill_node = c_air, _subterrane_fill_node = c_air,
@ -499,7 +499,7 @@ minetest.register_biome({
minetest.register_biome({ minetest.register_biome({
name = "dfcaverns_level3_black_cap_biome_upper", name = "dfcaverns_level3_black_cap_biome_upper",
y_min = subsea_level, y_min = subsea_level,
y_max = dfcaverns.config.level1_min, y_max = dfcaverns.config.level3_min,
heat_point = 50, heat_point = 50,
humidity_point = 15, humidity_point = 15,
_subterrane_ceiling_decor = level_3_dry_ceiling, _subterrane_ceiling_decor = level_3_dry_ceiling,