Merge pull request 'Spawn corals only at -10 and lower' (#2393) from deeper_corals into master

Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2393
Reviewed-by: MysticTempest <mystictempest@noreply.git.minetest.land>
This commit is contained in:
cora 2022-07-04 21:06:33 +00:00
commit d6306d78b8

View File

@ -2495,6 +2495,8 @@ local function register_seagrass_decoration(grasstype, offset, scale, biomes)
end
end
local coral_min = OCEAN_MIN
local coral_max = -10
local warm_oceans = {
"JungleEdgeM_ocean",
"Jungle_deep_ocean",
@ -2538,8 +2540,8 @@ local function register_coral_decos(ck)
sidelen = 80,
noise_params = noise,
biomes = warm_oceans,
y_min = OCEAN_MIN,
y_max = -8,
y_min = coral_min,
y_max = coral_max,
schematic = mod_mcl_structures.."/schematics/mcl_structures_coral_"..c.."_1.mts",
rotation = "random",
flags = "all_floors,force_placement",
@ -2550,8 +2552,8 @@ local function register_coral_decos(ck)
noise_params = noise,
sidelen = 80,
biomes = warm_oceans,
y_min = OCEAN_MIN,
y_max = -8,
y_min = coral_min,
y_max = coral_max,
schematic = mod_mcl_structures.."/schematics/mcl_structures_coral_"..c.."_2.mts",
rotation = "random",
flags = "all_floors,force_placement",
@ -2562,8 +2564,8 @@ local function register_coral_decos(ck)
place_on = {"mcl_ocean:"..c.."_coral_block"},
sidelen = 16,
fill_ratio = 3,
y_min = OCEAN_MIN,
y_max = 1,
y_min = coral_min,
y_max = coral_max,
decoration = "mcl_ocean:"..c.."_coral",
biomes = warm_oceans,
flags = "force_placement, all_floors",
@ -2575,8 +2577,8 @@ local function register_coral_decos(ck)
place_on = {"mcl_ocean:horn_coral_block"},
sidelen = 16,
fill_ratio = 7,
y_min = OCEAN_MIN,
y_max = 1,
y_min = coral_min,
y_max = coral_max,
decoration = "mcl_ocean:"..c.."_coral_fan",
biomes = warm_oceans,
flags = "force_placement, all_floors",
@ -2604,8 +2606,8 @@ local function register_decorations()
lacunarity = 3.5,
flags = "absvalue"
},
y_min = OCEAN_MIN,
y_max = -5,
y_min = coral_min,
y_max = coral_max,
decoration = "mcl_ocean:dead_brain_coral_block",
biomes = warm_oceans,
flags = "force_placement",
@ -2619,8 +2621,8 @@ local function register_decorations()
place_on = {"mcl_ocean:dead_brain_coral_block"},
sidelen = 16,
fill_ratio = 3,
y_min = OCEAN_MIN,
y_max = 1,
y_min = coral_min,
y_max = coral_max,
decoration = "mcl_ocean:sea_pickle_1_dead_brain_coral_block",
biomes = warm_oceans,
flags = "force_placement, all_floors",
@ -2633,8 +2635,8 @@ local function register_decorations()
place_on = {"mcl_ocean:dead_brain_coral_block"},
sidelen = 16,
fill_ratio = 3,
y_min = OCEAN_MIN,
y_max = 1,
y_min = coral_min,
y_max = coral_max,
decoration = "mcl_ocean:sea_pickle_2_dead_brain_coral_block",
biomes = warm_oceans,
flags = "force_placement, all_floors",
@ -2647,8 +2649,8 @@ local function register_decorations()
place_on = {"mcl_ocean:dead_brain_coral_block"},
sidelen = 16,
fill_ratio = 2,
y_min = OCEAN_MIN,
y_max = 1,
y_min = coral_min,
y_max = coral_max,
decoration = "mcl_ocean:sea_pickle_3_dead_brain_coral_block",
biomes = warm_oceans,
flags = "force_placement, all_floors",
@ -2661,8 +2663,8 @@ local function register_decorations()
place_on = {"mcl_ocean:dead_brain_coral_block"},
sidelen = 16,
fill_ratio = 2,
y_min = OCEAN_MIN,
y_max = 1,
y_min = coral_min,
y_max = coral_max,
decoration = "mcl_ocean:sea_pickle_4_dead_brain_coral_block",
biomes = warm_oceans,
flags = "force_placement, all_floors",
@ -2677,8 +2679,8 @@ local function register_decorations()
fill_ratio = 0.0001,
sidelen = 80,
biomes = warm_oceans,
y_min = OCEAN_MIN,
y_max = -8,
y_min = coral_min,
y_max = coral_max,
schematic = mod_mcl_structures.."/schematics/coral_cora.mts",
rotation = "random",
flags = "place_center_x,place_center_z, force_placement",