From f883b4580934a21d8e3177a16973ac5531223795 Mon Sep 17 00:00:00 2001 From: cora Date: Thu, 23 Jun 2022 14:01:05 +0200 Subject: [PATCH] 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?LZcf2bm;;T@R)U(lU#n=7IGgxf@9a;%;dq zGm8>4Q9UJzT@vILQLIwPo<&#%@lot)U3ec`uI}Vl(7F6`{QKU#5n{FvZ`we42p_96GR>`ajAvHB`QpMmB$=7 z#r}!$otv-TTSXsco|hBD_Rr)^c<-l=r@mZbQO@cKyc%%9$^6)zteMZdpNVWQ*?hXK zaMj$8vp?>AcKFCIkKWF*JvuwTo>5KZ)%vk)mUgYJEzkC+e$H9@C6dZlsxa?vYp!)j zQ(3I3ths2X;KYe4V%;<1LeksJS()>Vw6di$BIYgjZQ7Su@~+4K7HeDb?+cPF*6LTv z-KR(%W%(vNr!Zh|e}UXX{}8iTzjIG5p73+=XYtou%cIxZW_wSwxn9b6>f9B#GdJd( ldAT;D=68nvR=(pw3q$#G*=i4cD+xZ~tyT1c_4_mh768??B|iWF 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`RVPFD6#`=07i#ai~h(S6xIVV0pIW;lQDyb+jGcP_lzbG*$J}DLS>;wQz$tlGE 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$exlkB!lD(CM5uwp($nn 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`R0YYX5=KA`25F;_Oh(RhhIVV0pIW;lQDkHxrFFrZHC^08KDJMTUn?VGd z9D@Wl(fG8)yox!=2?+@)4GeBoApoK0Hp>72 literal 0 HcmV?d00001 diff --git a/mods/MAPGEN/mcl_structures/schematics/mcl_structures_coral_horn_2.mts b/mods/MAPGEN/mcl_structures/schematics/mcl_structures_coral_horn_2.mts new file mode 100644 index 0000000000000000000000000000000000000000..8d2ec7f2bddee696bab204bc8fc8df0b256cdd8b GIT binary patch literal 125 zcmeYb3HD`RVPIrnVqmVX2ePDclXK$plT#D(tTOV8^5T>8ixP9V3UeZOU$d7lbn!{kdly;z?O9ER~4H;O3H)81QrGn6DAP=m=Y;> literal 0 HcmV?d00001 diff --git a/mods/MAPGEN/mcl_structures/schematics/mcl_structures_coral_tube_1.mts b/mods/MAPGEN/mcl_structures/schematics/mcl_structures_coral_tube_1.mts new file mode 100644 index 0000000000000000000000000000000000000000..89d08e9eac40597cc04b005da5788f4748ae2caf GIT binary patch literal 138 zcmeYb3HD`RVPIllW?-(buLm-j6Elk#L~@gJ;`5VJ6Z5P}N|RFKlkCEir9HgzbzK>(f`X8%Ro69P~P