Crafter/mods/main/sounds.lua

85 lines
2.1 KiB
Lua
Raw Normal View History

2020-02-12 18:01:40 -05:00
function main.stoneSound(table)
2020-03-10 23:56:27 -07:00
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
2020-02-12 18:01:40 -05:00
end
function main.woodSound(table)
2020-03-10 23:56:27 -07:00
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
2020-02-12 18:01:40 -05:00
end
function main.sandSound(table)
2020-03-10 23:56:27 -07:00
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
2020-02-12 18:01:40 -05:00
end
function main.grassSound(table)
2020-03-10 23:56:27 -07:00
table = table or {}
table.dig = table.dig or
2020-04-07 21:58:14 -04:00
{name = "leaves",gain=0.2}
2020-03-10 23:56:27 -07:00
table.footstep = table.footstep or
{name = "leaves", gain = 0.2}
table.dug = table.dug or
2020-04-07 21:58:14 -04:00
{name = "leaves", gain = 0.5}
2020-03-10 23:56:27 -07:00
table.placing = table.placing or
{name = "leaves", gain = 0.5}
--default.node_sound_defaults(table)
return table
2020-02-12 18:01:40 -05:00
end
2020-02-16 11:11:04 -05:00
function main.dirtSound(table)
2020-03-10 23:56:27 -07:00
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
2020-02-16 11:11:04 -05:00
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