Move core sounds from mcl_core to mcl_sounds
This commit is contained in:
parent
7ff49a165a
commit
fcda60cc2e
121 changed files with 393 additions and 363 deletions
|
@ -613,91 +613,6 @@ minetest.register_abm({
|
|||
})
|
||||
|
||||
|
||||
--
|
||||
-- Sounds
|
||||
--
|
||||
|
||||
function mcl_core.node_sound_defaults(table)
|
||||
table = table or {}
|
||||
table.footstep = table.footstep or
|
||||
{name="", gain=1.0}
|
||||
table.dug = table.dug or
|
||||
{name="default_dug_node", gain=0.25}
|
||||
table.place = table.place or
|
||||
{name="default_place_node_hard", gain=1.0}
|
||||
return table
|
||||
end
|
||||
|
||||
function mcl_core.node_sound_stone_defaults(table)
|
||||
table = table or {}
|
||||
table.footstep = table.footstep or
|
||||
{name="default_hard_footstep", gain=0.5}
|
||||
table.dug = table.dug or
|
||||
{name="default_hard_footstep", gain=1.0}
|
||||
mcl_core.node_sound_defaults(table)
|
||||
return table
|
||||
end
|
||||
|
||||
-- TODO: Maybe add custom metal sounds
|
||||
mcl_core.node_sound_metal_defaults = mcl_core.node_sound_stone_defaults
|
||||
|
||||
function mcl_core.node_sound_dirt_defaults(table)
|
||||
table = table or {}
|
||||
table.footstep = table.footstep or
|
||||
{name="default_dirt_footstep", gain=1.0}
|
||||
table.dug = table.dug or
|
||||
{name="default_dirt_footstep", gain=1.5}
|
||||
table.place = table.place or
|
||||
{name="default_place_node", gain=1.0}
|
||||
mcl_core.node_sound_defaults(table)
|
||||
return table
|
||||
end
|
||||
|
||||
function mcl_core.node_sound_sand_defaults(table)
|
||||
table = table or {}
|
||||
table.footstep = table.footstep or
|
||||
{name="default_sand_footstep", gain=0.5}
|
||||
table.dug = table.dug or
|
||||
{name="default_sand_footstep", gain=1.0}
|
||||
table.place = table.place or
|
||||
{name="default_place_node", gain=1.0}
|
||||
mcl_core.node_sound_defaults(table)
|
||||
return table
|
||||
end
|
||||
|
||||
function mcl_core.node_sound_wood_defaults(table)
|
||||
table = table or {}
|
||||
table.footstep = table.footstep or
|
||||
{name="default_wood_footstep", gain=0.5}
|
||||
table.dug = table.dug or
|
||||
{name="default_wood_footstep", gain=1.0}
|
||||
mcl_core.node_sound_defaults(table)
|
||||
return table
|
||||
end
|
||||
|
||||
function mcl_core.node_sound_leaves_defaults(table)
|
||||
table = table or {}
|
||||
table.footstep = table.footstep or
|
||||
{name="default_grass_footstep", gain=0.35}
|
||||
table.dug = table.dug or
|
||||
{name="default_grass_footstep", gain=0.85}
|
||||
table.dig = table.dig or
|
||||
{name="default_dig_crumbly", gain=0.4}
|
||||
table.place = table.place or
|
||||
{name="default_place_node", gain=1.0}
|
||||
mcl_core.node_sound_defaults(table)
|
||||
return table
|
||||
end
|
||||
|
||||
function mcl_core.node_sound_glass_defaults(table)
|
||||
table = table or {}
|
||||
table.footstep = table.footstep or
|
||||
{name="default_glass_footstep", gain=0.5}
|
||||
table.dug = table.dug or
|
||||
{name="default_break_glass", gain=1.0}
|
||||
mcl_core.node_sound_defaults(table)
|
||||
return table
|
||||
end
|
||||
|
||||
-- Leaf Decay
|
||||
|
||||
|
@ -811,7 +726,7 @@ function mcl_core.add_glass(desc, recipeitem, color)
|
|||
use_texture_alpha = true,
|
||||
stack_max = 64,
|
||||
groups = {cracky=3,oddly_breakable_by_hand=3, building_block=1},
|
||||
sounds = mcl_core.node_sound_glass_defaults(),
|
||||
sounds = mcl_sounds.node_sound_glass_defaults(),
|
||||
drop = "",
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue