From bc9f4b059d10477f1ee5c731e0bdf0ead65baa3c Mon Sep 17 00:00:00 2001
From: TenPlus1 <kinsellaja@yahoo.com>
Date: Thu, 24 Nov 2016 10:49:24 +0000
Subject: [PATCH] added bakedclay plants to mapgen

---
 README.md     |  1 +
 mapgen.lua    | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++
 plantpack.lua |  2 +-
 3 files changed, 85 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 0c6ddc3..43df251 100644
--- a/README.md
+++ b/README.md
@@ -16,6 +16,7 @@ Ethereal Mapgen mod for Minetest (works on all except v6)
  - Bonemeal changes to suit new sapling growth
  - Fixes and tweaks
  - Added default Abm overrides
+ - Added 4 new plants from baked clay mod to mapgen
 
 ### 1.20
 
diff --git a/mapgen.lua b/mapgen.lua
index 5d465ed..fb04c08 100644
--- a/mapgen.lua
+++ b/mapgen.lua
@@ -562,3 +562,86 @@ minetest.register_on_generated(function(minp, maxp)
 		end
 	end
 end)
+
+-- is baked clay mod active? add new flowers if so
+if minetest.get_modpath("bakedclay") then
+
+minetest.register_decoration({
+	deco_type = "simple",
+	place_on = {
+		"ethereal:prairie_grass", "ethereal:green_dirt",
+		"ethereal:grove_dirt"
+	},
+	sidelen = 16,
+	noise_params = {
+		offset = 0,
+		scale = 0.004,
+		spread = {x = 100, y = 100, z = 100},
+		seed = 7133,
+		octaves = 3,
+		persist = 0.6
+	},
+	y_min = 10,
+	y_max = 90,
+	decoration = "bakedclay:delphinium",
+})
+
+minetest.register_decoration({
+	deco_type = "simple",
+	place_on = {
+		"ethereal:prairie_grass", "ethereal:green_dirt",
+		"ethereal:grove_dirt", "ethereal:bamboo_dirt"
+	},
+	sidelen = 16,
+	noise_params = {
+		offset = 0,
+		scale = 0.004,
+		spread = {x = 100, y = 100, z = 100},
+		seed = 7134,
+		octaves = 3,
+		persist = 0.6
+	},
+	y_min = 15,
+	y_max = 90,
+	decoration = "bakedclay:thistle",
+})
+
+minetest.register_decoration({
+	deco_type = "simple",
+	place_on = {"ethereal:jungle_dirt"},
+	sidelen = 16,
+	noise_params = {
+		offset = 0,
+		scale = 0.01,
+		spread = {x = 100, y = 100, z = 100},
+		seed = 7135,
+		octaves = 3,
+		persist = 0.6
+	},
+	y_min = 1,
+	y_max = 90,
+	decoration = "bakedclay:lazarus",
+	spawn_by = "default:jungletree",
+	num_spawn_by = 1,
+})
+
+minetest.register_decoration({
+	deco_type = "simple",
+	place_on = {"ethereal:green_dirt", "default:sand"},
+	sidelen = 16,
+	noise_params = {
+		offset = 0,
+		scale = 0.009,
+		spread = {x = 100, y = 100, z = 100},
+		seed = 7136,
+		octaves = 3,
+		persist = 0.6
+	},
+	y_min = 1,
+	y_max = 15,
+	decoration = "bakedclay:mannagrass",
+	spawn_by = "group:water",
+	num_spawn_by = 1,
+})
+
+end
\ No newline at end of file
diff --git a/plantpack.lua b/plantpack.lua
index c323e45..001ac0d 100644
--- a/plantpack.lua
+++ b/plantpack.lua
@@ -144,7 +144,7 @@ minetest.register_decoration({
 
 minetest.register_decoration({
 	deco_type = "simple",
-	place_on = {"default:sand", "default:green_dirt"},
+	place_on = {"default:sand", "ethereal:green_dirt"},
 	sidelen = 16,
 	fill_ratio = 0.015,
 	biomes = {"sandclay", "grassy_ocean", "grassy", "grassytwo", "jumble"},
-- 
GitLab