From f1bbb1237bc2842bd29fae4bba09c614595f3d58 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 13 Sep 2017 06:50:54 +0200 Subject: [PATCH] Enable waving small plants and leaves Caveats: Double plants do not wave --- mods/ITEMS/mcl_core/nodes_misc.lua | 1 + mods/ITEMS/mcl_core/nodes_trees.lua | 2 ++ mods/ITEMS/mcl_flowers/init.lua | 3 +++ 3 files changed, 6 insertions(+) diff --git a/mods/ITEMS/mcl_core/nodes_misc.lua b/mods/ITEMS/mcl_core/nodes_misc.lua index 4057552db7..6c69fe6502 100644 --- a/mods/ITEMS/mcl_core/nodes_misc.lua +++ b/mods/ITEMS/mcl_core/nodes_misc.lua @@ -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", diff --git a/mods/ITEMS/mcl_core/nodes_trees.lua b/mods/ITEMS/mcl_core/nodes_trees.lua index bb12e0dffe..d2ed7d0678 100644 --- a/mods/ITEMS/mcl_core/nodes_trees.lua +++ b/mods/ITEMS/mcl_core/nodes_trees.lua @@ -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, diff --git a/mods/ITEMS/mcl_flowers/init.lua b/mods/ITEMS/mcl_flowers/init.lua index 42af353764..852f305c60 100644 --- a/mods/ITEMS/mcl_flowers/init.lua +++ b/mods/ITEMS/mcl_flowers/init.lua @@ -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",