forked from VoxeLibre/VoxeLibre
Enable waving small plants and leaves
Caveats: Double plants do not wave
This commit is contained in:
parent
62e4be98aa
commit
f1bbb1237b
|
@ -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_longdesc = "Dead bushes are unremarkable plants often found in dry areas. They can be harvested for sticks.",
|
||||||
_doc_items_hidden = false,
|
_doc_items_hidden = false,
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
|
waving = 1,
|
||||||
visual_scale = 1.0,
|
visual_scale = 1.0,
|
||||||
tiles = {"default_dry_shrub.png"},
|
tiles = {"default_dry_shrub.png"},
|
||||||
inventory_image = "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_longdesc = longdesc,
|
||||||
_doc_items_hidden = false,
|
_doc_items_hidden = false,
|
||||||
drawtype = "allfaces_optional",
|
drawtype = "allfaces_optional",
|
||||||
|
waving = 2,
|
||||||
place_param2 = 1, -- Prevent leafdecay for placed nodes
|
place_param2 = 1, -- Prevent leafdecay for placed nodes
|
||||||
tiles = tiles,
|
tiles = tiles,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
@ -88,6 +89,7 @@ local register_sapling = function(subname, description, longdesc, texture, selbo
|
||||||
_doc_items_longdesc = longdesc,
|
_doc_items_longdesc = longdesc,
|
||||||
_doc_items_hidden = false,
|
_doc_items_hidden = false,
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
|
waving = 1,
|
||||||
visual_scale = 1.0,
|
visual_scale = 1.0,
|
||||||
tiles = {texture},
|
tiles = {texture},
|
||||||
inventory_image = 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_longdesc = smallflowerlongdesc,
|
||||||
_doc_items_usagehelp = flowerusagehelp,
|
_doc_items_usagehelp = flowerusagehelp,
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
|
waving = 1,
|
||||||
tiles = { image..".png" },
|
tiles = { image..".png" },
|
||||||
inventory_image = image..".png",
|
inventory_image = image..".png",
|
||||||
wield_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_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,
|
_doc_items_hidden = false,
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
|
waving = 1,
|
||||||
tiles = {"mcl_flowers_tallgrass.png"},
|
tiles = {"mcl_flowers_tallgrass.png"},
|
||||||
inventory_image = "mcl_flowers_tallgrass.png",
|
inventory_image = "mcl_flowers_tallgrass.png",
|
||||||
wield_image = "mcl_flowers_tallgrass.png",
|
wield_image = "mcl_flowers_tallgrass.png",
|
||||||
|
@ -107,6 +109,7 @@ minetest.register_node("mcl_flowers:fern", {
|
||||||
description = "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.",
|
_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",
|
drawtype = "plantlike",
|
||||||
|
waving = 1,
|
||||||
tiles = { "mcl_flowers_fern.png" },
|
tiles = { "mcl_flowers_fern.png" },
|
||||||
inventory_image = "mcl_flowers_fern.png",
|
inventory_image = "mcl_flowers_fern.png",
|
||||||
wield_image = "mcl_flowers_fern.png",
|
wield_image = "mcl_flowers_fern.png",
|
||||||
|
|
Loading…
Reference in New Issue