From 281010fb8c46f95effbe450c9bb5997d664ef2ab Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Wed, 18 Nov 2015 09:36:37 +0000 Subject: [PATCH] Changed waterlily schematic for sand --- mapgen_v7n.lua | 5 +++-- schematics/waterlily.lua | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 schematics/waterlily.lua diff --git a/mapgen_v7n.lua b/mapgen_v7n.lua index a9cabe1..c70a520 100644 --- a/mapgen_v7n.lua +++ b/mapgen_v7n.lua @@ -11,6 +11,7 @@ dofile(path.."banana_tree.lua") dofile(path.."bamboo_tree.lua") dofile(path.."birch_tree.lua") dofile(path.."bush.lua") +dofile(path.."waterlily.lua") --= Biomes (Minetest 0.4.13 and above) @@ -1033,7 +1034,7 @@ end if minetest.registered_nodes["flowers:waterlily"] then minetest.register_decoration({ deco_type = "schematic", - place_on = {"default:sand", "default:dirt"}, + place_on = {"default:sand"}, sidelen = 16, noise_params = { offset = -0.12, @@ -1049,7 +1050,7 @@ if minetest.registered_nodes["flowers:waterlily"] then }, y_min = 0, y_max = 0, - schematic = minetest.get_modpath("flowers").."/schematics/waterlily.mts", + schematic = ethereal.waterlily, rotation = "random", }) end diff --git a/schematics/waterlily.lua b/schematics/waterlily.lua new file mode 100644 index 0000000..4bd8b3a --- /dev/null +++ b/schematics/waterlily.lua @@ -0,0 +1,17 @@ + +-- Waterlily (built column by column, bottom to top) + +local a = "default:sand" +local b = "default:water_source" +local c = "flowers:waterlily" + +ethereal.waterlily = { + size = {x = 1, y = 3, z = 1}, + data = { + + {name=a, param1=255}, + {name=b, param1=255}, + {name=c, param1=255}, + + }, +}