Merge pull request 'Spawn corals only at -10 and lower' (#2393) from deeper_corals into master
Reviewed-on: MineClone2/MineClone2#2393 Reviewed-by: MysticTempest <mystictempest@noreply.git.minetest.land>
This commit is contained in:
commit
d6306d78b8
|
@ -2495,6 +2495,8 @@ local function register_seagrass_decoration(grasstype, offset, scale, biomes)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local coral_min = OCEAN_MIN
|
||||||
|
local coral_max = -10
|
||||||
local warm_oceans = {
|
local warm_oceans = {
|
||||||
"JungleEdgeM_ocean",
|
"JungleEdgeM_ocean",
|
||||||
"Jungle_deep_ocean",
|
"Jungle_deep_ocean",
|
||||||
|
@ -2538,8 +2540,8 @@ local function register_coral_decos(ck)
|
||||||
sidelen = 80,
|
sidelen = 80,
|
||||||
noise_params = noise,
|
noise_params = noise,
|
||||||
biomes = warm_oceans,
|
biomes = warm_oceans,
|
||||||
y_min = OCEAN_MIN,
|
y_min = coral_min,
|
||||||
y_max = -8,
|
y_max = coral_max,
|
||||||
schematic = mod_mcl_structures.."/schematics/mcl_structures_coral_"..c.."_1.mts",
|
schematic = mod_mcl_structures.."/schematics/mcl_structures_coral_"..c.."_1.mts",
|
||||||
rotation = "random",
|
rotation = "random",
|
||||||
flags = "all_floors,force_placement",
|
flags = "all_floors,force_placement",
|
||||||
|
@ -2550,8 +2552,8 @@ local function register_coral_decos(ck)
|
||||||
noise_params = noise,
|
noise_params = noise,
|
||||||
sidelen = 80,
|
sidelen = 80,
|
||||||
biomes = warm_oceans,
|
biomes = warm_oceans,
|
||||||
y_min = OCEAN_MIN,
|
y_min = coral_min,
|
||||||
y_max = -8,
|
y_max = coral_max,
|
||||||
schematic = mod_mcl_structures.."/schematics/mcl_structures_coral_"..c.."_2.mts",
|
schematic = mod_mcl_structures.."/schematics/mcl_structures_coral_"..c.."_2.mts",
|
||||||
rotation = "random",
|
rotation = "random",
|
||||||
flags = "all_floors,force_placement",
|
flags = "all_floors,force_placement",
|
||||||
|
@ -2562,8 +2564,8 @@ local function register_coral_decos(ck)
|
||||||
place_on = {"mcl_ocean:"..c.."_coral_block"},
|
place_on = {"mcl_ocean:"..c.."_coral_block"},
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 3,
|
fill_ratio = 3,
|
||||||
y_min = OCEAN_MIN,
|
y_min = coral_min,
|
||||||
y_max = 1,
|
y_max = coral_max,
|
||||||
decoration = "mcl_ocean:"..c.."_coral",
|
decoration = "mcl_ocean:"..c.."_coral",
|
||||||
biomes = warm_oceans,
|
biomes = warm_oceans,
|
||||||
flags = "force_placement, all_floors",
|
flags = "force_placement, all_floors",
|
||||||
|
@ -2575,8 +2577,8 @@ local function register_coral_decos(ck)
|
||||||
place_on = {"mcl_ocean:horn_coral_block"},
|
place_on = {"mcl_ocean:horn_coral_block"},
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 7,
|
fill_ratio = 7,
|
||||||
y_min = OCEAN_MIN,
|
y_min = coral_min,
|
||||||
y_max = 1,
|
y_max = coral_max,
|
||||||
decoration = "mcl_ocean:"..c.."_coral_fan",
|
decoration = "mcl_ocean:"..c.."_coral_fan",
|
||||||
biomes = warm_oceans,
|
biomes = warm_oceans,
|
||||||
flags = "force_placement, all_floors",
|
flags = "force_placement, all_floors",
|
||||||
|
@ -2604,8 +2606,8 @@ local function register_decorations()
|
||||||
lacunarity = 3.5,
|
lacunarity = 3.5,
|
||||||
flags = "absvalue"
|
flags = "absvalue"
|
||||||
},
|
},
|
||||||
y_min = OCEAN_MIN,
|
y_min = coral_min,
|
||||||
y_max = -5,
|
y_max = coral_max,
|
||||||
decoration = "mcl_ocean:dead_brain_coral_block",
|
decoration = "mcl_ocean:dead_brain_coral_block",
|
||||||
biomes = warm_oceans,
|
biomes = warm_oceans,
|
||||||
flags = "force_placement",
|
flags = "force_placement",
|
||||||
|
@ -2619,8 +2621,8 @@ local function register_decorations()
|
||||||
place_on = {"mcl_ocean:dead_brain_coral_block"},
|
place_on = {"mcl_ocean:dead_brain_coral_block"},
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 3,
|
fill_ratio = 3,
|
||||||
y_min = OCEAN_MIN,
|
y_min = coral_min,
|
||||||
y_max = 1,
|
y_max = coral_max,
|
||||||
decoration = "mcl_ocean:sea_pickle_1_dead_brain_coral_block",
|
decoration = "mcl_ocean:sea_pickle_1_dead_brain_coral_block",
|
||||||
biomes = warm_oceans,
|
biomes = warm_oceans,
|
||||||
flags = "force_placement, all_floors",
|
flags = "force_placement, all_floors",
|
||||||
|
@ -2633,8 +2635,8 @@ local function register_decorations()
|
||||||
place_on = {"mcl_ocean:dead_brain_coral_block"},
|
place_on = {"mcl_ocean:dead_brain_coral_block"},
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 3,
|
fill_ratio = 3,
|
||||||
y_min = OCEAN_MIN,
|
y_min = coral_min,
|
||||||
y_max = 1,
|
y_max = coral_max,
|
||||||
decoration = "mcl_ocean:sea_pickle_2_dead_brain_coral_block",
|
decoration = "mcl_ocean:sea_pickle_2_dead_brain_coral_block",
|
||||||
biomes = warm_oceans,
|
biomes = warm_oceans,
|
||||||
flags = "force_placement, all_floors",
|
flags = "force_placement, all_floors",
|
||||||
|
@ -2647,8 +2649,8 @@ local function register_decorations()
|
||||||
place_on = {"mcl_ocean:dead_brain_coral_block"},
|
place_on = {"mcl_ocean:dead_brain_coral_block"},
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 2,
|
fill_ratio = 2,
|
||||||
y_min = OCEAN_MIN,
|
y_min = coral_min,
|
||||||
y_max = 1,
|
y_max = coral_max,
|
||||||
decoration = "mcl_ocean:sea_pickle_3_dead_brain_coral_block",
|
decoration = "mcl_ocean:sea_pickle_3_dead_brain_coral_block",
|
||||||
biomes = warm_oceans,
|
biomes = warm_oceans,
|
||||||
flags = "force_placement, all_floors",
|
flags = "force_placement, all_floors",
|
||||||
|
@ -2661,8 +2663,8 @@ local function register_decorations()
|
||||||
place_on = {"mcl_ocean:dead_brain_coral_block"},
|
place_on = {"mcl_ocean:dead_brain_coral_block"},
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 2,
|
fill_ratio = 2,
|
||||||
y_min = OCEAN_MIN,
|
y_min = coral_min,
|
||||||
y_max = 1,
|
y_max = coral_max,
|
||||||
decoration = "mcl_ocean:sea_pickle_4_dead_brain_coral_block",
|
decoration = "mcl_ocean:sea_pickle_4_dead_brain_coral_block",
|
||||||
biomes = warm_oceans,
|
biomes = warm_oceans,
|
||||||
flags = "force_placement, all_floors",
|
flags = "force_placement, all_floors",
|
||||||
|
@ -2677,8 +2679,8 @@ local function register_decorations()
|
||||||
fill_ratio = 0.0001,
|
fill_ratio = 0.0001,
|
||||||
sidelen = 80,
|
sidelen = 80,
|
||||||
biomes = warm_oceans,
|
biomes = warm_oceans,
|
||||||
y_min = OCEAN_MIN,
|
y_min = coral_min,
|
||||||
y_max = -8,
|
y_max = coral_max,
|
||||||
schematic = mod_mcl_structures.."/schematics/coral_cora.mts",
|
schematic = mod_mcl_structures.."/schematics/coral_cora.mts",
|
||||||
rotation = "random",
|
rotation = "random",
|
||||||
flags = "place_center_x,place_center_z, force_placement",
|
flags = "place_center_x,place_center_z, force_placement",
|
||||||
|
|
Loading…
Reference in New Issue