]> git.lizzy.rs Git - Crafter.git/blob - mods/main/sounds.lua
First push
[Crafter.git] / mods / main / sounds.lua
1 function main.stoneSound(table)
2         table = table or {}
3         table.dig = table.dig or
4                         {name = "stone",gain=0.3}
5         table.footstep = table.footstep or
6                         {name = "stone", gain = 0.2}
7         table.dug = table.dug or
8                         {name = "stone", gain = 1.0}
9         table.place = table.place or
10                         {name = "stone", gain = 1.0}
11         --default.node_sound_defaults(table)
12         return table
13 end
14
15 function main.woodSound(table)
16         table = table or {}
17         table.dig = table.dig or
18                         {name = "wood",gain=0.3}
19         table.footstep = table.footstep or
20                         {name = "wood", gain = 0.2}
21         table.dug = table.dug or
22                         {name = "wood", gain = 1.0}
23         table.place = table.place or
24                         {name = "wood", gain = 1.0}
25         --default.node_sound_defaults(table)
26         return table
27 end
28
29
30 function main.sandSound(table)
31         table = table or {}
32         table.dig = table.dig or
33                         {name = "sand",gain=0.3}
34         table.footstep = table.footstep or
35                         {name = "sand", gain = 0.2}
36         table.dug = table.dug or
37                         {name = "", gain = 1.0}
38         table.place = table.place or
39                         {name = "sand", gain = 0.5}
40         --default.node_sound_defaults(table)
41         return table
42 end
43
44 function main.grassSound(table)
45         table = table or {}
46         table.dig = table.dig or
47                         {name = "leaves",gain=0.3}
48         table.footstep = table.footstep or
49                         {name = "leaves", gain = 0.2}
50         table.dug = table.dug or
51                         {name = "leaves", gain = 1.0}
52         table.place = table.place or
53                         {name = "leaves", gain = 0.5}
54         --default.node_sound_defaults(table)
55         return table
56 end