mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-17 08:31:08 +01:00
104 lines
3 KiB
Lua
104 lines
3 KiB
Lua
local mod_mcl_core = minetest.get_modpath("mcl_core")
|
|
|
|
-- Cold Taiga aka Snowy Taiga
|
|
vl_biomes.register_biome({
|
|
name = "ColdTaiga",
|
|
node_dust = "mcl_core:snow",
|
|
node_top = "mcl_core:dirt_with_grass_snow",
|
|
depth_top = 1,
|
|
node_filler = "mcl_core:dirt",
|
|
depth_filler = 2,
|
|
node_riverbed = "mcl_core:sand",
|
|
depth_riverbed = 2,
|
|
y_min = 3,
|
|
y_max = vl_biomes.overworld_max,
|
|
humidity_point = 58,
|
|
heat_point = 8,
|
|
_mcl_biome_type = "snowy",
|
|
_mcl_water_temp = "frozen",
|
|
_mcl_grass_palette_index = 3,
|
|
_mcl_foliage_palette_index = 2,
|
|
_mcl_water_palette_index = 5,
|
|
_mcl_skycolor = "#839EFF",
|
|
-- A cold beach-like biome, implemented as low part of Cold Taiga
|
|
_beach = {
|
|
node_top = "mcl_core:sand",
|
|
depth_top = 2,
|
|
node_water_top = "mcl_core:ice",
|
|
depth_water_top = 1,
|
|
node_filler = "mcl_core:sandstone",
|
|
depth_filler = 2,
|
|
y_min = 1,
|
|
y_max = 2,
|
|
_mcl_foliage_palette_index = 16,
|
|
_mcl_skycolor = "#7FA1FF", -- not default, but icy
|
|
},
|
|
-- Water part of the beach. Added to prevent snow being on the ice.
|
|
_beach_water = {
|
|
node_top = "mcl_core:sand",
|
|
depth_top = 2,
|
|
node_water_top = "mcl_core:ice",
|
|
depth_water_top = 1,
|
|
node_filler = "mcl_core:sandstone",
|
|
depth_filler = 2,
|
|
y_min = -4,
|
|
y_max = 0,
|
|
_mcl_foliage_palette_index = 16,
|
|
_mcl_skycolor = "#7FA1FF", -- not default, but icy
|
|
},
|
|
_ocean = {
|
|
node_top = "mcl_core:gravel",
|
|
depth_top = 1,
|
|
node_filler = "mcl_core:gravel",
|
|
depth_filler = 3,
|
|
y_max = -5,
|
|
vertical_blend = 1,
|
|
_mcl_skycolor = "#7FA1FF", -- not default, but icy
|
|
},
|
|
})
|
|
-- Small lollipop spruce
|
|
mcl_mapgen_core.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"group:grass_block", "mcl_core:podzol"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = 0.004,
|
|
scale = 0.0022,
|
|
spread = vector.new(250, 250, 250),
|
|
seed = 2500,
|
|
octaves = 3,
|
|
persist = 0.66
|
|
},
|
|
biomes = {"ColdTaiga"},
|
|
y_min = 2,
|
|
y_max = vl_biomes.overworld_max,
|
|
schematic = mod_mcl_core .. "/schematics/mcl_core_spruce_lollipop.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
-- not supported by spruce leaves _mcl_foliage_palette_index = 2,
|
|
})
|
|
|
|
-- Matchstick spruce: Very few leaves, tall trunk
|
|
mcl_mapgen_core.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"group:grass_block", "mcl_core:podzol"},
|
|
sidelen = 80,
|
|
noise_params = {
|
|
offset = -0.025,
|
|
scale = 0.025,
|
|
spread = vector.new(250, 250, 250),
|
|
seed = 2566,
|
|
octaves = 5,
|
|
persist = 0.60,
|
|
},
|
|
biomes = {"ColdTaiga"},
|
|
y_min = 3,
|
|
y_max = vl_biomes.overworld_max,
|
|
schematic = mod_mcl_core .. "/schematics/mcl_core_spruce_matchstick.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
-- not supported by spruce leaves _mcl_foliage_palette_index = 2,
|
|
})
|
|
|
|
vl_biomes.register_spruce_decoration(11000, 0.00150, "mcl_core_spruce_5.mts", {"ColdTaiga"})
|
|
vl_biomes.register_spruce_decoration(2500, 0.00325, "mcl_core_spruce_1.mts", {"ColdTaiga"})
|
|
vl_biomes.register_spruce_decoration(7000, 0.00425, "mcl_core_spruce_3.mts", {"ColdTaiga"})
|
|
vl_biomes.register_spruce_decoration(9000, 0.00325, "mcl_core_spruce_4.mts", {"ColdTaiga"})
|