From f883b4580934a21d8e3177a16973ac5531223795 Mon Sep 17 00:00:00 2001 From: cora Date: Thu, 23 Jun 2022 14:01:05 +0200 Subject: [PATCH 1/2] Add coral reefs --- mods/MAPGEN/mcl_biomes/init.lua | 136 ++++++++++++++++++ .../mcl_structures/schematics/coral_cora.mts | Bin 0 -> 719 bytes .../mcl_structures_coral_brain_1.mts | Bin 0 -> 157 bytes .../mcl_structures_coral_brain_2.mts | Bin 0 -> 124 bytes .../mcl_structures_coral_bubble_1.mts | Bin 0 -> 146 bytes .../mcl_structures_coral_bubble_2.mts | Bin 0 -> 129 bytes .../mcl_structures_coral_fire_1.mts | Bin 0 -> 152 bytes .../mcl_structures_coral_fire_2.mts | Bin 0 -> 127 bytes .../mcl_structures_coral_horn_1.mts | Bin 0 -> 152 bytes .../mcl_structures_coral_horn_2.mts | Bin 0 -> 125 bytes .../mcl_structures_coral_tube_1.mts | Bin 0 -> 138 bytes .../mcl_structures_coral_tube_2.mts | Bin 0 -> 126 bytes 12 files changed, 136 insertions(+) create mode 100644 mods/MAPGEN/mcl_structures/schematics/coral_cora.mts create mode 100644 mods/MAPGEN/mcl_structures/schematics/mcl_structures_coral_brain_1.mts create mode 100644 mods/MAPGEN/mcl_structures/schematics/mcl_structures_coral_brain_2.mts create mode 100644 mods/MAPGEN/mcl_structures/schematics/mcl_structures_coral_bubble_1.mts create mode 100644 mods/MAPGEN/mcl_structures/schematics/mcl_structures_coral_bubble_2.mts create mode 100644 mods/MAPGEN/mcl_structures/schematics/mcl_structures_coral_fire_1.mts create mode 100644 mods/MAPGEN/mcl_structures/schematics/mcl_structures_coral_fire_2.mts create mode 100644 mods/MAPGEN/mcl_structures/schematics/mcl_structures_coral_horn_1.mts create mode 100644 mods/MAPGEN/mcl_structures/schematics/mcl_structures_coral_horn_2.mts create mode 100644 mods/MAPGEN/mcl_structures/schematics/mcl_structures_coral_tube_1.mts create mode 100644 mods/MAPGEN/mcl_structures/schematics/mcl_structures_coral_tube_2.mts diff --git a/mods/MAPGEN/mcl_biomes/init.lua b/mods/MAPGEN/mcl_biomes/init.lua index 392f79038..c4e11a958 100644 --- a/mods/MAPGEN/mcl_biomes/init.lua +++ b/mods/MAPGEN/mcl_biomes/init.lua @@ -2495,9 +2495,145 @@ local function register_seagrass_decoration(grasstype, offset, scale, biomes) end end +local warm_oceans = { + "JungleEdgeM_ocean", + "Jungle_deep_ocean", + "Savanna_ocean", + "MesaPlateauF_ocean", + "Swampland_ocean", + "Mesa_ocean", + "Plains_ocean", + "MesaPlateauFM_ocean", + "MushroomIsland_ocean", + "SavannaM_ocean", + "JungleEdge_ocean", + "MesaBryce_ocean", + "Jungle_ocean", + "Desert_ocean", + "JungleM_ocean", +} +local corals = { + "brain", + "horn", + "bubble", + "tube", + "fire" +} +local function register_coral_decos(ck) + local c = corals[ck] + local noise = { + offset = -0.0085, + scale = 0.002, + spread = {x = 25, y = 120, z = 25}, + seed = 235, + octaves = 5, + persist = 1.8, + lacunarity = 3.5, + flags = "absvalue" + } + minetest.register_decoration({ + deco_type = "schematic", + place_on = {"group:sand","mcl_core:gravel"}, + sidelen = 80, + noise_params = noise, + biomes = warm_oceans, + y_min = OCEAN_MIN, + y_max = -8, + schematic = mod_mcl_structures.."/schematics/mcl_structures_coral_"..c.."_1.mts", + rotation = "random", + flags = "all_floors,force_placement", + }) + minetest.register_decoration({ + deco_type = "schematic", + place_on = {"group:sand","mcl_core:gravel"}, + noise_params = noise, + sidelen = 80, + biomes = warm_oceans, + y_min = OCEAN_MIN, + y_max = -8, + schematic = mod_mcl_structures.."/schematics/mcl_structures_coral_"..c.."_2.mts", + rotation = "random", + flags = "all_floors,force_placement", + }) + + minetest.register_decoration({ + deco_type = "simple", + place_on = {"mcl_ocean:"..c.."_coral_block"}, + sidelen = 16, + fill_ratio = 3, + y_min = OCEAN_MIN, + y_max = 1, + decoration = "mcl_ocean:"..c.."_coral", + biomes = warm_oceans, + flags = "force_placement, all_floors", + height = 1, + height_max = 1, + }) + minetest.register_decoration({ + deco_type = "simple", + place_on = {"mcl_ocean:horn_coral_block"}, + sidelen = 16, + fill_ratio = 7, + y_min = OCEAN_MIN, + y_max = 1, + decoration = "mcl_ocean:"..c.."_coral_fan", + biomes = warm_oceans, + flags = "force_placement, all_floors", + height = 1, + height_max = 1, + }) +end local function register_decorations() + -- Coral Reefs + for k,_ in pairs(corals) do + register_coral_decos(k) + end + minetest.register_decoration({ + deco_type = "simple", + place_on = {"group:sand","mcl_core:gravel"}, + sidelen = 16, + noise_params = noise, + y_min = OCEAN_MIN, + y_max = -5, + decoration = "mcl_ocean:dead_brain_coral_block", + biomes = warm_oceans, + flags = "force_placement", + height = 1, + height_max = 1, + place_offset_y = -1, + }) + + minetest.register_decoration({ + deco_type = "simple", + place_on = {"mcl_ocean:dead_brain_coral_block"}, + sidelen = 16, + fill_ratio = 10, + y_min = OCEAN_MIN, + y_max = 1, + decoration = "mcl_ocean:sea_pickle_1_dead_brain_coral_block", + biomes = warm_oceans, + flags = "force_placement, all_floors", + height = 1, + height_max = 1, + place_offset_y = -1, + }) + --rare CORAl + minetest.register_decoration({ + deco_type = "schematic", + place_on = {"group:sand","mcl_core:gravel"}, + fill_ratio = 0.0001, + sidelen = 80, + biomes = warm_oceans, + y_min = OCEAN_MIN, + y_max = -8, + schematic = mod_mcl_structures.."/schematics/coral_cora.mts", + rotation = "random", + flags = "place_center_x,place_center_z, force_placement", + }) + + -- Large ice spike minetest.register_decoration({ deco_type = "schematic", diff --git a/mods/MAPGEN/mcl_structures/schematics/coral_cora.mts b/mods/MAPGEN/mcl_structures/schematics/coral_cora.mts new file mode 100644 index 0000000000000000000000000000000000000000..8ee97182094687f97337715c8583f6f74dbd3887 GIT binary patch literal 719 zcmeYb3HD`RVc=t6W8kR=0|r3`=ETe*2C3ZSocR3Y)WkfijQpa!_~iVe#GLq~oc!c$ z1_`WkX^D9ZBG_aY#1NuMrAbLSsSwkU?LZa>n52g#!GK-+*f%PG|8%YM@ZfPVl zixM+YJtc`<667mUtWwCHMOX!KKyGPqMp1r#Zm|`N6KPP-}8tia>?_)^%Eu>ThO<7C;yIRp)|s%r`iii$lGL>@44sfEQQDolEn#~e7t z{)zFOo3GwmMIUCKmlMPG&*V*b@28KazFcBa&gu!g8gRkM{MenWna{hQiEJ;~e7dc0 z)!dJ>Kkj{Y_{cAh-p;Z;Iy=9fQBCF5`mt=5cCD=~&-SN&&RP2>Q~C$ zr$`=U`6fK4Fko+gf!ss?5VKjob5AXv@N@BJ@z-3-qu1MJdrz~uUdnjt+!ePoH|Csq kxi+KbcZU8}zT-g)L-}&qY7c!Y2|nSiRrG`P`!od>0M)f6KL7v# literal 0 HcmV?d00001 diff --git a/mods/MAPGEN/mcl_structures/schematics/mcl_structures_coral_brain_1.mts b/mods/MAPGEN/mcl_structures/schematics/mcl_structures_coral_brain_1.mts new file mode 100644 index 0000000000000000000000000000000000000000..03e1ddfb621c637646b1faafc1db38d6062a994c GIT binary patch literal 157 zcmeYb3HD`RVPIxpWniuc0T3rKvxq@DH#sLhKRGoq&nl@XF*7edIlm||Cq5}BKRKI0 z61!wtVjhDiR;h|P$q5e3Jv=@oBW?WR=*kPbF(MMvFLjXUEgU~tGB!zBgMsD>9 S4_r)T_$m}c7+im`tN{RRr89s4 literal 0 HcmV?d00001 diff --git a/mods/MAPGEN/mcl_structures/schematics/mcl_structures_coral_brain_2.mts b/mods/MAPGEN/mcl_structures/schematics/mcl_structures_coral_brain_2.mts new file mode 100644 index 0000000000000000000000000000000000000000..f40af2ec3375bf6be90662128275ca39b1e33eea GIT binary patch literal 124 zcmeYb3HD`RVPIllVqmPVXJBDqPRuM~kj_ociO)|?P0X`ODoV`Ei%-rkO3aB*%E?d8 oW{|`#nUR literal 0 HcmV?d00001 diff --git a/mods/MAPGEN/mcl_structures/schematics/mcl_structures_coral_bubble_1.mts b/mods/MAPGEN/mcl_structures/schematics/mcl_structures_coral_bubble_1.mts new file mode 100644 index 0000000000000000000000000000000000000000..1111368e877da436b84bb6ac4d79fb82dc7fb869 GIT binary patch literal 146 zcmeYb3HD`RVPFQq`uchhGcmJ>K`J*nCq6$pH8IaBsWd4mCpA7fzbG*$J}ohiK?a9h zQciwyHiH;;*@`*I2@Z@s0kb&0jF=UbnXMW+uQ(Uj3K%GGHZpMgXe#sjbg?t^m@qE| E0Q|5m!vFvP literal 0 HcmV?d00001 diff --git a/mods/MAPGEN/mcl_structures/schematics/mcl_structures_coral_bubble_2.mts b/mods/MAPGEN/mcl_structures/schematics/mcl_structures_coral_bubble_2.mts new file mode 100644 index 0000000000000000000000000000000000000000..c3cf1012e3bc6827183080c6a986348bf509f183 GIT binary patch literal 129 zcmeYb3HD`RVPIxpVqmPV2eA?}ix^~blXK$plT#D(tddHTl5$exlkq~d9g+-^GnkYBnV~6W literal 0 HcmV?d00001 diff --git a/mods/MAPGEN/mcl_structures/schematics/mcl_structures_coral_horn_1.mts b/mods/MAPGEN/mcl_structures/schematics/mcl_structures_coral_horn_1.mts new file mode 100644 index 0000000000000000000000000000000000000000..03c8f0e851a8205b14e91d4910ffdc6ff9daf7c4 GIT binary patch literal 152 zcmeYb3HD`RVPIikW?-(buLm&_Gm99ca+7o7^OI8(^Q2Q1h&Mq6%n>GR;*87(QY6qVR6vwpb9rLgO3xl F3;>(xEV%#x literal 0 HcmV?d00001 diff --git a/mods/MAPGEN/mcl_structures/schematics/mcl_structures_coral_tube_2.mts b/mods/MAPGEN/mcl_structures/schematics/mcl_structures_coral_tube_2.mts new file mode 100644 index 0000000000000000000000000000000000000000..cd4372f9560c556a9e80e29da496b06fa2954968 GIT binary patch literal 126 zcmeYb3HD`RVPFEm`g#Ty2Ij=fA_j@v39Oc5c`YeX(ZDpvhCw`sNfiKbwkM_l literal 0 HcmV?d00001 From 2b87958678a9a1dd9e528cb0d40eff6e8c25149e Mon Sep 17 00:00:00 2001 From: cora Date: Thu, 23 Jun 2022 17:18:01 +0200 Subject: [PATCH 2/2] add all sizes of sea pickles not just 1 --- mods/MAPGEN/mcl_biomes/init.lua | 44 ++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/mods/MAPGEN/mcl_biomes/init.lua b/mods/MAPGEN/mcl_biomes/init.lua index c4e11a958..023cd3de9 100644 --- a/mods/MAPGEN/mcl_biomes/init.lua +++ b/mods/MAPGEN/mcl_biomes/init.lua @@ -2609,7 +2609,7 @@ local function register_decorations() deco_type = "simple", place_on = {"mcl_ocean:dead_brain_coral_block"}, sidelen = 16, - fill_ratio = 10, + fill_ratio = 3, y_min = OCEAN_MIN, y_max = 1, decoration = "mcl_ocean:sea_pickle_1_dead_brain_coral_block", @@ -2619,6 +2619,48 @@ local function register_decorations() height_max = 1, place_offset_y = -1, }) + minetest.register_decoration({ + deco_type = "simple", + place_on = {"mcl_ocean:dead_brain_coral_block"}, + sidelen = 16, + fill_ratio = 3, + y_min = OCEAN_MIN, + y_max = 1, + decoration = "mcl_ocean:sea_pickle_2_dead_brain_coral_block", + biomes = warm_oceans, + flags = "force_placement, all_floors", + height = 1, + height_max = 1, + place_offset_y = -1, + }) + minetest.register_decoration({ + deco_type = "simple", + place_on = {"mcl_ocean:dead_brain_coral_block"}, + sidelen = 16, + fill_ratio = 2, + y_min = OCEAN_MIN, + y_max = 1, + decoration = "mcl_ocean:sea_pickle_3_dead_brain_coral_block", + biomes = warm_oceans, + flags = "force_placement, all_floors", + height = 1, + height_max = 1, + place_offset_y = -1, + }) + minetest.register_decoration({ + deco_type = "simple", + place_on = {"mcl_ocean:dead_brain_coral_block"}, + sidelen = 16, + fill_ratio = 2, + y_min = OCEAN_MIN, + y_max = 1, + decoration = "mcl_ocean:sea_pickle_4_dead_brain_coral_block", + biomes = warm_oceans, + flags = "force_placement, all_floors", + height = 1, + height_max = 1, + place_offset_y = -1, + }) --rare CORAl minetest.register_decoration({ deco_type = "schematic",