]> git.lizzy.rs Git - Crafter.git/blob - mods/main/sounds.lua
remove server debug
[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.2}
5         table.footstep = table.footstep or
6                         {name = "stone", gain = 0.1}
7         table.dug = table.dug or
8                         {name = "stone", gain = 1.0}
9         table.placing = table.placing 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.placing = table.placing 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.09}
34         table.footstep = table.footstep or
35                         {name = "sand", gain = 0.07}
36         table.dug = table.dug or
37                         {name = "sand", gain = 0.09}
38         table.placing = table.placing or
39                         {name = "sand", gain = 0.09}
40         table.fall = table.fall or
41                         {name = "sand", gain = 0.01}
42         --default.node_sound_defaults(table)
43         return table
44 end
45
46 function main.grassSound(table)
47         table = table or {}
48         table.dig = table.dig or
49                         {name = "leaves",gain=0.2}
50         table.footstep = table.footstep or
51                         {name = "leaves", gain = 0.2}
52         table.dug = table.dug or
53                         {name = "leaves", gain = 0.5}
54         table.placing = table.placing or
55                         {name = "leaves", gain = 0.2}
56         --default.node_sound_defaults(table)
57         return table
58 end
59 function main.dirtSound(table)
60         table = table or {}
61         table.dig = table.dig or
62                         {name = "dirt",gain=0.5}
63         table.footstep = table.footstep or
64                         {name = "dirt", gain = 0.3}
65         table.dug = table.dug or
66                         {name = "dirt", gain = 1.0}
67         table.placing = table.placing or
68                         {name = "dirt", gain = 0.5}
69         --default.node_sound_defaults(table)
70         return table
71 end
72 function main.woolSound(table)
73         table = table or {}
74         table.dig = table.dig or
75                         {name = "wool",gain=0.5}
76         table.footstep = table.footstep or
77                         {name = "wool", gain = 0.3}
78         table.dug = table.dug or
79                         {name = "wool", gain = 1.0}
80         table.placing = table.placing or
81                         {name = "wool", gain = 0.5}
82         --default.node_sound_defaults(table)
83         return table
84 end