Skip to content

Commit 3f14d10

Browse files
committed
Footstep sounds: 5 new sounds
Original recording by Ryding. http://freesound.org/people/Ryding/ Found by Anth0rx, edited by paramat. Add and use 'default.node_sound_snow_defaults()' function.
1 parent 045abbd commit 3f14d10

10 files changed

Lines changed: 73 additions & 30 deletions

mods/default/README.txt

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -184,19 +184,19 @@ Gambit (CC BY-SA 3.0):
184184
asl97 (CC BY-SA 3.0):
185185
default_ice.png
186186

187-
KevDoy (CC BY-SA 3.0)
187+
KevDoy (CC BY-SA 3.0):
188188
heart.png
189189

190190
Pithydon (CC BY-SA 3.0)
191191
default_coral_brown.png
192192
default_coral_orange.png
193193
default_coral_skeleton.png
194194

195-
Ferk (CC0 1.0)
195+
Ferk (CC0 1.0):
196196
default_item_smoke.png
197197
default_item_smoke.ogg, based on sound by http://opengameart.org/users/bart
198198

199-
npx (CC BY-SA 3.0)
199+
npx (CC BY-SA 3.0):
200200
default_rainforest_litter.png
201201
default_rainforest_litter_side.png
202202

@@ -249,8 +249,6 @@ Mito551 (sounds) (CC BY-SA 3.0):
249249
default_place_node.3.ogg
250250
default_place_node_hard.1.ogg
251251
default_place_node_hard.2.ogg
252-
default_snow_footstep.1.ogg
253-
default_snow_footstep.2.ogg
254252
default_hard_footstep.1.ogg
255253
default_hard_footstep.2.ogg
256254
default_hard_footstep.3.ogg
@@ -275,14 +273,14 @@ Metal sounds:
275273
Tool breaking sounds added by sofar: CC-BY-3.0
276274
default_tool_breaks.* - http://www.freesound.org/people/HerbertBoland/sounds/33206/
277275

278-
AGFX (CC BY 3.0)
276+
AGFX (CC BY 3.0):
279277
https://www.freesound.org/people/AGFX/packs/1253/
280278
default_water_footstep.1.ogg
281279
default_water_footstep.2.ogg
282280
default_water_footstep.3.ogg
283281
(default_water_footstep.4.ogg is silent)
284282

285-
blukotek (CC0 1.0)
283+
blukotek (CC0 1.0):
286284
https://www.freesound.org/people/blukotek/sounds/251660/
287285
default_dig_snappy.ogg
288286

@@ -294,3 +292,7 @@ Chests sounds added by sofar, derived of several files mixed together:
294292
- http://www.freesound.org/people/kingsamas/sounds/135576/ CC-BY-3.0
295293
- http://www.freesound.org/people/bulbastre/sounds/126887/ CC-BY-3.0
296294
- http://www.freesound.org/people/Yoyodaman234/sounds/183541/ CC0
295+
296+
Ryding (CC0 1.0):
297+
http://freesound.org/people/Ryding/sounds/94337/
298+
default_snow_footstep.*.ogg

mods/default/functions.lua

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
-- mods/default/functions.lua
2-
31
--
42
-- Sounds
53
--
@@ -117,6 +115,21 @@ function default.node_sound_water_defaults(table)
117115
return table
118116
end
119117

118+
function default.node_sound_snow_defaults(table)
119+
table = table or {}
120+
table.footstep = table.footstep or
121+
{name = "default_snow_footstep", gain = 0.2}
122+
table.dig = table.dig or
123+
{name = "default_snow_footstep", gain = 0.3}
124+
table.dug = table.dug or
125+
{name = "default_snow_footstep", gain = 0.3}
126+
table.place = table.place or
127+
{name = "default_place_node", gain = 1.0}
128+
default.node_sound_defaults(table)
129+
return table
130+
end
131+
132+
120133
--
121134
-- Lavacooling
122135
--
@@ -145,8 +158,9 @@ if minetest.settings:get_bool("enable_lavacooling") ~= false then
145158
})
146159
end
147160

161+
148162
--
149-
-- optimized helper to put all items in an inventory into a drops list
163+
-- Optimized helper to put all items in an inventory into a drops list
150164
--
151165

152166
function default.get_inventory_drops(pos, inventory, drops)
@@ -161,11 +175,12 @@ function default.get_inventory_drops(pos, inventory, drops)
161175
end
162176
end
163177

178+
164179
--
165180
-- Papyrus and cactus growing
166181
--
167182

168-
-- wrapping the functions in abm action is necessary to make overriding them possible
183+
-- Wrapping the functions in ABM action is necessary to make overriding them possible
169184

170185
function default.grow_cactus(pos, node)
171186
if node.param2 >= 4 then
@@ -242,7 +257,7 @@ minetest.register_abm({
242257

243258

244259
--
245-
-- dig upwards
260+
-- Dig upwards
246261
--
247262

248263
function default.dig_up(pos, node, digger)
@@ -386,6 +401,7 @@ function default.register_leafdecay(def)
386401
end
387402
end
388403

404+
389405
--
390406
-- Convert dirt to something that fits the environment
391407
--
@@ -538,7 +554,7 @@ minetest.register_abm({
538554

539555

540556
--
541-
-- NOTICE: This method is not an official part of the API yet!
557+
-- NOTICE: This method is not an official part of the API yet.
542558
-- This method may change in future.
543559
--
544560

@@ -558,7 +574,7 @@ function default.can_interact_with_node(player, pos)
558574
return true
559575
end
560576

561-
-- is player wielding the right key?
577+
-- Is player wielding the right key?
562578
local item = player:get_wielded_item()
563579
if item:get_name() == "default:key" then
564580
local key_meta = item:get_meta()

mods/default/license.txt

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,3 +176,40 @@ rights may limit how you use the material.
176176

177177
For more details:
178178
http://creativecommons.org/licenses/by/3.0/
179+
180+
-----------------------
181+
182+
CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
183+
Iwan Gabovitch
184+
Ottomaani138
185+
Ogrebane
186+
blukotek
187+
Sevin7
188+
Yoyodaman234
189+
Ryding
190+
191+
No Copyright
192+
193+
The person who associated a work with this deed has dedicated the work to the
194+
public domain by waiving all of his or her rights to the work worldwide under
195+
copyright law, including all related and neighboring rights, to the extent
196+
allowed by law.
197+
198+
You can copy, modify, distribute and perform the work, even for commercial
199+
purposes, all without asking permission. See Other Information below.
200+
201+
Other Information:
202+
203+
In no way are the patent or trademark rights of any person affected by CC0, nor
204+
are the rights that other persons may have in the work or in how the work is
205+
used, such as publicity or privacy rights.
206+
207+
Unless expressly stated otherwise, the person who associated a work with this
208+
deed makes no warranties about the work, and disclaims liability for all uses
209+
of the work, to the fullest extent permitted by applicable law.
210+
211+
When using or citing the work, you should not imply endorsement by the author
212+
or the affirmer.
213+
214+
For more details:
215+
https://creativecommons.org/publicdomain/zero/1.0/

mods/default/nodes.lua

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ minetest.register_node("default:dirt_with_snow", {
445445
groups = {crumbly = 3, spreading_dirt_type = 1, snowy = 1},
446446
drop = 'default:dirt',
447447
sounds = default.node_sound_dirt_defaults({
448-
footstep = {name = "default_snow_footstep", gain = 0.15},
448+
footstep = {name = "default_snow_footstep", gain = 0.2},
449449
}),
450450
})
451451

@@ -525,11 +525,7 @@ minetest.register_node("default:snow", {
525525
},
526526
},
527527
groups = {crumbly = 3, falling_node = 1, puts_out_fire = 1, snowy = 1},
528-
sounds = default.node_sound_dirt_defaults({
529-
footstep = {name = "default_snow_footstep", gain = 0.15},
530-
dug = {name = "default_snow_footstep", gain = 0.2},
531-
dig = {name = "default_snow_footstep", gain = 0.2}
532-
}),
528+
sounds = default.node_sound_snow_defaults(),
533529

534530
on_construct = function(pos)
535531
pos.y = pos.y - 1
@@ -543,11 +539,7 @@ minetest.register_node("default:snowblock", {
543539
description = "Snow Block",
544540
tiles = {"default_snow.png"},
545541
groups = {crumbly = 3, puts_out_fire = 1, cools_lava = 1, snowy = 1},
546-
sounds = default.node_sound_dirt_defaults({
547-
footstep = {name = "default_snow_footstep", gain = 0.15},
548-
dug = {name = "default_snow_footstep", gain = 0.2},
549-
dig = {name = "default_snow_footstep", gain = 0.2}
550-
}),
542+
sounds = default.node_sound_snow_defaults(),
551543

552544
on_construct = function(pos)
553545
pos.y = pos.y - 1
1.14 KB
Binary file not shown.
1.33 KB
Binary file not shown.
477 Bytes
Binary file not shown.
6.64 KB
Binary file not shown.
7.94 KB
Binary file not shown.

mods/stairs/init.lua

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -779,9 +779,5 @@ stairs.register_stair_and_slab(
779779
{"default_snow.png"},
780780
"Snow Block Stair",
781781
"Snow Block Slab",
782-
default.node_sound_dirt_defaults({
783-
footstep = {name = "default_snow_footstep", gain = 0.15},
784-
dug = {name = "default_snow_footstep", gain = 0.2},
785-
dig = {name = "default_snow_footstep", gain = 0.2}
786-
})
782+
default.node_sound_snow_defaults()
787783
)

0 commit comments

Comments
 (0)