dfcaverns/biomes/lava_sea.lua

40 lines
1.5 KiB
Lua
Raw Normal View History

2017-03-20 04:50:03 +01:00
local c_water = minetest.get_content_id("default:water_source")
local c_air = minetest.get_content_id("air")
local c_stone = minetest.get_content_id("default:stone")
local c_cobble = minetest.get_content_id("default:cobble")
local c_dirt = minetest.get_content_id("default:dirt")
local c_sand = minetest.get_content_id("default:sand")
local c_lava = minetest.get_content_id("default:lava_source")
local c_dirt_moss = minetest.get_content_id("dfcaverns:dirt_with_cave_moss")
local c_cobble_fungus = minetest.get_content_id("dfcaverns:cobble_with_floor_fungus")
local c_dead_fungus = minetest.get_content_id("dfcaverns:dead_fungus") -- param2 = 0
local c_cavern_fungi = minetest.get_content_id("dfcaverns:cavern_fungi") -- param2 = 0
-------------------------------------------------------------------------------------------
2017-04-03 17:32:40 +02:00
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)
2017-03-20 04:50:03 +01:00
minetest.register_biome({
2017-04-03 17:32:40 +02:00
name = "dfcaverns_lava_sea_lower",
2017-03-20 04:50:03 +01:00
y_min = dfcaverns.config.lava_sea_min,
2017-04-03 17:32:40 +02:00
y_max = subsea_level,
2017-03-20 04:50:03 +01:00
heat_point = 50,
humidity_point = 50,
2017-04-03 17:32:40 +02:00
_subterrane_fill_node = c_lava,
_subterrane_cave_fill_node = c_lava,
2017-03-20 04:50:03 +01:00
})
2017-04-03 17:32:40 +02:00
minetest.register_biome({
name = "dfcaverns_lava_sea_upper",
y_min = subsea_level,
y_max = dfcaverns.config.level3_min,
heat_point = 50,
humidity_point = 50,
_subterrane_fill_node = c_air,
_subterrane_cave_fill_node = c_lava,
})