Set is_ground_content=false for a couple of nodes

This commit is contained in:
Wuzzy 2019-08-29 14:52:32 +02:00
parent 74439d6f54
commit 73ecab26b9
7 changed files with 21 additions and 0 deletions

View File

@ -265,6 +265,7 @@ minetest.register_node(
inventory_image = "bed_bed_inventory.png", inventory_image = "bed_bed_inventory.png",
tiles = {"bed_foot.png", "default_wood.png", "bed_side.png"}, tiles = {"bed_foot.png", "default_wood.png", "bed_side.png"},
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3}, groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
node_box = { node_box = {
type = "fixed", type = "fixed",
@ -352,6 +353,7 @@ minetest.register_node(
drawtype = "nodebox", drawtype = "nodebox",
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
is_ground_content = false,
pointable = false, pointable = false,
tiles = {"bed_head.png", "default_wood.png", "bed_side.png"}, tiles = {"bed_head.png", "default_wood.png", "bed_side.png"},
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3}, groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},

View File

@ -89,6 +89,7 @@ minetest.register_node(
stack_max = 240, stack_max = 240,
groups = {cracky = 3, stone = 1}, groups = {cracky = 3, stone = 1},
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
is_ground_content = false,
}) })
minetest.register_node( minetest.register_node(
@ -96,6 +97,7 @@ minetest.register_node(
{ {
description = S("Reinforced Cobble"), description = S("Reinforced Cobble"),
tiles = {"default_reinforced_cobbles.png"}, tiles = {"default_reinforced_cobbles.png"},
is_ground_content = false,
groups = {cracky = 1, stone = 1}, groups = {cracky = 1, stone = 1},
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
}) })
@ -130,6 +132,7 @@ minetest.register_node(
tiles = {"default_block_wrought_iron.png"}, tiles = {"default_block_wrought_iron.png"},
groups = {cracky = 2}, groups = {cracky = 2},
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
is_ground_content = false,
}) })
minetest.register_node( minetest.register_node(
@ -139,6 +142,7 @@ minetest.register_node(
tiles = {"default_block_steel.png"}, tiles = {"default_block_steel.png"},
groups = {cracky = 2}, groups = {cracky = 2},
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
is_ground_content = false,
}) })
minetest.register_node( minetest.register_node(
@ -148,6 +152,7 @@ minetest.register_node(
tiles = {"default_block_carbon_steel.png"}, tiles = {"default_block_carbon_steel.png"},
groups = {cracky = 1}, groups = {cracky = 1},
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
is_ground_content = false,
}) })
minetest.register_node( minetest.register_node(
@ -157,6 +162,7 @@ minetest.register_node(
tiles = {"default_block_bronze.png"}, tiles = {"default_block_bronze.png"},
groups = {cracky = 1}, groups = {cracky = 1},
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
is_ground_content = false,
}) })
-- Soil -- Soil
@ -926,6 +932,7 @@ minetest.register_node(
{ {
description = S("Frame"), description = S("Frame"),
tiles = {"default_frame.png"}, tiles = {"default_frame.png"},
is_ground_content = false,
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1}, groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1},
is_ground_content = false, is_ground_content = false,
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
@ -936,6 +943,7 @@ minetest.register_node(
{ {
description = S("Reinforced Frame"), description = S("Reinforced Frame"),
tiles = {"default_reinforced_frame.png"}, tiles = {"default_reinforced_frame.png"},
is_ground_content = false,
groups = {wood = 1, choppy = 1}, groups = {wood = 1, choppy = 1},
is_ground_content = false, is_ground_content = false,
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),

View File

@ -179,6 +179,7 @@ function door.register_door(name, def)
end end
end, end,
is_ground_content = false,
can_dig = check_player_priv, can_dig = check_player_priv,
sounds = def.sounds, sounds = def.sounds,
sunlight_propagates = def.sunlight sunlight_propagates = def.sunlight
@ -213,6 +214,7 @@ function door.register_door(name, def)
end end
end, end,
is_ground_content = false,
can_dig = check_player_priv, can_dig = check_player_priv,
sounds = def.sounds, sounds = def.sounds,
sunlight_propagates = def.sunlight, sunlight_propagates = def.sunlight,
@ -247,6 +249,7 @@ function door.register_door(name, def)
end end
end, end,
is_ground_content = false,
can_dig = check_player_priv, can_dig = check_player_priv,
sounds = def.sounds, sounds = def.sounds,
sunlight_propagates = def.sunlight sunlight_propagates = def.sunlight
@ -281,6 +284,7 @@ function door.register_door(name, def)
end end
end, end,
is_ground_content = false,
can_dig = check_player_priv, can_dig = check_player_priv,
sounds = def.sounds, sounds = def.sounds,
sunlight_propagates = def.sunlight sunlight_propagates = def.sunlight

View File

@ -66,6 +66,7 @@ minetest.register_node(
tiles = {"lumien_block.png"}, tiles = {"lumien_block.png"},
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
is_ground_content = false,
drawtype = "nodebox", drawtype = "nodebox",
node_box = { node_box = {
type = "wallmounted", type = "wallmounted",
@ -88,6 +89,7 @@ minetest.register_node(
tiles = {"lumien_block.png"}, tiles = {"lumien_block.png"},
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
is_ground_content = false,
drawtype = "nodebox", drawtype = "nodebox",
node_box = { node_box = {
type = "wallmounted", type = "wallmounted",

View File

@ -97,6 +97,7 @@ if minetest.settings:get_bool("music_enable") then
inventory_image = "music_inventory.png", inventory_image = "music_inventory.png",
wield_image = "music_inventory.png", wield_image = "music_inventory.png",
is_ground_content = false,
paramtype = "light", paramtype = "light",
drawtype = "nodebox", drawtype = "nodebox",
@ -156,6 +157,7 @@ else
inventory_image = "music_inventory.png", inventory_image = "music_inventory.png",
wield_image = "music_inventory.png", wield_image = "music_inventory.png",
is_ground_content = false,
paramtype = "light", paramtype = "light",
drawtype = "nodebox", drawtype = "nodebox",

View File

@ -40,6 +40,7 @@ function partialblocks.register_material(name, desc_slab, desc_stair, node, is_f
}, },
paramtype = "light", paramtype = "light",
is_ground_content = nodedef.is_ground_content,
on_rightclick = function(pos, _, _, itemstack, _) on_rightclick = function(pos, _, _, itemstack, _)
if minetest.get_node(pos).name == itemstack:get_name() 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", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
is_ground_content = nodedef.is_ground_content,
}) })
crafting.register_craft( -- Craft to crafting.register_craft( -- Craft to

View File

@ -274,6 +274,7 @@ minetest.register_node(
"tnt_bottom.png", "tnt_sides.png"}, "tnt_bottom.png", "tnt_sides.png"},
light_source = 5, light_source = 5,
drop = "tnt:tnt", drop = "tnt:tnt",
is_ground_content = false,
groups = {dig_immediate = 2}, groups = {dig_immediate = 2},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
on_timer = tnt.boom, on_timer = tnt.boom,