mirror of
https://github.com/Ezhh/abriglass.git
synced 2024-11-19 21:43:45 +01:00
Move white glass into loop
This commit is contained in:
parent
1e7dd30da4
commit
06e7868224
22
nodes.lua
22
nodes.lua
@ -1,11 +1,11 @@
|
|||||||
|
|
||||||
-- undecorated coloured glass, all using plain glass texture
|
-- undecorated coloured glass, all using plain glass texture
|
||||||
local glass_list = {
|
local glass_list = {
|
||||||
{"black", "Darkened", "292421", }, {"blue", "Blue", "0000FF", },
|
{"black", "Darkened", "292421",}, {"blue", "Blue", "0000FF",},
|
||||||
{"cyan", "Cyan", "00FFFF", }, {"green", "Green", "00FF00", },
|
{"cyan", "Cyan", "00FFFF",}, {"green", "Green", "00FF00",},
|
||||||
{"magenta", "Magenta", "FF00FF", }, {"orange", "Orange", "FF6103", },
|
{"magenta", "Magenta", "FF00FF",}, {"orange", "Orange", "FF6103",},
|
||||||
{"purple", "Purple", "800080", }, {"red", "Red", "FF0000", },
|
{"purple", "Purple", "800080",}, {"red", "Red", "FF0000",},
|
||||||
{"yellow", "Yellow", "FFFF00", },
|
{"yellow", "Yellow", "FFFF00",}, {"frosted", "Frosted", "FFFFFF",}
|
||||||
}
|
}
|
||||||
|
|
||||||
for i in ipairs(glass_list) do
|
for i in ipairs(glass_list) do
|
||||||
@ -26,18 +26,6 @@ for i in ipairs(glass_list) do
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_node("abriglass:stained_glass_frosted", {
|
|
||||||
description = "Frosted Glass",
|
|
||||||
tiles = {"abriglass_plainglass.png^[colorize:#FFFFFF:122"}, --base texture
|
|
||||||
groups = {cracky = 3},
|
|
||||||
use_texture_alpha = true,
|
|
||||||
sunlight_propagates = true,
|
|
||||||
light_source = 4,
|
|
||||||
drawtype = "glasslike",
|
|
||||||
paramtype = "light",
|
|
||||||
sounds = default.node_sound_glass_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
-- boring glass because why not?
|
-- boring glass because why not?
|
||||||
minetest.register_node("abriglass:clear_glass", {
|
minetest.register_node("abriglass:clear_glass", {
|
||||||
|
Loading…
Reference in New Issue
Block a user