]> git.lizzy.rs Git - dragonblocks.git/blob - game/wool/init.js
Map abstraction and World class
[dragonblocks.git] / game / wool / init.js
1 wool = {};
2 wool.colors = ["black", "blue", "brown", "cyan", "dark_green", "dark_grey", "green", "grey", "magenta", "orange", "pink", "red", "violet", "white", "yellow"];
3 for(let color of wool.colors){
4         dragonblocks.registerNode({
5                 name: "wool:" + color,
6                 stable: true,
7                 texture: "wool_" + color + ".png",
8                 groups: ["snappy", "flammable"],
9                 hardness: 4,
10                 desc: dblib.humanFormat(color) + " Wool",
11                 flammable: true,
12         });
13 }