mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 09:31:07 +01:00
Enable waving small plants and leaves
Caveats: Double plants do not wave
This commit is contained in:
parent
62e4be98aa
commit
f1bbb1237b
3 changed files with 6 additions and 0 deletions
|
@ -79,6 +79,7 @@ minetest.register_node("mcl_core:deadbush", {
|
|||
_doc_items_longdesc = "Dead bushes are unremarkable plants often found in dry areas. They can be harvested for sticks.",
|
||||
_doc_items_hidden = false,
|
||||
drawtype = "plantlike",
|
||||
waving = 1,
|
||||
visual_scale = 1.0,
|
||||
tiles = {"default_dry_shrub.png"},
|
||||
inventory_image = "default_dry_shrub.png",
|
||||
|
|
|
@ -69,6 +69,7 @@ local register_leaves = function(subname, description, longdesc, tiles, drop1, d
|
|||
_doc_items_longdesc = longdesc,
|
||||
_doc_items_hidden = false,
|
||||
drawtype = "allfaces_optional",
|
||||
waving = 2,
|
||||
place_param2 = 1, -- Prevent leafdecay for placed nodes
|
||||
tiles = tiles,
|
||||
paramtype = "light",
|
||||
|
@ -88,6 +89,7 @@ local register_sapling = function(subname, description, longdesc, texture, selbo
|
|||
_doc_items_longdesc = longdesc,
|
||||
_doc_items_hidden = false,
|
||||
drawtype = "plantlike",
|
||||
waving = 1,
|
||||
visual_scale = 1.0,
|
||||
tiles = {texture},
|
||||
inventory_image = texture,
|
||||
|
|
|
@ -31,6 +31,7 @@ local function add_simple_flower(name, desc, image, simple_selection_box)
|
|||
_doc_items_longdesc = smallflowerlongdesc,
|
||||
_doc_items_usagehelp = flowerusagehelp,
|
||||
drawtype = "plantlike",
|
||||
waving = 1,
|
||||
tiles = { image..".png" },
|
||||
inventory_image = image..".png",
|
||||
wield_image = image..".png",
|
||||
|
@ -79,6 +80,7 @@ minetest.register_node("mcl_flowers:tallgrass", {
|
|||
_doc_items_longdesc = "Tall grass is a small plant which often occours on the surface of grasslands. It can be harvested for wheat seeds. By using bone meal, tall grass can be turned into double tallgrass which is two blocks high.",
|
||||
_doc_items_hidden = false,
|
||||
drawtype = "plantlike",
|
||||
waving = 1,
|
||||
tiles = {"mcl_flowers_tallgrass.png"},
|
||||
inventory_image = "mcl_flowers_tallgrass.png",
|
||||
wield_image = "mcl_flowers_tallgrass.png",
|
||||
|
@ -107,6 +109,7 @@ minetest.register_node("mcl_flowers:fern", {
|
|||
description = "Fern",
|
||||
_doc_items_longdesc = "Ferns are small plants which occour naturally in grasslands. They can be harvested for wheat seeds. By using bone meal, a fern can be turned into a large fern which is two blocks high.",
|
||||
drawtype = "plantlike",
|
||||
waving = 1,
|
||||
tiles = { "mcl_flowers_fern.png" },
|
||||
inventory_image = "mcl_flowers_fern.png",
|
||||
wield_image = "mcl_flowers_fern.png",
|
||||
|
|
Loading…
Reference in a new issue