Added coloured glass and fixed violet

master
TenPlus1 2015-09-30 13:54:23 +01:00
parent 992dd49403
commit 1c8236f41f
3 changed files with 28 additions and 2 deletions

View File

@ -2,4 +2,9 @@ CBlocks (Coloured Blocks) mod for Minetest
This mod adds coloured wood and stonebrick blocks to the game without the need for any additional textures. To craft place 2 wood or stonebrick blocks and then 1 coloured dye.
https://forum.minetest.net/viewtopic.php?f=9&t=13303
https://forum.minetest.net/viewtopic.php?f=9&t=13303
Released under WTFPL
0.1 - Initial release
0.2 - Added coloured glass and fixed violet

View File

@ -11,7 +11,7 @@ local colours = {
{"orange", "Orange", "#ff840170"},
{"pink", "Pink", "#ff65b570"},
{"red", "Red", "#ff000070"},
{"violet", "Violet", "#ea05ff70"},
{"violet", "Violet", "#2000c970"},
{"white", "White", "#abababc0"},
{"yellow", "Yellow", "#e3ff0070"},
}
@ -52,4 +52,25 @@ minetest.register_craft({
}
})
-- glass
minetest.register_node( "cblocks:glass_" .. colours[i][1], {
description = colours[i][2] .. " Glass",
tiles = {"cblocks.png^[colorize:" .. colours[i][3]},
drawtype = "glasslike",
paramtype = "light",
sunlight_propagates = true,
use_texture_alpha = true,
is_ground_content = false,
groups = {cracky = 3, oddly_breakable_by_hand = 3},
sounds = default.node_sound_glass_defaults(),
})
minetest.register_craft({
output = "cblocks:glass_".. colours[i][1] .. " 2",
recipe = {
{"default:glass","default:glass", "dye:" .. colours[i][1]},
}
})
end

BIN
textures/cblocks.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 B