Stained glass
@ -1245,3 +1245,41 @@ minetest.register_node("decoblocks:polar_bear_rug", {
|
|||||||
groups = {cracky = 2, oddly_breakable_by_hand = 1},
|
groups = {cracky = 2, oddly_breakable_by_hand = 1},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
--stained glass
|
||||||
|
|
||||||
|
local colours = {
|
||||||
|
{"red", "Red"},
|
||||||
|
{"green", "Green"},
|
||||||
|
{"blue", "Blue"},
|
||||||
|
{"yellow", "Yellow"},
|
||||||
|
{"cyan", "Cyan"},
|
||||||
|
{"brown", "Brown"},
|
||||||
|
{"orange", "Orange"},
|
||||||
|
{"purple", "Purple"},
|
||||||
|
{"magenta", "Magenta"},
|
||||||
|
{"darkgreen", "Dark Green"},
|
||||||
|
{"darkgrey", "Dark Grey"},
|
||||||
|
{"grey", "Grey"},
|
||||||
|
{"white", "White"},
|
||||||
|
{"black", "Black"},
|
||||||
|
{"pink", "Pink"},
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, row in ipairs(colours) do
|
||||||
|
local colour = row[1]
|
||||||
|
local desc = row[2]
|
||||||
|
xpanes.register_pane(""..colour.."_glass", {
|
||||||
|
description = ""..desc.." Stained Glass Pane",
|
||||||
|
textures = {"decoblocks_"..colour.."_glass.png","decoblocks_"..colour.."_glass.png","decoblocks_"..colour.."_glass.png"},
|
||||||
|
use_texture_alpha = true,
|
||||||
|
inventory_image = "decoblocks_"..colour.."_glass.png",
|
||||||
|
wield_image = "decoblocks_"..colour.."_glass.png",
|
||||||
|
sounds = default.node_sound_glass_defaults(),
|
||||||
|
groups = {snappy=2, cracky=3, oddly_breakable_by_hand=3},
|
||||||
|
recipe = {
|
||||||
|
{"", "dye:"..colour, ""},
|
||||||
|
{"", "xpanes:pane", ""}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end
|
BIN
mods/decoblocks/textures/decoblocks_black_glass.png
Normal file
After Width: | Height: | Size: 572 B |
BIN
mods/decoblocks/textures/decoblocks_blue_glass.png
Normal file
After Width: | Height: | Size: 460 B |
BIN
mods/decoblocks/textures/decoblocks_brown_glass.png
Normal file
After Width: | Height: | Size: 426 B |
BIN
mods/decoblocks/textures/decoblocks_cyan_glass.png
Normal file
After Width: | Height: | Size: 481 B |
BIN
mods/decoblocks/textures/decoblocks_darkgreen_glass.png
Normal file
After Width: | Height: | Size: 442 B |
BIN
mods/decoblocks/textures/decoblocks_darkgrey_glass.png
Normal file
After Width: | Height: | Size: 709 B |
BIN
mods/decoblocks/textures/decoblocks_green_glass.png
Normal file
After Width: | Height: | Size: 458 B |
BIN
mods/decoblocks/textures/decoblocks_grey_glass.png
Normal file
After Width: | Height: | Size: 742 B |
BIN
mods/decoblocks/textures/decoblocks_magenta_glass.png
Normal file
After Width: | Height: | Size: 477 B |
BIN
mods/decoblocks/textures/decoblocks_orange_glass.png
Normal file
After Width: | Height: | Size: 465 B |
BIN
mods/decoblocks/textures/decoblocks_pink_glass.png
Normal file
After Width: | Height: | Size: 500 B |
BIN
mods/decoblocks/textures/decoblocks_purple_glass.png
Normal file
After Width: | Height: | Size: 468 B |
BIN
mods/decoblocks/textures/decoblocks_red_glass.png
Normal file
After Width: | Height: | Size: 445 B |
Before Width: | Height: | Size: 236 B |
BIN
mods/decoblocks/textures/decoblocks_white_glass.png
Normal file
After Width: | Height: | Size: 266 B |
BIN
mods/decoblocks/textures/decoblocks_yellow_glass.png
Normal file
After Width: | Height: | Size: 473 B |