Added coloured glass and fixed violet
This commit is contained in:
parent
992dd49403
commit
1c8236f41f
@ -3,3 +3,8 @@ 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.
|
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
|
||||||
|
23
init.lua
23
init.lua
@ -11,7 +11,7 @@ local colours = {
|
|||||||
{"orange", "Orange", "#ff840170"},
|
{"orange", "Orange", "#ff840170"},
|
||||||
{"pink", "Pink", "#ff65b570"},
|
{"pink", "Pink", "#ff65b570"},
|
||||||
{"red", "Red", "#ff000070"},
|
{"red", "Red", "#ff000070"},
|
||||||
{"violet", "Violet", "#ea05ff70"},
|
{"violet", "Violet", "#2000c970"},
|
||||||
{"white", "White", "#abababc0"},
|
{"white", "White", "#abababc0"},
|
||||||
{"yellow", "Yellow", "#e3ff0070"},
|
{"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
|
end
|
BIN
textures/cblocks.png
Normal file
BIN
textures/cblocks.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 84 B |
Loading…
x
Reference in New Issue
Block a user