From 2d6e1c61a2954f6f70b97f825b1f7288aa196873 Mon Sep 17 00:00:00 2001 From: SmokeyDope Date: Sat, 25 Feb 2023 10:59:05 +0000 Subject: [PATCH 1/7] Add placement sound to lectern --- mods/ITEMS/mcl_lectern/init.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mods/ITEMS/mcl_lectern/init.lua b/mods/ITEMS/mcl_lectern/init.lua index 94f86c830..e6b7e3db8 100644 --- a/mods/ITEMS/mcl_lectern/init.lua +++ b/mods/ITEMS/mcl_lectern/init.lua @@ -96,6 +96,15 @@ local lectern_def = { local lectern_node = ItemStack(itemstack) -- Place the node! local _, success = minetest.item_place_node(lectern_node, placer, pointed_thing, fdir) + + -- Add placement sound. + local idef = lectern_node:get_definition() + if success then + if idef.sounds and idef.sounds.place then + minetest.sound_play(idef.sounds.place, {pos=above, gain=1}, true) + end + end + if not success then return itemstack end From 5c25901433b1a0ac8bc3243352c1b44b7a008971 Mon Sep 17 00:00:00 2001 From: SmokeyDope Date: Sat, 25 Feb 2023 11:29:55 +0000 Subject: [PATCH 2/7] Add dependencies for fletching table required to get sound working --- mods/ITEMS/mcl_fletching_table/mod.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/ITEMS/mcl_fletching_table/mod.conf b/mods/ITEMS/mcl_fletching_table/mod.conf index 5a4e9a900..8b2a8ab5c 100644 --- a/mods/ITEMS/mcl_fletching_table/mod.conf +++ b/mods/ITEMS/mcl_fletching_table/mod.conf @@ -1,3 +1,4 @@ name = mcl_fletching_table author = PrairieWind +depends = mcl_core, mcl_sounds, mcl_tools description = Adds the fletching table villager workstation to MineClone 2/5. From bd4eb01a46ff2d1827adbbe9bba5b71bb926e744 Mon Sep 17 00:00:00 2001 From: SmokeyDope Date: Sat, 25 Feb 2023 11:31:14 +0000 Subject: [PATCH 3/7] Add sounds to fletching table --- mods/ITEMS/mcl_fletching_table/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/ITEMS/mcl_fletching_table/init.lua b/mods/ITEMS/mcl_fletching_table/init.lua index 686a1dc2c..7cb66f8b1 100644 --- a/mods/ITEMS/mcl_fletching_table/init.lua +++ b/mods/ITEMS/mcl_fletching_table/init.lua @@ -11,6 +11,7 @@ minetest.register_node("mcl_fletching_table:fletching_table", { }, paramtype2 = "facedir", groups = { axey = 2, handy = 1, deco_block = 1, material_wood = 1, flammable = 1 }, + sounds = mcl_sounds.node_sound_wood_defaults(), _mcl_blast_resistance = 2.5, _mcl_hardness = 2.5 }) From 182f9b5dc29d5bea6b93eff345a62a119af343a5 Mon Sep 17 00:00:00 2001 From: SmokeyDope Date: Sat, 25 Feb 2023 11:39:38 +0000 Subject: [PATCH 4/7] Add dependencies for loom --- mods/ITEMS/mcl_loom/mod.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/ITEMS/mcl_loom/mod.conf b/mods/ITEMS/mcl_loom/mod.conf index 9ebb10ff3..e316b201a 100644 --- a/mods/ITEMS/mcl_loom/mod.conf +++ b/mods/ITEMS/mcl_loom/mod.conf @@ -1,3 +1,4 @@ name = mcl_loom author = PrairieWind +depends = mcl_core, mcl_sounds, mcl_tools description = Adds the loom villager workstation to MineClone 2/5. Used to add patterns to banners. \ No newline at end of file From 0351556a2eb0c0cc0972d07c102d0653a68ae6cc Mon Sep 17 00:00:00 2001 From: SmokeyDope Date: Sat, 25 Feb 2023 11:40:45 +0000 Subject: [PATCH 5/7] Add sounds to loom --- mods/ITEMS/mcl_loom/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/ITEMS/mcl_loom/init.lua b/mods/ITEMS/mcl_loom/init.lua index 19be8d58b..5475980bd 100644 --- a/mods/ITEMS/mcl_loom/init.lua +++ b/mods/ITEMS/mcl_loom/init.lua @@ -12,6 +12,7 @@ minetest.register_node("mcl_loom:loom", { }, paramtype2 = "facedir", groups = { axey = 2, handy = 1, deco_block = 1, material_wood = 1, flammable = 1 }, + sounds = mcl_sounds.node_sound_wood_defaults(), _mcl_blast_resistance = 2.5, _mcl_hardness = 2.5 }) From b4f747bd84c194b39f91ec5f8c6a77f8cad1d044 Mon Sep 17 00:00:00 2001 From: SmokeyDope Date: Sat, 25 Feb 2023 11:44:56 +0000 Subject: [PATCH 6/7] Add dependencies for cartography table --- mods/ITEMS/mcl_cartography_table/mod.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/ITEMS/mcl_cartography_table/mod.conf b/mods/ITEMS/mcl_cartography_table/mod.conf index ebea16197..0a80c0111 100644 --- a/mods/ITEMS/mcl_cartography_table/mod.conf +++ b/mods/ITEMS/mcl_cartography_table/mod.conf @@ -1,3 +1,4 @@ name = mcl_cartography_table author = PrairieWind +depends = mcl_core, mcl_sounds, mcl_tools description = Adds the cartography table villager workstation to MineClone 2/5. Used to copy and create maps. \ No newline at end of file From f174b733ce3d513f5e999fc1ed5221e23bdf0fd8 Mon Sep 17 00:00:00 2001 From: SmokeyDope Date: Sat, 25 Feb 2023 11:46:33 +0000 Subject: [PATCH 7/7] Add sounds to cartography table --- mods/ITEMS/mcl_cartography_table/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/ITEMS/mcl_cartography_table/init.lua b/mods/ITEMS/mcl_cartography_table/init.lua index f23be9d79..dca9493ee 100644 --- a/mods/ITEMS/mcl_cartography_table/init.lua +++ b/mods/ITEMS/mcl_cartography_table/init.lua @@ -12,6 +12,7 @@ minetest.register_node("mcl_cartography_table:cartography_table", { }, paramtype2 = "facedir", groups = { axey = 2, handy = 1, deco_block = 1, material_wood = 1, flammable = 1 }, + sounds = mcl_sounds.node_sound_wood_defaults(), _mcl_blast_resistance = 2.5, _mcl_hardness = 2.5 })