From 63ebdfd139febe9ff9be612ec539daab8940697e Mon Sep 17 00:00:00 2001 From: paramat Date: Sun, 25 Feb 2018 21:03:54 +0000 Subject: [PATCH] Waterlily: Place as Y-offset simple decoration --- mods/flowers/init.lua | 1 - mods/flowers/mapgen.lua | 16 ++++++++++------ mods/flowers/schematics/waterlily.mts | Bin 75 -> 0 bytes 3 files changed, 10 insertions(+), 7 deletions(-) delete mode 100644 mods/flowers/schematics/waterlily.mts diff --git a/mods/flowers/init.lua b/mods/flowers/init.lua index 923a7d66..f2affb99 100644 --- a/mods/flowers/init.lua +++ b/mods/flowers/init.lua @@ -280,7 +280,6 @@ minetest.register_node("flowers:waterlily", { liquids_pointable = true, walkable = false, buildable_to = true, - sunlight_propagates = true, floodable = true, groups = {snappy = 3, flower = 1, flammable = 1}, sounds = default.node_sound_leaves_defaults(), diff --git a/mods/flowers/mapgen.lua b/mods/flowers/mapgen.lua index 1c155add..5e81925b 100644 --- a/mods/flowers/mapgen.lua +++ b/mods/flowers/mapgen.lua @@ -44,7 +44,7 @@ end local function register_mgv6_waterlily() minetest.register_decoration({ - deco_type = "schematic", + deco_type = "simple", place_on = {"default:dirt"}, sidelen = 16, noise_params = { @@ -57,8 +57,10 @@ local function register_mgv6_waterlily() }, y_max = 0, y_min = 0, - schematic = minetest.get_modpath("flowers").."/schematics/waterlily.mts", - rotation = "random", + decoration = "flowers:waterlily", + param2 = 0, + param2_max = 3, + place_offset_y = 1, }) end @@ -124,7 +126,7 @@ end local function register_waterlily() minetest.register_decoration({ - deco_type = "schematic", + deco_type = "simple", place_on = {"default:dirt"}, sidelen = 16, noise_params = { @@ -138,8 +140,10 @@ local function register_waterlily() biomes = {"rainforest_swamp", "savanna_shore", "deciduous_forest_shore"}, y_max = 0, y_min = 0, - schematic = minetest.get_modpath("flowers") .. "/schematics/waterlily.mts", - rotation = "random", + decoration = "flowers:waterlily", + param2 = 0, + param2_max = 3, + place_offset_y = 1, }) end diff --git a/mods/flowers/schematics/waterlily.mts b/mods/flowers/schematics/waterlily.mts deleted file mode 100644 index 69e1d8e0c76ea232c9e17f52b6d4dbcb30e378fd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 75 zcmeYb3HD`RVPIrnW?-zZuLn{*DXD3Rr8y;5DVaqj49tm{MGS&zIr-(OMa5R-i6yB; dIhi??6?2jk5)x7pew`0Ef8YQE1BWDI695=37