Waterlily: Place as Y-offset simple decoration
authorparamat <paramat@users.noreply.github.com>
Sun, 25 Feb 2018 21:03:54 +0000 (21:03 +0000)
committerparamat <mat.gregory@virginmedia.com>
Tue, 27 Feb 2018 01:16:48 +0000 (01:16 +0000)
mods/flowers/init.lua
mods/flowers/mapgen.lua
mods/flowers/schematics/waterlily.mts [deleted file]

index 923a7d66b63d291c5ed79447a1bede5d454dc3c8..f2affb99247d99aa4d4f803da2fbcd1275d9c4ce 100644 (file)
@@ -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(),
index 1c155add97ebe43b5995d62f282458cb077e602c..5e81925bab6aac953f6a2d7029d42c3f79b1d361 100644 (file)
@@ -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 (file)
index 69e1d8e..0000000
Binary files a/mods/flowers/schematics/waterlily.mts and /dev/null differ