diff options
-rw-r--r-- | mapgen_v7n.lua | 5 | ||||
-rw-r--r-- | schematics/waterlily.lua | 17 |
2 files changed, 20 insertions, 2 deletions
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}, + + }, +} |