diff --git a/mods/bed/init.lua b/mods/bed/init.lua index 519c2f5..910b6a5 100644 --- a/mods/bed/init.lua +++ b/mods/bed/init.lua @@ -265,6 +265,7 @@ minetest.register_node( inventory_image = "bed_bed_inventory.png", tiles = {"bed_foot.png", "default_wood.png", "bed_side.png"}, groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3}, + is_ground_content = false, sounds = default.node_sound_wood_defaults(), node_box = { type = "fixed", @@ -352,6 +353,7 @@ minetest.register_node( drawtype = "nodebox", paramtype = "light", paramtype2 = "facedir", + is_ground_content = false, pointable = false, tiles = {"bed_head.png", "default_wood.png", "bed_side.png"}, groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3}, diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index ff4d3e8..2e3f0e4 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -89,6 +89,7 @@ minetest.register_node( stack_max = 240, groups = {cracky = 3, stone = 1}, sounds = default.node_sound_stone_defaults(), + is_ground_content = false, }) minetest.register_node( @@ -96,6 +97,7 @@ minetest.register_node( { description = S("Reinforced Cobble"), tiles = {"default_reinforced_cobbles.png"}, + is_ground_content = false, groups = {cracky = 1, stone = 1}, sounds = default.node_sound_stone_defaults(), }) @@ -130,6 +132,7 @@ minetest.register_node( tiles = {"default_block_wrought_iron.png"}, groups = {cracky = 2}, sounds = default.node_sound_stone_defaults(), + is_ground_content = false, }) minetest.register_node( @@ -139,6 +142,7 @@ minetest.register_node( tiles = {"default_block_steel.png"}, groups = {cracky = 2}, sounds = default.node_sound_stone_defaults(), + is_ground_content = false, }) minetest.register_node( @@ -148,6 +152,7 @@ minetest.register_node( tiles = {"default_block_carbon_steel.png"}, groups = {cracky = 1}, sounds = default.node_sound_stone_defaults(), + is_ground_content = false, }) minetest.register_node( @@ -157,6 +162,7 @@ minetest.register_node( tiles = {"default_block_bronze.png"}, groups = {cracky = 1}, sounds = default.node_sound_stone_defaults(), + is_ground_content = false, }) -- Soil @@ -926,6 +932,7 @@ minetest.register_node( { description = S("Frame"), tiles = {"default_frame.png"}, + is_ground_content = false, groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1}, is_ground_content = false, sounds = default.node_sound_wood_defaults(), @@ -936,6 +943,7 @@ minetest.register_node( { description = S("Reinforced Frame"), tiles = {"default_reinforced_frame.png"}, + is_ground_content = false, groups = {wood = 1, choppy = 1}, is_ground_content = false, sounds = default.node_sound_wood_defaults(), diff --git a/mods/door/init.lua b/mods/door/init.lua index b262199..2aa0ffb 100644 --- a/mods/door/init.lua +++ b/mods/door/init.lua @@ -179,6 +179,7 @@ function door.register_door(name, def) end end, + is_ground_content = false, can_dig = check_player_priv, sounds = def.sounds, sunlight_propagates = def.sunlight @@ -213,6 +214,7 @@ function door.register_door(name, def) end end, + is_ground_content = false, can_dig = check_player_priv, sounds = def.sounds, sunlight_propagates = def.sunlight, @@ -247,6 +249,7 @@ function door.register_door(name, def) end end, + is_ground_content = false, can_dig = check_player_priv, sounds = def.sounds, sunlight_propagates = def.sunlight @@ -281,6 +284,7 @@ function door.register_door(name, def) end end, + is_ground_content = false, can_dig = check_player_priv, sounds = def.sounds, sunlight_propagates = def.sunlight diff --git a/mods/lumien/init.lua b/mods/lumien/init.lua index c13ac3a..d845a22 100644 --- a/mods/lumien/init.lua +++ b/mods/lumien/init.lua @@ -66,6 +66,7 @@ minetest.register_node( tiles = {"lumien_block.png"}, paramtype = "light", paramtype2 = "wallmounted", + is_ground_content = false, drawtype = "nodebox", node_box = { type = "wallmounted", @@ -88,6 +89,7 @@ minetest.register_node( tiles = {"lumien_block.png"}, paramtype = "light", paramtype2 = "wallmounted", + is_ground_content = false, drawtype = "nodebox", node_box = { type = "wallmounted", diff --git a/mods/music/init.lua b/mods/music/init.lua index 31aae7d..c116e65 100644 --- a/mods/music/init.lua +++ b/mods/music/init.lua @@ -97,6 +97,7 @@ if minetest.settings:get_bool("music_enable") then inventory_image = "music_inventory.png", wield_image = "music_inventory.png", + is_ground_content = false, paramtype = "light", drawtype = "nodebox", @@ -156,6 +157,7 @@ else inventory_image = "music_inventory.png", wield_image = "music_inventory.png", + is_ground_content = false, paramtype = "light", drawtype = "nodebox", diff --git a/mods/partialblocks/init.lua b/mods/partialblocks/init.lua index 21be127..f4cf345 100644 --- a/mods/partialblocks/init.lua +++ b/mods/partialblocks/init.lua @@ -40,6 +40,7 @@ function partialblocks.register_material(name, desc_slab, desc_stair, node, is_f }, paramtype = "light", + is_ground_content = nodedef.is_ground_content, on_rightclick = function(pos, _, _, itemstack, _) if minetest.get_node(pos).name == itemstack:get_name() @@ -99,6 +100,7 @@ function partialblocks.register_material(name, desc_slab, desc_stair, node, is_f paramtype = "light", paramtype2 = "facedir", + is_ground_content = nodedef.is_ground_content, }) crafting.register_craft( -- Craft to diff --git a/mods/tnt/init.lua b/mods/tnt/init.lua index 0857657..739ae93 100644 --- a/mods/tnt/init.lua +++ b/mods/tnt/init.lua @@ -274,6 +274,7 @@ minetest.register_node( "tnt_bottom.png", "tnt_sides.png"}, light_source = 5, drop = "tnt:tnt", + is_ground_content = false, groups = {dig_immediate = 2}, sounds = default.node_sound_wood_defaults(), on_timer = tnt.boom,