]> git.lizzy.rs Git - dragonblocks.git/blob - engine/builtin.js
03b95bf9df23601f9e4f38c6ff75aff23977885e
[dragonblocks.git] / engine / builtin.js
1 /*
2  * builtin.js
3  * 
4  * Copyright 2020 Elias Fleckenstein <eliasfleckenstein@web.de>
5  * 
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  * 
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  * 
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19  * MA 02110-1301, USA.
20  * 
21  * 
22  */
23 dragonblocks.registerNode({
24         name: "air",
25         texture: "none",
26         stable: false,
27         hidden: true,
28         hardness: 1,
29         zIndex: -1,
30         ondig: _ => {
31                 return false;
32         }
33 });
34 dragonblocks.registerGroup({
35         name: "default",
36         sounds:{
37                 dig: "sounds/dig.ogg",
38                 dug: "sounds/dug.ogg",
39                 place: "sounds/place.ogg",
40         }
41 });
42 dragonblocks.registerGroup({
43         name: "cracky",
44         sounds:{
45                 dig: "sounds/dig_cracky.ogg",
46         }
47 });
48 dragonblocks.registerGroup({
49         name: "crumbly",
50         sounds:{
51                 dig: "sounds/dig_crumbly.ogg",
52         }
53 });
54 dragonblocks.registerGroup({
55         name: "snappy",
56         sounds:{
57                 dig: "sounds/dig_snappy.ogg",
58         }
59 });
60 dragonblocks.registerGroup({
61         name: "choppy",
62         sounds:{
63                 dig: "sounds/dig_choppy.ogg",
64         }
65 });
66 dragonblocks.registerGroup({
67         name: "liquid",
68         sounds:{
69                 dig: "",
70                 dug: "",
71                 place: "",
72         }
73 });