Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Add some new sounds by @IngarKCT

  • Loading branch information
BlockMen committed Dec 6, 2015
1 parent 3df5fc9 commit bafe9ce50909ed697bdf4d8075a88c7865c1f7d2
@@ -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
@@ -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},
}),
})

@@ -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
@@ -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(),
})
@@ -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)
@@ -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 not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit bafe9ce

Please sign in to comment.