Default: Add function 'node_sound_gravel_defaults()'
This commit is contained in:
parent
fafbe2c268
commit
1a6298958e
@ -49,6 +49,18 @@ function default.node_sound_sand_defaults(table)
|
|||||||
return table
|
return table
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function default.node_sound_gravel_defaults(table)
|
||||||
|
table = table or {}
|
||||||
|
table.footstep = table.footstep or
|
||||||
|
{name = "default_gravel_footstep", gain = 0.5}
|
||||||
|
table.dug = table.dug or
|
||||||
|
{name = "default_gravel_footstep", gain = 1.0}
|
||||||
|
table.place = table.place or
|
||||||
|
{name = "default_place_node", gain = 1.0}
|
||||||
|
default.node_sound_defaults(table)
|
||||||
|
return table
|
||||||
|
end
|
||||||
|
|
||||||
function default.node_sound_wood_defaults(table)
|
function default.node_sound_wood_defaults(table)
|
||||||
table = table or {}
|
table = table or {}
|
||||||
table.footstep = table.footstep or
|
table.footstep = table.footstep or
|
||||||
|
@ -353,10 +353,7 @@ minetest.register_node("default:gravel", {
|
|||||||
description = "Gravel",
|
description = "Gravel",
|
||||||
tiles = {"default_gravel.png"},
|
tiles = {"default_gravel.png"},
|
||||||
groups = {crumbly = 2, falling_node = 1},
|
groups = {crumbly = 2, falling_node = 1},
|
||||||
sounds = default.node_sound_dirt_defaults({
|
sounds = default.node_sound_gravel_defaults(),
|
||||||
footstep = {name = "default_gravel_footstep", gain = 0.5},
|
|
||||||
dug = {name = "default_gravel_footstep", gain = 1.0},
|
|
||||||
}),
|
|
||||||
drop = {
|
drop = {
|
||||||
max_items = 1,
|
max_items = 1,
|
||||||
items = {
|
items = {
|
||||||
|
Loading…
Reference in New Issue
Block a user