Stained glass

master
D00Med 2017-11-12 12:50:37 +10:00
parent 93489e8986
commit 72884bf11f
17 changed files with 38 additions and 0 deletions

View File

@ -1245,3 +1245,41 @@ minetest.register_node("decoblocks:polar_bear_rug", {
groups = {cracky = 2, oddly_breakable_by_hand = 1},
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

Binary file not shown.

After

Width:  |  Height:  |  Size: 572 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 460 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 426 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 481 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 442 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 709 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 458 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 742 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 477 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 465 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 500 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 468 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 445 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 236 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 473 B