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(),
local function register_mgv6_waterlily()
minetest.register_decoration({
- deco_type = "schematic",
+ deco_type = "simple",
place_on = {"default:dirt"},
sidelen = 16,
noise_params = {
},
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
local function register_waterlily()
minetest.register_decoration({
- deco_type = "schematic",
+ deco_type = "simple",
place_on = {"default:dirt"},
sidelen = 16,
noise_params = {
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