Skip to content

Commit

Permalink
Kelp, coral sounds: Add missing 'footstep'. Use quiet 'dig', 'dug'
Browse files Browse the repository at this point in the history
Footstep sounds as sand or cubic coral nodes.
Dig and dug sounds as leaves but much lower gain to be suitable for
underwater.
  • Loading branch information
paramat committed Feb 16, 2019
1 parent b92f743 commit 1ca25ee
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions mods/default/nodes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1929,6 +1929,10 @@ minetest.register_node("default:sand_with_kelp", {
},
node_dig_prediction = "default:sand",
node_placement_prediction = "",
sounds = default.node_sound_sand_defaults({
dig = {name = "default_dig_snappy", gain = 0.2},
dug = {name = "default_grass_footstep", gain = 0.25},
}),

on_place = function(itemstack, placer, pointed_thing)
-- Call on_rightclick if the pointed node defines it
Expand Down Expand Up @@ -2000,6 +2004,11 @@ minetest.register_node("default:coral_green", {
},
node_dig_prediction = "default:coral_skeleton",
node_placement_prediction = "",
sounds = default.node_sound_stone_defaults({
dig = {name = "default_dig_snappy", gain = 0.2},
dug = {name = "default_grass_footstep", gain = 0.25},
}),

on_place = function(itemstack, placer, pointed_thing)
if pointed_thing.type ~= "node" or not placer then
return itemstack
Expand Down Expand Up @@ -2028,6 +2037,7 @@ minetest.register_node("default:coral_green", {

return itemstack
end,

after_destruct = function(pos, oldnode)
minetest.set_node(pos, {name = "default:coral_skeleton"})
end,
Expand All @@ -2051,6 +2061,11 @@ minetest.register_node("default:coral_pink", {
},
node_dig_prediction = "default:coral_skeleton",
node_placement_prediction = "",
sounds = default.node_sound_stone_defaults({
dig = {name = "default_dig_snappy", gain = 0.2},
dug = {name = "default_grass_footstep", gain = 0.25},
}),

on_place = function(itemstack, placer, pointed_thing)
if pointed_thing.type ~= "node" or not placer then
return itemstack
Expand Down Expand Up @@ -2079,6 +2094,7 @@ minetest.register_node("default:coral_pink", {

return itemstack
end,

after_destruct = function(pos, oldnode)
minetest.set_node(pos, {name = "default:coral_skeleton"})
end,
Expand All @@ -2102,6 +2118,11 @@ minetest.register_node("default:coral_cyan", {
},
node_dig_prediction = "default:coral_skeleton",
node_placement_prediction = "",
sounds = default.node_sound_stone_defaults({
dig = {name = "default_dig_snappy", gain = 0.2},
dug = {name = "default_grass_footstep", gain = 0.25},
}),

on_place = function(itemstack, placer, pointed_thing)
if pointed_thing.type ~= "node" or not placer then
return itemstack
Expand Down Expand Up @@ -2130,6 +2151,7 @@ minetest.register_node("default:coral_cyan", {

return itemstack
end,

after_destruct = function(pos, oldnode)
minetest.set_node(pos, {name = "default:coral_skeleton"})
end,
Expand Down

0 comments on commit 1ca25ee

Please sign in to comment.