diff --git a/bushes_classic/nodes.lua b/bushes_classic/nodes.lua index 1af4675..6f4a8f0 100644 --- a/bushes_classic/nodes.lua +++ b/bushes_classic/nodes.lua @@ -159,6 +159,7 @@ for i, bush_name in ipairs(bushes_classic.bushes) do paramtype2 = "facedir", on_use = minetest.item_eat(18), groups = { dig_immediate = 3 }, + is_ground_content = false, }) @@ -210,4 +211,5 @@ minetest.register_node(":bushes:basket_empty", { paramtype = "light", paramtype2 = "facedir", groups = { dig_immediate = 3 }, + is_ground_content = false, }) diff --git a/cavestuff/nodes.lua b/cavestuff/nodes.lua index e3e2df0..002c8a1 100644 --- a/cavestuff/nodes.lua +++ b/cavestuff/nodes.lua @@ -78,6 +78,7 @@ minetest.register_node("cavestuff:stalactite_1",{ drawtype="nodebox", tiles = {"undergrowth_pebble.png"}, groups = {cracky=3,attached_node=1}, + is_ground_content = false, description = S("Stalactite"), paramtype = "light", paramtype2 = "wallmounted", @@ -124,6 +125,7 @@ minetest.register_node("cavestuff:stalactite_2",{ drawtype="nodebox", tiles = {"undergrowth_pebble.png"}, groups = {cracky=3,attached_node=1,not_in_creative_inventory=1}, + is_ground_content = false, drop = "cavestuff:stalactite_1", paramtype = "light", paramtype2 = "wallmounted", @@ -142,6 +144,7 @@ minetest.register_node("cavestuff:stalactite_3",{ drawtype="nodebox", tiles = {"undergrowth_pebble.png"}, groups = {cracky=3,attached_node=1,not_in_creative_inventory=1}, + is_ground_content = false, drop = "cavestuff:stalactite_1", paramtype = "light", paramtype2 = "wallmounted", diff --git a/dryplants/init.lua b/dryplants/init.lua index 2aec66c..46b3607 100644 --- a/dryplants/init.lua +++ b/dryplants/init.lua @@ -119,6 +119,7 @@ minetest.register_node("dryplants:grass", { fixed = {-0.5 , -0.5 , -0.5 , 0.5 , -0.4375, 0.5 }, }, groups = {snappy=3, flammable=2}, + is_ground_content = false, sounds = default.node_sound_leaves_defaults(), }) @@ -151,6 +152,7 @@ minetest.register_node("dryplants:hay", { fixed = {-0.5 , -0.5 , -0.5 , 0.5 , -0.4375, 0.5 }, }, groups = {snappy=3, flammable=2}, + is_ground_content = false, sounds = default.node_sound_leaves_defaults(), }) diff --git a/dryplants/reed.lua b/dryplants/reed.lua index 1d3bbc7..a15ee0a 100644 --- a/dryplants/reed.lua +++ b/dryplants/reed.lua @@ -44,6 +44,7 @@ minetest.register_node("dryplants:wetreed_slab", { fixed = {-1/2, -1/2, -1/2, 1/2, 0, 1/2}, }, groups = {snappy=3, flammable=2}, + is_ground_content = false, sounds = default.node_sound_leaves_defaults(), }) @@ -72,6 +73,7 @@ minetest.register_node("dryplants:wetreed_roof", { } }, groups = {snappy=3, flammable=2}, + is_ground_content = false, sounds = default.node_sound_leaves_defaults(), }) @@ -194,6 +196,7 @@ minetest.register_node("dryplants:wetreed_roof_corner", { } }, groups = {snappy=3, flammable=2}, + is_ground_content = false, sounds = default.node_sound_leaves_defaults(), }) @@ -224,6 +227,7 @@ minetest.register_node("dryplants:wetreed_roof_corner_2", { } }, groups = {snappy=3, flammable=2}, + is_ground_content = false, sounds = default.node_sound_leaves_defaults(), }) @@ -263,6 +267,7 @@ minetest.register_node("dryplants:reed", { paramtype2 = "facedir", tiles = {"dryplants_reed.png"}, groups = {snappy=3, flammable=2}, + is_ground_content = false, sounds = default.node_sound_leaves_defaults(), }) @@ -284,6 +289,7 @@ minetest.register_node("dryplants:reed_slab", { fixed = {-1/2, -1/2, -1/2, 1/2, 0, 1/2}, }, groups = {snappy=3, flammable=2}, + is_ground_content = false, sounds = default.node_sound_leaves_defaults(), }) @@ -312,6 +318,7 @@ minetest.register_node("dryplants:reed_roof", { } }, groups = {snappy=3, flammable=2}, + is_ground_content = false, sounds = default.node_sound_leaves_defaults(), }) @@ -342,6 +349,7 @@ minetest.register_node("dryplants:reed_roof_corner", { } }, groups = {snappy=3, flammable=2}, + is_ground_content = false, sounds = default.node_sound_leaves_defaults(), }) @@ -372,5 +380,6 @@ minetest.register_node("dryplants:reed_roof_corner_2", { } }, groups = {snappy=3, flammable=2}, + is_ground_content = false, sounds = default.node_sound_leaves_defaults(), }) diff --git a/dryplants/reedmace.lua b/dryplants/reedmace.lua index cad82c2..483072e 100644 --- a/dryplants/reedmace.lua +++ b/dryplants/reedmace.lua @@ -88,6 +88,7 @@ minetest.register_node("dryplants:reedmace_spikes", { flammable=2, not_in_creative_inventory=1 }, + is_ground_content = false, drop = 'dryplants:reedmace_sapling', sounds = default.node_sound_leaves_defaults(), selection_box = { @@ -110,6 +111,7 @@ minetest.register_node("dryplants:reedmace_top", { flammable=2, not_in_creative_inventory=1 }, + is_ground_content = false, drop = 'dryplants:reedmace_sapling', sounds = default.node_sound_leaves_defaults(), selection_box = { @@ -133,6 +135,7 @@ minetest.register_node("dryplants:reedmace_height_2", { flammable=2--, --not_in_creative_inventory=1 }, + is_ground_content = false, drop = 'dryplants:reedmace_sapling', sounds = default.node_sound_leaves_defaults(), selection_box = { @@ -156,6 +159,7 @@ minetest.register_node("dryplants:reedmace_height_3", { flammable=2--, --not_in_creative_inventory=1 }, + is_ground_content = false, drop = 'dryplants:reedmace_sapling', sounds = default.node_sound_leaves_defaults(), selection_box = { @@ -179,6 +183,7 @@ minetest.register_node("dryplants:reedmace_height_3_spikes", { flammable=2--, --not_in_creative_inventory=1 }, + is_ground_content = false, drop = 'dryplants:reedmace_sapling', sounds = default.node_sound_leaves_defaults(), selection_box = { @@ -201,6 +206,7 @@ minetest.register_node("dryplants:reedmace", { flammable=2, not_in_creative_inventory=1 }, + is_ground_content = false, drop = 'dryplants:reedmace_sapling', sounds = default.node_sound_leaves_defaults(), selection_box = { @@ -231,6 +237,7 @@ minetest.register_node("dryplants:reedmace_bottom", { flammable=2, not_in_creative_inventory=1 }, + is_ground_content = false, drop = 'dryplants:reedmace_sapling', sounds = default.node_sound_leaves_defaults(), selection_box = { diff --git a/ferns/gianttreefern.lua b/ferns/gianttreefern.lua index bc1a334..b5115e8 100644 --- a/ferns/gianttreefern.lua +++ b/ferns/gianttreefern.lua @@ -138,6 +138,7 @@ minetest.register_node("ferns:tree_fern_leaves_giant", { attached_node=1, not_in_creative_inventory=1 }, + is_ground_content = false, drop = { max_items = 2, items = { @@ -179,6 +180,7 @@ minetest.register_node("ferns:tree_fern_leave_big", { attached_node=1, not_in_creative_inventory=1 }, + is_ground_content = false, drop = "", sounds = default.node_sound_leaves_defaults(), after_destruct = function(pos,oldnode) @@ -217,6 +219,7 @@ minetest.register_node("ferns:tree_fern_leave_big_end", { attached_node=1, not_in_creative_inventory=1 }, + is_ground_content = false, drop = "", sounds = default.node_sound_leaves_defaults(), }) @@ -255,6 +258,7 @@ minetest.register_node("ferns:fern_trunk_big_top", { not_in_creative_inventory=1, leafdecay=3 -- to support vines }, + is_ground_content = false, drop = "ferns:fern_trunk_big", sounds = default.node_sound_wood_defaults(), }) @@ -281,6 +285,7 @@ minetest.register_node("ferns:fern_trunk_big", { fixed = {-1/4, -1/2, -1/4, 1/4, 1/2, 1/4}, }, groups = {tree=1,choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1}, + is_ground_content = false, sounds = default.node_sound_wood_defaults(), after_destruct = function(pos,oldnode) local node = minetest.get_node({x=pos.x,y=pos.y+1,z=pos.z}) diff --git a/ferns/treefern.lua b/ferns/treefern.lua index 43a0db8..7869dff 100644 --- a/ferns/treefern.lua +++ b/ferns/treefern.lua @@ -80,6 +80,7 @@ minetest.register_node("ferns:tree_fern_leaves", { inventory_image = "ferns_fern_tree_inv.png", walkable = false, groups = {snappy=3,flammable=2,attached_node=1}, + is_ground_content = false, drop = { max_items = 2, items = { @@ -111,6 +112,7 @@ minetest.register_node("ferns:tree_fern_leaves_02", { tiles = {"ferns_fern_big.png"}, walkable = false, groups = {snappy=3,flammable=2,attached_node=1,not_in_creative_inventory=1}, + is_ground_content = false, drop = { max_items = 2, items = { @@ -157,6 +159,7 @@ minetest.register_node("ferns:fern_trunk", { fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7}, }, groups = {tree=1,choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1}, + is_ground_content = false, sounds = default.node_sound_wood_defaults(), after_destruct = function(pos,oldnode) local node = minetest.get_node({x=pos.x,y=pos.y+1,z=pos.z}) diff --git a/nature_classic/blossom.lua b/nature_classic/blossom.lua index 6cbb729..1a6ca97 100644 --- a/nature_classic/blossom.lua +++ b/nature_classic/blossom.lua @@ -19,6 +19,7 @@ minetest.register_node(":"..nature.blossom_node, { tiles = nature.blossom_textures, paramtype = "light", groups = nature.blossom_groups, + is_ground_content = false, sounds = default.node_sound_leaves_defaults(), waving = 1 }) diff --git a/trunks/nodes.lua b/trunks/nodes.lua index 909a3c1..ba3d3fe 100644 --- a/trunks/nodes.lua +++ b/trunks/nodes.lua @@ -38,6 +38,7 @@ for i in pairs(NoDe) do attached_node=1, not_in_creative_inventory=iNV }, + is_ground_content = false, drop = "trunks:twig_1", sounds = default.node_sound_leaves_defaults(), liquids_pointable = true, @@ -138,6 +139,7 @@ minetest.register_node("trunks:twigs", { paramtype2 = "facedir", tiles = {"trunks_twigs.png"}, groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1}, + is_ground_content = false, sounds = default.node_sound_wood_defaults(), }) @@ -157,6 +159,7 @@ minetest.register_node("trunks:twigs_slab", { fixed = {-1/2, -1/2, -1/2, 1/2, 0, 1/2}, }, groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1}, + is_ground_content = false, sounds = default.node_sound_wood_defaults(), }) @@ -180,6 +183,7 @@ minetest.register_node("trunks:twigs_roof", { } }, groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1}, + is_ground_content = false, sounds = default.node_sound_wood_defaults(), }) @@ -208,6 +212,7 @@ minetest.register_node("trunks:twigs_roof_corner", { } }, groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1}, + is_ground_content = false, sounds = default.node_sound_wood_defaults(), }) @@ -236,6 +241,7 @@ minetest.register_node("trunks:twigs_roof_corner_2", { } }, groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1}, + is_ground_content = false, sounds = default.node_sound_wood_defaults(), }) @@ -387,6 +393,7 @@ for i in pairs(TRuNKS) do attached_node = 1 --not_in_creative_inventory=1 -- atm in inv for testing }, + is_ground_content = false, --drop = "trunks:twig_1", -- not sure about this yet sounds = default.node_sound_wood_defaults(), }) diff --git a/youngtrees/init.lua b/youngtrees/init.lua index b69da5d..1530140 100644 --- a/youngtrees/init.lua +++ b/youngtrees/init.lua @@ -9,7 +9,7 @@ minetest.register_node("youngtrees:bamboo", { tiles = {"bamboo.png"}, paramtype = "light", walkable = false, - is_ground_content = true, + is_ground_content = false, node_box = { type = "fixed", fixed = { @@ -34,7 +34,7 @@ minetest.register_node("youngtrees:youngtree_top", { wield_image = "youngtree16xa.png", paramtype = "light", walkable = false, - is_ground_content = true, + is_ground_content = false, selection_box = { type = "fixed", fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3} @@ -52,7 +52,7 @@ minetest.register_node("youngtrees:youngtree_middle", { wield_image = "youngtree16xb.png", paramtype = "light", walkable = false, - is_ground_content = true, + is_ground_content = false, selection_box = { type = "fixed", fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3} @@ -70,7 +70,7 @@ minetest.register_node("youngtrees:youngtree_bottom", { wield_image = "youngtree16xc.png", paramtype = "light", walkable = false, - is_ground_content = true, + is_ground_content = false, selection_box = { type = "fixed", fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3} @@ -146,4 +146,4 @@ minetest.register_on_generated(function(minp, maxp, blockseed) local timer = minetest.get_node_timer({x=pos.x, y=pos.y+1, z=pos.z}) timer:start(0) end -end) \ No newline at end of file +end)