From 9e0c43feebc579b0bafc0a4ddd73ac641fbcec13 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Mon, 28 Dec 2015 21:36:19 -0800 Subject: For future use, make corn waving just like plantlike. This needs a patch to the core client code to actually work. --- corn.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/corn.lua b/corn.lua index 7a26b8a..17be324 100644 --- a/corn.lua +++ b/corn.lua @@ -17,6 +17,7 @@ minetest.register_node("crops:corn", { tiles = { "crops_corn_base_seed.png" }, drawtype = "mesh", visual = "mesh", + waving = 1, mesh = "crops_orthogonal_plant.obj", sunlight_propagates = true, use_texture_alpha = true, @@ -67,6 +68,7 @@ minetest.register_node("crops:corn_base_seed", { visual = "mesh", description = "corn plant", drawtype = "mesh", + waving = 1, mesh = "crops_orthogonal_plant.obj", tiles = { "crops_corn_base_seed.png" }, use_texture_alpha = true, @@ -101,6 +103,7 @@ minetest.register_node("crops:corn_base_1", { drawtype = "mesh", mesh = "crops_orthogonal_plant.obj", tiles = { "crops_corn_base_1.png" }, + waving = 1, use_texture_alpha = true, walkable = false, sunlight_propagates = true, @@ -199,6 +202,7 @@ minetest.register_node("crops:corn_top_1", { drawtype = "mesh", mesh = "crops_orthogonal_plant.obj", tiles = { "crops_corn_base_1.png" }, + waving = 1, use_texture_alpha = true, walkable = false, sunlight_propagates = true, @@ -235,6 +239,7 @@ minetest.register_node("crops:corn_top_2", { drawtype = "mesh", mesh = "crops_orthogonal_plant.obj", tiles = { "crops_corn_top_1.png" }, + waving = 1, use_texture_alpha = true, walkable = false, sunlight_propagates = true, @@ -273,6 +278,7 @@ minetest.register_node("crops:corn_top_3", { drawtype = "mesh", mesh = "crops_orthogonal_plant.obj", tiles = { "crops_corn_top_2.png" }, + waving = 1, use_texture_alpha = true, walkable = false, sunlight_propagates = true, @@ -302,6 +308,7 @@ minetest.register_node("crops:corn_top_4", { drawtype = "mesh", mesh = "crops_orthogonal_plant.obj", tiles = { "crops_corn_top_3.png" }, + waving = 1, use_texture_alpha = true, walkable = false, sunlight_propagates = true, -- cgit v1.2.3