1
0
Fork 0

Add wall sounds

This commit is contained in:
Wuzzy 2017-01-17 02:08:41 +01:00
parent b439e08325
commit 0cb2c2eb8c
1 changed files with 8 additions and 4 deletions

View File

@ -111,12 +111,13 @@ local function register_wall(nodename, name, texture, invtex)
is_ground_content = false, is_ground_content = false,
tiles = {texture}, tiles = {texture},
paramtype = "light", paramtype = "light",
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,fences=1}, groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,wall=1},
drop = nodename, drop = nodename,
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = take fixed = take
}, },
sounds = default.node_sound_stone_defaults(),
}) })
end end
@ -129,12 +130,13 @@ local function register_wall(nodename, name, texture, invtex)
tiles = {texture}, tiles = {texture},
paramtype = "light", paramtype = "light",
is_ground_content = false, is_ground_content = false,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,fences=1}, groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,wall=1},
drop = nodename, drop = nodename,
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = {pillar, full_blocks[1]} fixed = {pillar, full_blocks[1]}
}, },
sounds = default.node_sound_stone_defaults(),
}) })
minetest.register_node(nodename.."_21", { minetest.register_node(nodename.."_21", {
@ -146,12 +148,13 @@ local function register_wall(nodename, name, texture, invtex)
tiles = {texture}, tiles = {texture},
paramtype = "light", paramtype = "light",
is_ground_content = false, is_ground_content = false,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,fences=1}, groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,wall=1},
drop = nodename, drop = nodename,
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = {pillar, full_blocks[2]} fixed = {pillar, full_blocks[2]}
}, },
sounds = default.node_sound_stone_defaults(),
}) })
-- Inventory item -- Inventory item
@ -172,7 +175,8 @@ local function register_wall(nodename, name, texture, invtex)
fixed = {-4/16, -1, -4/16, 4/16, 1, 4/16} fixed = {-4/16, -1, -4/16, 4/16, 1, 4/16}
}, },
collisionbox = {-0.2, 0, -0.2, 0.2, 1.4, 0.2}, collisionbox = {-0.2, 0, -0.2, 0.2, 1.4, 0.2},
on_construct = update_wall on_construct = update_wall,
sounds = default.node_sound_stone_defaults(),
}) })
end end