From 9d737e32d0d9c17fa26789f925fe06add1d39dcd Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 19 Feb 2017 22:58:51 +0100 Subject: [PATCH] Play sound when using flint and steel --- mods/ITEMS/mcl_fire/README.txt | 5 +++-- mods/ITEMS/mcl_fire/flint_and_steel.lua | 4 ++++ .../mcl_fire/sounds/fire_flint_and_steel.ogg | Bin 0 -> 10443 bytes 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 mods/ITEMS/mcl_fire/sounds/fire_flint_and_steel.ogg diff --git a/mods/ITEMS/mcl_fire/README.txt b/mods/ITEMS/mcl_fire/README.txt index 05ec1410..1b32a4a0 100644 --- a/mods/ITEMS/mcl_fire/README.txt +++ b/mods/ITEMS/mcl_fire/README.txt @@ -1,5 +1,6 @@ -Minetest 0.4 mod: fire -====================== +mcl_fire: Fire mod for MineClone 2 +Based on fire from Minetest Game +================================== License of source code: ----------------------- diff --git a/mods/ITEMS/mcl_fire/flint_and_steel.lua b/mods/ITEMS/mcl_fire/flint_and_steel.lua index f2e2fa55..44586fea 100644 --- a/mods/ITEMS/mcl_fire/flint_and_steel.lua +++ b/mods/ITEMS/mcl_fire/flint_and_steel.lua @@ -7,6 +7,10 @@ minetest.register_tool("mcl_fire:flint_and_steel", { groups = { tool = 1 }, on_use = function(itemstack, user, pointed_thing) local idef = itemstack:get_definition() + minetest.sound_play( + "fire_flint_and_steel", + {pos = pointed_thing.above, gain = 0.5, max_hear_distance = 8} + ) if pointed_thing.type == "node" then if minetest.get_node(pointed_thing.under).name == "mcl_tnt:tnt" then tnt.ignite(pointed_thing.under) diff --git a/mods/ITEMS/mcl_fire/sounds/fire_flint_and_steel.ogg b/mods/ITEMS/mcl_fire/sounds/fire_flint_and_steel.ogg new file mode 100644 index 0000000000000000000000000000000000000000..6996e16fc3593925f73772dcc24ed65833a4a794 GIT binary patch literal 10443 zcmeZIPY-5bVt@io)%|fGru=iOYm9P?W%)%(nZ+OhMwc}pih+TloDs~}!3fp~W`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