Skip to content

Instantly share code, notes, and snippets.

@PilzAdam
Created November 21, 2013 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PilzAdam/7585235 to your computer and use it in GitHub Desktop.
Save PilzAdam/7585235 to your computer and use it in GitHub Desktop.
diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua
index 227a26b..cb83d3b 100644
--- a/mods/default/nodes.lua
+++ b/mods/default/nodes.lua
@@ -255,6 +255,7 @@ minetest.register_node("default:jungleleaves", {
visual_scale = 1.3,
tiles = {"default_jungleleaves.png"},
paramtype = "light",
+ paramtype2 = "waving",
groups = {snappy=3, leafdecay=3, flammable=2, leaves=1},
drop = {
max_items = 1,
@@ -282,6 +283,7 @@ minetest.register_node("default:junglesapling", {
inventory_image = "default_junglesapling.png",
wield_image = "default_junglesapling.png",
paramtype = "light",
+ paramtype2 = "waving",
walkable = false,
selection_box = {
type = "fixed",
@@ -299,6 +301,7 @@ minetest.register_node("default:junglegrass", {
inventory_image = "default_junglegrass.png",
wield_image = "default_junglegrass.png",
paramtype = "light",
+ paramtype2 = "waving",
walkable = false,
buildable_to = true,
is_ground_content = true,
@@ -316,6 +319,7 @@ minetest.register_node("default:leaves", {
visual_scale = 1.3,
tiles = {"default_leaves.png"},
paramtype = "light",
+ paramtype2 = "waving",
groups = {snappy=3, leafdecay=3, flammable=2, leaves=1},
drop = {
max_items = 1,
@@ -1166,6 +1170,7 @@ minetest.register_node("default:sapling", {
inventory_image = "default_sapling.png",
wield_image = "default_sapling.png",
paramtype = "light",
+ paramtype2 = "waving",
walkable = false,
selection_box = {
type = "fixed",
@@ -1206,6 +1211,7 @@ minetest.register_node("default:dry_shrub", {
inventory_image = "default_dry_shrub.png",
wield_image = "default_dry_shrub.png",
paramtype = "light",
+ paramtype2 = "waving",
walkable = false,
buildable_to = true,
groups = {snappy=3,flammable=3,attached_node=1},
@@ -1224,6 +1230,7 @@ minetest.register_node("default:grass_1", {
inventory_image = "default_grass_3.png",
wield_image = "default_grass_3.png",
paramtype = "light",
+ paramtype2 = "waving",
walkable = false,
buildable_to = true,
groups = {snappy=3,flammable=3,flora=1,attached_node=1},
@@ -1247,6 +1254,7 @@ minetest.register_node("default:grass_2", {
inventory_image = "default_grass_2.png",
wield_image = "default_grass_2.png",
paramtype = "light",
+ paramtype2 = "waving",
walkable = false,
buildable_to = true,
is_ground_content = true,
@@ -1265,6 +1273,7 @@ minetest.register_node("default:grass_3", {
inventory_image = "default_grass_3.png",
wield_image = "default_grass_3.png",
paramtype = "light",
+ paramtype2 = "waving",
walkable = false,
buildable_to = true,
is_ground_content = true,
@@ -1284,6 +1293,7 @@ minetest.register_node("default:grass_4", {
inventory_image = "default_grass_4.png",
wield_image = "default_grass_4.png",
paramtype = "light",
+ paramtype2 = "waving",
walkable = false,
buildable_to = true,
is_ground_content = true,
@@ -1303,6 +1313,7 @@ minetest.register_node("default:grass_5", {
inventory_image = "default_grass_5.png",
wield_image = "default_grass_5.png",
paramtype = "light",
+ paramtype2 = "waving",
walkable = false,
buildable_to = true,
is_ground_content = true,
diff --git a/mods/farming/init.lua b/mods/farming/init.lua
index 275eb64..02752b9 100644
--- a/mods/farming/init.lua
+++ b/mods/farming/init.lua
@@ -189,6 +189,7 @@ minetest.register_node(":default:grass_1", {
inventory_image = "default_grass_3.png",
wield_image = "default_grass_3.png",
paramtype = "light",
+ paramtype2 = "waving",
walkable = false,
buildable_to = true,
drop = {
@@ -220,6 +221,7 @@ for i=2,5 do
inventory_image = "default_grass_"..i..".png",
wield_image = "default_grass_"..i..".png",
paramtype = "light",
+ paramtype2 = "waving",
walkable = false,
buildable_to = true,
is_ground_content = true,
@@ -247,6 +249,7 @@ minetest.register_node(":default:junglegrass", {
inventory_image = "default_junglegrass.png",
wield_image = "default_junglegrass.png",
paramtype = "light",
+ paramtype2 = "waving",
walkable = false,
buildable_to = true,
is_ground_content = true,
@@ -365,6 +368,7 @@ for i=1,8 do
drawtype = "plantlike",
tiles = {"farming_wheat_"..i..".png"},
paramtype = "light",
+ paramtype2 = "waving",
walkable = false,
buildable_to = true,
is_ground_content = true,
@@ -450,6 +454,7 @@ for i=1,8 do
drawtype = "plantlike",
tiles = {"farming_cotton_"..i..".png"},
paramtype = "light",
+ paramtype2 = "waving",
walkable = false,
buildable_to = true,
is_ground_content = true,
diff --git a/mods/flowers/init.lua b/mods/flowers/init.lua
index b409647..84d3711 100644
--- a/mods/flowers/init.lua
+++ b/mods/flowers/init.lua
@@ -20,6 +20,7 @@ minetest.register_node("flowers:dandelion_white", {
wield_image = "flowers_dandelion_white.png",
sunlight_propagates = true,
paramtype = "light",
+ paramtype2 = "waving",
walkable = false,
buildable_to = true,
groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_white=1},
@@ -38,6 +39,7 @@ minetest.register_node("flowers:dandelion_yellow", {
wield_image = "flowers_dandelion_yellow.png",
sunlight_propagates = true,
paramtype = "light",
+ paramtype2 = "waving",
walkable = false,
buildable_to = true,
groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_yellow=1},
@@ -56,6 +58,7 @@ minetest.register_node("flowers:geranium", {
wield_image = "flowers_geranium.png",
sunlight_propagates = true,
paramtype = "light",
+ paramtype2 = "waving",
walkable = false,
buildable_to = true,
groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_blue=1},
@@ -74,6 +77,7 @@ minetest.register_node("flowers:rose", {
wield_image = "flowers_rose.png",
sunlight_propagates = true,
paramtype = "light",
+ paramtype2 = "waving",
walkable = false,
buildable_to = true,
groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_red=1},
@@ -92,6 +96,7 @@ minetest.register_node("flowers:tulip", {
wield_image = "flowers_tulip.png",
sunlight_propagates = true,
paramtype = "light",
+ paramtype2 = "waving",
walkable = false,
buildable_to = true,
groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_orange=1},
@@ -110,6 +115,7 @@ minetest.register_node("flowers:viola", {
wield_image = "flowers_viola.png",
sunlight_propagates = true,
paramtype = "light",
+ paramtype2 = "waving",
walkable = false,
buildable_to = true,
groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_violet=1},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment