From 57d17a34f582c93d8261d6f837d4719a37d19bca Mon Sep 17 00:00:00 2001 From: Foz Date: Sun, 24 Apr 2016 21:25:31 -0400 Subject: [PATCH] Add missing sounds, use gravel sounds for rubble. --- arrowslit.lua | 6 +++--- init.lua | 6 +++++- murder_hole.lua | 2 +- pillars.lua | 6 +++--- rope.lua | 2 ++ shields_decor.lua | 3 +++ town_item.lua | 7 +++++++ 7 files changed, 24 insertions(+), 8 deletions(-) diff --git a/arrowslit.lua b/arrowslit.lua index 66614eb..275d817 100644 --- a/arrowslit.lua +++ b/arrowslit.lua @@ -26,7 +26,7 @@ for _, row in ipairs(arrowslit.types) do description = desc.." Arrowslit", tiles = {tile..".png"}, groups = {cracky=3}, - sounds = default.node_sound_defaults(), + sounds = default.node_sound_stone_defaults(), paramtype = "light", paramtype2 = "facedir", node_box = { @@ -50,7 +50,7 @@ for _, row in ipairs(arrowslit.types) do description = desc.." Arrowslit with Cross", tiles = {tile..".png"}, groups = {cracky=3}, - sounds = default.node_sound_defaults(), + sounds = default.node_sound_stone_defaults(), paramtype = "light", paramtype2 = "facedir", node_box = { @@ -78,7 +78,7 @@ for _, row in ipairs(arrowslit.types) do description = desc.." Arrowslit with Hole", tiles = {tile..".png"}, groups = {cracky=3}, - sounds = default.node_sound_defaults(), + sounds = default.node_sound_stone_defaults(), paramtype = "light", paramtype2 = "facedir", node_box = { diff --git a/init.lua b/init.lua index 3bab6b6..bb72374 100644 --- a/init.lua +++ b/init.lua @@ -15,6 +15,7 @@ minetest.register_node("castle:stonewall", { paramtype = "light", drop = "castle:stonewall", groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), }) minetest.register_node("castle:rubble", { @@ -23,6 +24,7 @@ minetest.register_node("castle:rubble", { tiles = {"castle_rubble.png"}, paramtype = "light", groups = {crumbly=3,falling_node=1}, + sounds = default.node_sound_gravel_defaults(), }) minetest.register_craft({ @@ -60,6 +62,7 @@ minetest.register_node("castle:stonewall_corner", { "castle_stonewall.png", "castle_corner_stonewall2.png"}, groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), }) minetest.register_craft({ @@ -83,6 +86,7 @@ minetest.register_node("castle:roofslate", { fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}, }, groups = {cracky=3,attached_node=1}, + sounds = default.node_sound_glass_defaults(), }) minetest.register_node("castle:hides", { @@ -379,7 +383,7 @@ if minetest.get_modpath("moreblocks") then description = "Rubble", tiles = {"castle_rubble.png"}, groups = {cracky=3, not_in_creative_inventory=1}, - sounds = default.node_sound_stone_defaults(), + sounds = default.node_sound_gravel_defaults(), sunlight_propagates = true, }) diff --git a/murder_hole.lua b/murder_hole.lua index bd0dfb1..672f3b9 100644 --- a/murder_hole.lua +++ b/murder_hole.lua @@ -22,7 +22,7 @@ for _, row in ipairs(hole.types) do description = desc.." Murder Hole", tiles = {tile..".png"}, groups = {cracky=3}, - sounds = default.node_sound_defaults(), + sounds = default.node_sound_stone_defaults(), paramtype = "light", paramtype2 = "facedir", node_box = { diff --git a/pillars.lua b/pillars.lua index ac63cb5..40b8143 100644 --- a/pillars.lua +++ b/pillars.lua @@ -26,7 +26,7 @@ for _, row in ipairs(pillar.types) do description = desc.." Pillar Base", tiles = {tile..".png"}, groups = {cracky=3,attached_node=1}, - sounds = default.node_sound_defaults(), + sounds = default.node_sound_stone_defaults(), paramtype = "light", paramtype2 = "facedir", node_box = { @@ -43,7 +43,7 @@ for _, row in ipairs(pillar.types) do description = desc.." Pillar Top", tiles = {tile..".png"}, groups = {cracky=3,attached_node=1}, - sounds = default.node_sound_defaults(), + sounds = default.node_sound_stone_defaults(), paramtype = "light", paramtype2 = "facedir", node_box = { @@ -61,7 +61,7 @@ for _, row in ipairs(pillar.types) do description = desc.." Pillar Middle", tiles = {tile..".png"}, groups = {cracky=3,attached_node=1}, - sounds = default.node_sound_defaults(), + sounds = default.node_sound_stone_defaults(), paramtype = "light", paramtype2 = "facedir", node_box = { diff --git a/rope.lua b/rope.lua index 1141913..8c7b73e 100644 --- a/rope.lua +++ b/rope.lua @@ -4,6 +4,7 @@ minetest.register_node("castle:ropes",{ sunlight_propagates = true, tiles = {"castle_ropes.png"}, groups = {choppy=3,snappy=3,oddly_breakable_by_hand=3,flammable=1}, + sounds = default.node_sound_defaults(), paramtype = "light", climbable = true, walkable = false, @@ -73,6 +74,7 @@ minetest.register_node("castle:ropebox", { paramtype = "light", paramtype2 = "facedir", groups = {choppy=3}, + sounds = default.node_sound_defaults(), node_box = { type = "fixed", fixed = { diff --git a/shields_decor.lua b/shields_decor.lua index 354b099..20823f6 100644 --- a/shields_decor.lua +++ b/shields_decor.lua @@ -5,6 +5,7 @@ minetest.register_node("castle:shield",{ paramtype2 = "facedir", paramtype = "light", groups={cracky=3}, + sounds = default.node_sound_defaults(), node_box = { type = "fixed", fixed = { @@ -39,6 +40,7 @@ minetest.register_node("castle:shield_2",{ paramtype2 = "facedir", paramtype = "light", groups={cracky=3}, + sounds = default.node_sound_defaults(), node_box = { type = "fixed", fixed = { @@ -72,6 +74,7 @@ minetest.register_node("castle:shield_3",{ paramtype2 = "facedir", paramtype = "light", groups={cracky=3}, + sounds = default.node_sound_defaults(), node_box = { type = "fixed", fixed = { diff --git a/town_item.lua b/town_item.lua index 0d0cb1b..6e2b4f8 100644 --- a/town_item.lua +++ b/town_item.lua @@ -13,6 +13,7 @@ minetest.register_node("castle:anvil",{ description = "Anvil", tiles = {"castle_steel.png"}, groups = {cracky=2,falling_node=1}, + sounds = default.node_sound_stone_defaults(), paramtype = "light", paramtype2 = "facedir", node_box = { @@ -42,6 +43,7 @@ minetest.register_node("castle:workbench",{ paramtype2 = "facedir", paramtype = "light", groups = {choppy=2,oddly_breakable_by_hand=2,flammable=2}, + sounds = default.node_sound_wood_defaults(), drawtype = "normal", on_construct = function ( pos ) local meta = minetest.get_meta( pos ) @@ -180,6 +182,7 @@ minetest.register_node("castle:dungeon_stone", { tiles = {"castle_dungeon_stone.png"}, groups = {cracky=2}, paramtype = "light", + sounds = default.node_sound_stone_defaults(), }) minetest.register_craft({ @@ -202,6 +205,7 @@ minetest.register_node("castle:crate", { drawtype = "normal", tiles = {"castle_crate_top.png","castle_crate_top.png","castle_crate.png","castle_crate.png","castle_crate.png","castle_crate.png"}, groups = {choppy=3}, + sounds = default.node_sound_wood_defaults(), paramtype = "light", on_construct = function(pos) local meta = minetest.get_meta(pos) @@ -248,6 +252,7 @@ minetest.register_node("castle:bound_straw", { drawtype = "normal", tiles = {"castle_straw_bale.png"}, groups = {choppy=4, flammable=1, oddly_breakable_by_hand=3}, + sounds = default.node_sound_leaves_defaults(), paramtype = "light", }) @@ -264,6 +269,7 @@ minetest.register_node("castle:pavement_brick", { tiles = {"castle_pavement_brick.png"}, groups = {cracky=2}, paramtype = "light", + sounds = default.node_sound_stone_defaults(), }) minetest.register_craft({ @@ -281,6 +287,7 @@ minetest.register_node("castle:light",{ light_source = 14, tiles = {"castle_street_light.png"}, groups = {cracky=2}, + sounds = default.node_sound_glass_defaults(), paramtype = "light", })