Rainbows are made from stained glass now.

This commit is contained in:
walterhiggins 2014-08-23 17:36:19 +01:00
parent df0491ff14
commit e7916f8afe

View file

@ -133,7 +133,9 @@ var blocks = {
cake: 92, cake: 92,
redstone_repeater: 93, redstone_repeater: 93,
redeston_repeater_active: 94, redeston_repeater_active: 94,
chest_locked: 95, stained_glass: {
white: 95 // all other colors added below
},
trapdoor: 96, trapdoor: 96,
monster_egg: 97, monster_egg: 97,
brick: { brick: {
@ -254,7 +256,7 @@ var colors = {
red: ':14', red: ':14',
black: ':15' black: ':15'
}; };
var colorized_blocks = ['wool', 'stained_clay', 'carpet']; var colorized_blocks = ['wool', 'stained_clay', 'carpet', 'stained_glass'];
for (var i = 0, len = colorized_blocks.length; i < len; i++) { for (var i = 0, len = colorized_blocks.length; i < len; i++) {
var block = colorized_blocks[i], var block = colorized_blocks[i],
@ -272,12 +274,12 @@ for (var i = 0, len = colorized_blocks.length; i < len; i++) {
clay blocks. clay blocks.
*/ */
blocks.rainbow = [ blocks.rainbow = [
blocks.wool.red, blocks.stained_glass.red,
blocks.wool.orange, blocks.stained_glass.orange,
blocks.wool.yellow, blocks.stained_glass.yellow,
blocks.wool.lime, blocks.stained_glass.lime,
blocks.wool.lightblue, blocks.stained_glass.lightblue,
blocks.wool.blue, blocks.stained_glass.blue,
blocks.wool.purple]; blocks.stained_glass.purple];
module.exports = blocks; module.exports = blocks;