This commit is contained in:
Calinou 2015-09-14 22:20:27 +00:00
commit c26ac2e01a
4 changed files with 42 additions and 0 deletions

View file

@ -236,3 +236,25 @@ minetest.register_abm({
end
end
})
minetest.register_node("flowers:lilypad", {
description = "Lilypad",
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
walkable = false,
tiles = {"flowers_lilypad.png"},
inventory_image = "flowers_lilypad.png",
wield_image = "flowers_lilypad.png",
sunlight_propagates = true,
groups = {snappy = 3, flammable = 2, flora = 1, attached_node = 1},
sounds = default.node_sound_leaves_defaults(),
node_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.49, 0.5}
},
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.46, 0.5}
}
})

View file

@ -116,6 +116,26 @@ function flowers.register_decorations()
register_mushroom("mushroom_fertile_red")
end
minetest.register_decoration({
deco_type = "schematic",
place_on = {"default:sand", "default:dirt"},
spawn_by = {"default:water_source"},
num_spawn_by = 1,
sidelen = 16,
noise_params = {
offset = -0.3,
scale = 0.7,
spread = {x=200, y=200, z=200},
seed = 354,
octaves = 3,
persist = 0.7
},
y_min = 0,
y_max = 0,
schematic = minetest.get_modpath("flowers").."/schematics/lilypad.mts",
rotation = "random",
})
--
-- Detect mapgen to select functions

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 B