Skip to content

Commit 63ebdfd

Browse files
committedFeb 27, 2018
Waterlily: Place as Y-offset simple decoration
1 parent 702070a commit 63ebdfd

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed
 

‎mods/flowers/init.lua

-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,6 @@ minetest.register_node("flowers:waterlily", {
280280
liquids_pointable = true,
281281
walkable = false,
282282
buildable_to = true,
283-
sunlight_propagates = true,
284283
floodable = true,
285284
groups = {snappy = 3, flower = 1, flammable = 1},
286285
sounds = default.node_sound_leaves_defaults(),

‎mods/flowers/mapgen.lua

+10-6
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ end
4444

4545
local function register_mgv6_waterlily()
4646
minetest.register_decoration({
47-
deco_type = "schematic",
47+
deco_type = "simple",
4848
place_on = {"default:dirt"},
4949
sidelen = 16,
5050
noise_params = {
@@ -57,8 +57,10 @@ local function register_mgv6_waterlily()
5757
},
5858
y_max = 0,
5959
y_min = 0,
60-
schematic = minetest.get_modpath("flowers").."/schematics/waterlily.mts",
61-
rotation = "random",
60+
decoration = "flowers:waterlily",
61+
param2 = 0,
62+
param2_max = 3,
63+
place_offset_y = 1,
6264
})
6365
end
6466

@@ -124,7 +126,7 @@ end
124126

125127
local function register_waterlily()
126128
minetest.register_decoration({
127-
deco_type = "schematic",
129+
deco_type = "simple",
128130
place_on = {"default:dirt"},
129131
sidelen = 16,
130132
noise_params = {
@@ -138,8 +140,10 @@ local function register_waterlily()
138140
biomes = {"rainforest_swamp", "savanna_shore", "deciduous_forest_shore"},
139141
y_max = 0,
140142
y_min = 0,
141-
schematic = minetest.get_modpath("flowers") .. "/schematics/waterlily.mts",
142-
rotation = "random",
143+
decoration = "flowers:waterlily",
144+
param2 = 0,
145+
param2_max = 3,
146+
place_offset_y = 1,
143147
})
144148
end
145149

‎mods/flowers/schematics/waterlily.mts

-75 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.