1 function main.stoneSound(table)
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)
15 function main.woodSound(table)
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)
30 function main.sandSound(table)
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 = "sand", gain = 0.3}
38 table.place = table.place or
39 {name = "sand", gain = 0.3}
40 --default.node_sound_defaults(table)
44 function main.grassSound(table)
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)
57 function main.dirtSound(table)
59 table.dig = table.dig or
60 {name = "dirt",gain=0.5}
61 table.footstep = table.footstep or
62 {name = "dirt", gain = 0.3}
63 table.dug = table.dug or
64 {name = "dirt", gain = 1.0}
65 table.place = table.place or
66 {name = "dirt", gain = 0.5}
67 --default.node_sound_defaults(table)