Skip to content

Commit 81e9a7c

Browse files
committedDec 3, 2013
Add waving property for leaves and plants.
1 parent a5a59e3 commit 81e9a7c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
 

‎mods/default/nodes.lua

+3
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ minetest.register_node("default:jungleleaves", {
258258
visual_scale = 1.3,
259259
tiles = {"default_jungleleaves.png"},
260260
paramtype = "light",
261+
waving = 1,
261262
is_ground_content = false,
262263
groups = {snappy=3, leafdecay=3, flammable=2, leaves=1},
263264
drop = {
@@ -320,6 +321,7 @@ minetest.register_node("default:leaves", {
320321
visual_scale = 1.3,
321322
tiles = {"default_leaves.png"},
322323
paramtype = "light",
324+
waving = 1,
323325
is_ground_content = false,
324326
groups = {snappy=3, leafdecay=3, flammable=2, leaves=1},
325327
drop = {
@@ -1227,6 +1229,7 @@ minetest.register_node("default:dry_shrub", {
12271229
inventory_image = "default_dry_shrub.png",
12281230
wield_image = "default_dry_shrub.png",
12291231
paramtype = "light",
1232+
waving = 1,
12301233
walkable = false,
12311234
is_ground_content = true,
12321235
buildable_to = true,

‎mods/farming/init.lua

+5
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ minetest.register_node(":default:grass_1", {
189189
inventory_image = "default_grass_3.png",
190190
wield_image = "default_grass_3.png",
191191
paramtype = "light",
192+
waving = 1,
192193
walkable = false,
193194
buildable_to = true,
194195
drop = {
@@ -220,6 +221,7 @@ for i=2,5 do
220221
inventory_image = "default_grass_"..i..".png",
221222
wield_image = "default_grass_"..i..".png",
222223
paramtype = "light",
224+
waving = 1,
223225
walkable = false,
224226
buildable_to = true,
225227
is_ground_content = true,
@@ -247,6 +249,7 @@ minetest.register_node(":default:junglegrass", {
247249
inventory_image = "default_junglegrass.png",
248250
wield_image = "default_junglegrass.png",
249251
paramtype = "light",
252+
waving = 1,
250253
walkable = false,
251254
buildable_to = true,
252255
is_ground_content = true,
@@ -365,6 +368,7 @@ for i=1,8 do
365368
drawtype = "plantlike",
366369
tiles = {"farming_wheat_"..i..".png"},
367370
paramtype = "light",
371+
waving = 1,
368372
walkable = false,
369373
buildable_to = true,
370374
is_ground_content = true,
@@ -450,6 +454,7 @@ for i=1,8 do
450454
drawtype = "plantlike",
451455
tiles = {"farming_cotton_"..i..".png"},
452456
paramtype = "light",
457+
waving = 1,
453458
walkable = false,
454459
buildable_to = true,
455460
is_ground_content = true,

0 commit comments

Comments
 (0)
Please sign in to comment.