Skip to content

Commit f7325d2

Browse files
committedOct 24, 2016
Fire: Add flint and steel sound
1 parent 9b62d8a commit f7325d2

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed
 

‎mods/fire/README.txt

+3
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ fire_small.ogg sampled from:
2323

2424
fire_large.ogg sampled from:
2525
http://www.freesound.org/people/Dynamicell/sounds/17548/ (CC BY 3.0)
26+
27+
fire_flint_and_steel.ogg
28+
https://www.freesound.org/people/Benboncan/sounds/66457/ (CC BY 3.0)

‎mods/fire/init.lua

+5-1
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,12 @@ minetest.register_tool("fire:flint_and_steel", {
8787
description = "Flint and Steel",
8888
inventory_image = "fire_flint_steel.png",
8989
on_use = function(itemstack, user, pointed_thing)
90-
itemstack:add_wear(1000)
9190
local pt = pointed_thing
91+
minetest.sound_play(
92+
"fire_flint_and_steel",
93+
{pos = pt.above, gain = 0.8, max_hear_distance = 8}
94+
)
95+
itemstack:add_wear(1000)
9296
if pt.type == "node" then
9397
local node_under = minetest.get_node(pt.under).name
9498
local is_coalblock = node_under == "default:coalblock"

‎mods/fire/license.txt

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ See the GNU Lesser General Public License for more details:
1515
https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
1616

1717

18-
Licenses of media (textures)
19-
----------------------------
18+
Licenses of media (textures and sounds)
19+
---------------------------------------
2020

2121
Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
2222
Copyright (C) 2012-2016 Perttu Ahola (celeron55) <celeron55@gmail.com>
@@ -56,6 +56,7 @@ http://creativecommons.org/licenses/by-sa/3.0/
5656
Attribution 3.0 Unported (CC BY 3.0)
5757
Copyright (C) 2005 dobroide
5858
Copyright (C) 2006 Dynamicell
59+
Copyright (C) 2009 Benboncan
5960

6061
You are free to:
6162
Share — copy and redistribute the material in any medium or format.
10.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.