add sound-switch and use default if available

This commit is contained in:
BuckarooBanzay
2021-08-15 11:18:44 +02:00
parent 06aa9e0cf1
commit e3d87eefc6
10 changed files with 104 additions and 72 deletions

View File

@ -43,7 +43,7 @@ minetest.register_node("scifi_nodes:crate", {
groups = {cracky = 1, oddly_breakable_by_hand = 2, fuel = 8},
legacy_facedir_simple = true,
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
sounds = scifi_nodes.node_sound_wood_defaults(),
after_dig_node = drop_chest_stuff(),
on_construct = function(pos)
@ -82,7 +82,7 @@ minetest.register_node("scifi_nodes:box", {
groups = {cracky = 1},
legacy_facedir_simple = true,
is_ground_content = false,
sounds = default.node_sound_metal_defaults(),
sounds = scifi_nodes.node_sound_metal_defaults(),
after_dig_node = drop_chest_stuff(),
on_construct = function(pos)