Crafter/mods/main/sounds.lua
2020-04-07 21:58:14 -04:00

85 lines
2.1 KiB
Lua

function main.stoneSound(table)
table = table or {}
table.dig = table.dig or
{name = "stone",gain=0.2}
table.footstep = table.footstep or
{name = "stone", gain = 0.1}
table.dug = table.dug or
{name = "stone", gain = 1.0}
table.placing = table.placing or
{name = "stone", gain = 1.0}
--default.node_sound_defaults(table)
return table
end
function main.woodSound(table)
table = table or {}
table.dig = table.dig or
{name = "wood",gain=0.3}
table.footstep = table.footstep or
{name = "wood", gain = 0.2}
table.dug = table.dug or
{name = "wood", gain = 1.0}
table.placing = table.placing or
{name = "wood", gain = 1.0}
--default.node_sound_defaults(table)
return table
end
function main.sandSound(table)
table = table or {}
table.dig = table.dig or
{name = "sand",gain=0.09}
table.footstep = table.footstep or
{name = "sand", gain = 0.07}
table.dug = table.dug or
{name = "sand", gain = 0.09}
table.placing = table.placing or
{name = "sand", gain = 0.09}
table.fall = table.fall or
{name = "sand", gain = 0.01}
--default.node_sound_defaults(table)
return table
end
function main.grassSound(table)
table = table or {}
table.dig = table.dig or
{name = "leaves",gain=0.2}
table.footstep = table.footstep or
{name = "leaves", gain = 0.2}
table.dug = table.dug or
{name = "leaves", gain = 0.5}
table.placing = table.placing or
{name = "leaves", gain = 0.5}
--default.node_sound_defaults(table)
return table
end
function main.dirtSound(table)
table = table or {}
table.dig = table.dig or
{name = "dirt",gain=0.5}
table.footstep = table.footstep or
{name = "dirt", gain = 0.3}
table.dug = table.dug or
{name = "dirt", gain = 1.0}
table.placing = table.placing or
{name = "dirt", gain = 0.5}
--default.node_sound_defaults(table)
return table
end
function main.woolSound(table)
table = table or {}
table.dig = table.dig or
{name = "wool",gain=0.5}
table.footstep = table.footstep or
{name = "wool", gain = 0.3}
table.dug = table.dug or
{name = "wool", gain = 1.0}
table.placing = table.placing or
{name = "wool", gain = 0.5}
--default.node_sound_defaults(table)
return table
end