add softer footsteps for some fungus types

This commit is contained in:
FaceDeer 2019-08-12 20:48:41 -06:00
parent ca0db16a17
commit 97fa1e99c5
9 changed files with 16 additions and 5 deletions

View File

@ -10,7 +10,7 @@ minetest.register_node("df_trees:goblin_cap_stem", {
tiles = {"dfcaverns_goblin_cap_stem.png"},
is_ground_content = true,
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, goblin_cap = 1},
sounds = default.node_sound_wood_defaults(),
sounds = df_trees.node_sound_tree_soft_fungus_defaults(),
})
--cap
@ -21,7 +21,7 @@ minetest.register_node("df_trees:goblin_cap", {
tiles = {"dfcaverns_goblin_cap.png"},
is_ground_content = true,
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, goblin_cap = 1},
sounds = default.node_sound_wood_defaults(),
sounds = df_trees.node_sound_tree_soft_fungus_defaults(),
})
--gills

View File

@ -1,5 +1,13 @@
df_trees = {}
df_trees.node_sound_tree_soft_fungus_defaults = function(table)
table = table or {}
table.footstep = table.footstep or
{name = "dfcaverns_fungus_footstep", gain = 0.3}
default.node_sound_wood_defaults(table)
return table
end
--grab a shorthand for the filepath of the mod
local modpath = minetest.get_modpath(minetest.get_current_modname())

View File

@ -21,7 +21,9 @@ minetest.register_node("df_trees:nether_cap", {
tiles = {"dfcaverns_nether_cap.png"},
is_ground_content = true,
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, puts_out_fire = 1, cools_lava = 1, freezes_water = 1 },
sounds = default.node_sound_wood_defaults(),
sounds = default.node_sound_wood_defaults({
footstep = {name = "default_snow_footstep", gain = 0.2},
}),
})
--gills

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1 @@
dfcaverns_fungus_footstep are from https://freesound.org/people/jakeh111/sounds/60853/ under CC-BY-SA 3.0 in 2008 by jakeh111

View File

@ -10,7 +10,7 @@ minetest.register_node("df_trees:tower_cap_stem", {
tiles = {"dfcaverns_tower_cap.png"},
is_ground_content = true,
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, tower_cap = 1},
sounds = default.node_sound_wood_defaults(),
sounds = df_trees.node_sound_tree_soft_fungus_defaults(),
})
--cap
@ -21,7 +21,7 @@ minetest.register_node("df_trees:tower_cap", {
tiles = {"dfcaverns_tower_cap.png"},
is_ground_content = true,
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, tower_cap = 1},
sounds = default.node_sound_wood_defaults(),
sounds = df_trees.node_sound_tree_soft_fungus_defaults(),
})
--gills