Skip to content

Commit

Permalink
Waterlily: Place as Y-offset simple decoration
Browse files Browse the repository at this point in the history
  • Loading branch information
paramat committed Feb 27, 2018
1 parent 702070a commit 63ebdfd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
1 change: 0 additions & 1 deletion mods/flowers/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
16 changes: 10 additions & 6 deletions mods/flowers/mapgen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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

Expand Down Expand Up @@ -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 = {
Expand All @@ -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

Expand Down
Binary file removed mods/flowers/schematics/waterlily.mts
Binary file not shown.

0 comments on commit 63ebdfd

Please sign in to comment.