From 4c4ebabea906607caf3ff2e4f8ac1f24507a27f7 Mon Sep 17 00:00:00 2001
From: Wuzzy <almikes@aol.com>
Date: Fri, 8 Sep 2017 17:56:04 +0200
Subject: [PATCH] Add mushroom island shore

---
 mods/MAPGEN/mcl_biomes/init.lua | 24 +++++++++++++++++++-----
 1 file changed, 19 insertions(+), 5 deletions(-)

diff --git a/mods/MAPGEN/mcl_biomes/init.lua b/mods/MAPGEN/mcl_biomes/init.lua
index debc11034..ba24ef546 100644
--- a/mods/MAPGEN/mcl_biomes/init.lua
+++ b/mods/MAPGEN/mcl_biomes/init.lua
@@ -632,12 +632,26 @@ local function register_biomes()
 		depth_filler = 3,
 		node_riverbed = "mcl_core:sand",
 		depth_riverbed = 2,
-		y_min = 1,
+		y_min = 4,
 		y_max = 20,
 		heat_point = 99,
 		humidity_point = 99,
 	})
 
+	minetest.register_biome({
+		name = "mushroom_island_shore",
+		node_top = "mcl_core:mycelium",
+		depth_top = 1,
+		node_filler = "mcl_core:dirt",
+		depth_filler = 3,
+		node_riverbed = "mcl_core:sand",
+		depth_riverbed = 2,
+		y_min = 1,
+		y_max = 3,
+		heat_point = 99,
+		humidity_point = 99,
+	})
+
 	minetest.register_biome({
 		name = "mushroom_island_ocean",
 		node_top = "mcl_core:dirt",
@@ -1537,7 +1551,7 @@ local function register_decorations()
 		place_on = { "mcl_core:mycelium" },
 		sidelen = 80,
 		fill_ratio = 0.002,
-		biomes = { "mushroom_island" },
+		biomes = { "mushroom_island", "mushroom_island_shore" },
 		y_min = mcl_vars.mg_overworld_min,
 		y_max = mcl_vars.mg_overworld_max,
 		schematic = minetest.get_modpath("mcl_mushrooms").."/schematics/mcl_mushrooms_huge_brown.mts",
@@ -1565,7 +1579,7 @@ local function register_decorations()
 		place_on = { "mcl_core:mycelium" },
 		sidelen = 50,
 		fill_ratio = 0.002,
-		biomes = { "mushroom_island" },
+		biomes = { "mushroom_island", "mushroom_island_shore" },
 		y_min = mcl_vars.mg_overworld_min,
 		y_max = mcl_vars.mg_overworld_max,
 		schematic = minetest.get_modpath("mcl_mushrooms").."/schematics/mcl_mushrooms_huge_red.mts",
@@ -2096,7 +2110,7 @@ local function register_decorations()
 		place_on = {"mcl_core:mycelium"},
 		sidelen = 80,
 		fill_ratio = 0.009,
-		biomes = {"mushroom_island"},
+		biomes = {"mushroom_island", "mushroom_island_shore"},
 		noise_threshold = 2.0,
 		y_min = mcl_vars.mg_overworld_min,
 		y_max = mcl_vars.mg_overworld_max,
@@ -2107,7 +2121,7 @@ local function register_decorations()
 		place_on = {"mcl_core:mycelium"},
 		sidelen = 80,
 		fill_ratio = 0.009,
-		biomes = {"mushroom_island"},
+		biomes = {"mushroom_island", "mushroom_island_shore"},
 		y_min = mcl_vars.mg_overworld_min,
 		y_max = mcl_vars.mg_overworld_max,
 		decoration = "mcl_mushrooms:mushroom_brown",