Skip to content
This repository has been archived by the owner on Dec 14, 2019. It is now read-only.

Commit

Permalink
Add some new sounds by @IngarKCT
Browse files Browse the repository at this point in the history
  • Loading branch information
BlockMen committed Dec 6, 2015
1 parent 3df5fc9 commit bafe9ce
Show file tree
Hide file tree
Showing 21 changed files with 37 additions and 23 deletions.
31 changes: 19 additions & 12 deletions mods/default/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -192,28 +192,35 @@ Mito551 (CC BY-SA):
default_dig_oddly_breakable_by_hand.ogg
default_dug_node.1.ogg
default_dug_node.2.ogg
default_grass_footstep.1.ogg
default_grass_footstep.2.ogg
default_grass_footstep.3.ogg
default_gravel_footstep.1.ogg
default_gravel_footstep.2.ogg
default_gravel_footstep.3.ogg
default_gravel_footstep.4.ogg
default_grass_footstep.1.ogg
default_place_node.1.ogg
default_place_node.2.ogg
default_place_node.3.ogg
default_place_node_hard.1.ogg
default_place_node_hard.2.ogg
default_snow_footstep.1.ogg
default_snow_footstep.2.ogg
default_hard_footstep.1.ogg
default_hard_footstep.2.ogg
default_hard_footstep.3.ogg
default_sand_footstep.1.ogg
default_sand_footstep.2.ogg
default_wood_footstep.1.ogg
default_wood_footstep.2.ogg
default_dirt_footstep.1.ogg
default_dirt_footstep.2.ogg
default_glass_footstep.ogg

Copyright (c) 2015 ingar:
default_grass_footstep.1.ogg
default_grass_footstep.2.ogg
default_grass_footstep.3.ogg
default_grass_footstep.4.ogg
default_grass_place.1.ogg
default_gravel_footstep.1.ogg
default_gravel_footstep.2.ogg
default_gravel_footstep.3.ogg
default_gravel_footstep.4.ogg
default_sand_footstep.1.ogg
default_sand_footstep.2.ogg
default_sand_footstep.3.ogg
default_sand_footstep.4.ogg
default_snow_footstep.1.ogg
default_snow_footstep.2.ogg
default_snow_footstep.3.ogg
default_snow_footstep.4.ogg
3 changes: 2 additions & 1 deletion mods/default/nodes/dirt.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ minetest.register_node("default:dirt_with_grass", {
groups = {crumbly = 3, soil = 1},
drop = 'default:dirt',
sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_grass_footstep", gain = 0.25},
footstep = {name = "default_grass_footstep", gain = 0.2},
on_place = {name = "default_grass_place", gain = 0.5},
}),
})

Expand Down
10 changes: 2 additions & 8 deletions mods/default/nodes/snow.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ minetest.register_node("default:snow", {
},
},
groups = {crumbly = 3, falling_node = 1, puts_out_fire = 1},
sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_snow_footstep", gain = 0.25},
dug = {name = "default_snow_footstep", gain = 0.75},
}),
sounds = default.node_sound_snow_defaults(),

on_construct = function(pos)
pos.y = pos.y - 1
Expand All @@ -30,8 +27,5 @@ minetest.register_node("default:snowblock", {
description = "Snow Block",
tiles = {"default_snow.png"},
groups = {crumbly = 3, puts_out_fire = 1},
sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_snow_footstep", gain = 0.25},
dug = {name = "default_snow_footstep", gain = 0.75},
}),
sounds = default.node_sound_snow_defaults(),
})
16 changes: 14 additions & 2 deletions mods/default/nodes/sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ end
function default.node_sound_sand_defaults(table)
table = table or {}
table.footstep = table.footstep or
{name = "default_sand_footstep", gain = 0.2}
{name = "default_sand_footstep", gain = 0.8}
table.dug = table.dug or
{name = "default_sand_footstep", gain = 0.4}
{name = "default_sand_footstep", gain = 0.8}
table.dig = table.dig or
{name = "default_sand_footstep", gain = 1.8}
table.place = table.place or
{name = "default_place_node", gain = 1.0}
default.node_sound_defaults(table)
Expand Down Expand Up @@ -76,3 +78,13 @@ function default.node_sound_glass_defaults(table)
default.node_sound_defaults(table)
return table
end

function default.node_sound_snow_defaults(table)
table = table or {}
table.footstep = table.footstep or
{name = "default_snow_footstep", gain = 0.15}
table.dug = table.dug or
{name = "default_snow_footstep", gain = 0.75}
default.node_sound_defaults(table)
return table
end
Binary file modified mods/default/sounds/default_grass_footstep.1.ogg
Binary file not shown.
Binary file modified mods/default/sounds/default_grass_footstep.2.ogg
Binary file not shown.
Binary file modified mods/default/sounds/default_grass_footstep.3.ogg
Binary file not shown.
Binary file added mods/default/sounds/default_grass_footstep.4.ogg
Binary file not shown.
Binary file added mods/default/sounds/default_grass_place.1.ogg
Binary file not shown.
Binary file modified mods/default/sounds/default_gravel_footstep.1.ogg
Binary file not shown.
Binary file modified mods/default/sounds/default_gravel_footstep.2.ogg
Binary file not shown.
Binary file modified mods/default/sounds/default_gravel_footstep.3.ogg
Binary file not shown.
Binary file modified mods/default/sounds/default_gravel_footstep.4.ogg
Binary file not shown.
Binary file modified mods/default/sounds/default_sand_footstep.1.ogg
Binary file not shown.
Binary file modified mods/default/sounds/default_sand_footstep.2.ogg
Binary file not shown.
Binary file added mods/default/sounds/default_sand_footstep.3.ogg
Binary file not shown.
Binary file added mods/default/sounds/default_sand_footstep.4.ogg
Binary file not shown.
Binary file modified mods/default/sounds/default_snow_footstep.1.ogg
Binary file not shown.
Binary file modified mods/default/sounds/default_snow_footstep.2.ogg
Binary file not shown.
Binary file modified mods/default/sounds/default_snow_footstep.3.ogg
Binary file not shown.
Binary file added mods/default/sounds/default_snow_footstep.4.ogg
Binary file not shown.

0 comments on commit bafe9ce

Please sign in to comment.