mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-06 05:44:26 -04:00
Merge 985432c541
into b6c12010b1
This commit is contained in:
commit
c26ac2e01a
4 changed files with 42 additions and 0 deletions
|
@ -236,3 +236,25 @@ minetest.register_abm({
|
||||||
end
|
end
|
||||||
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}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
|
@ -116,6 +116,26 @@ function flowers.register_decorations()
|
||||||
register_mushroom("mushroom_fertile_red")
|
register_mushroom("mushroom_fertile_red")
|
||||||
end
|
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
|
-- Detect mapgen to select functions
|
||||||
|
|
BIN
mods/flowers/schematics/lilypad.mts
Normal file
BIN
mods/flowers/schematics/lilypad.mts
Normal file
Binary file not shown.
BIN
mods/flowers/textures/flowers_lilypad.png
Normal file
BIN
mods/flowers/textures/flowers_lilypad.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 269 B |
Loading…
Add table
Reference in a new issue