1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-11-18 08:00:40 +01:00

Add stained glass

This commit is contained in:
kilbith 2015-05-13 00:03:02 +02:00
parent b93ec107d7
commit e0fe854c5d
4 changed files with 36 additions and 4 deletions

View File

@ -3298,6 +3298,24 @@ minetest.register_craft({
},
})
minetest.register_craft({
output = "homedecor:stained_glass 8",
recipe = {
{"", "dye:blue", ""},
{"dye:red", "default:glass", "dye:green"},
{"", "dye:yellow", ""},
},
})
minetest.register_craft({
output = "homedecor:stained_glass",
recipe = {
{"", "dye:blue", ""},
{"dye:red", "xpanes:pane", "dye:green"},
{"", "dye:yellow", ""},
},
})
for i in ipairs(homedecor.banister_materials) do
local name = homedecor.banister_materials[i][1]

View File

@ -197,10 +197,10 @@ homedecor.register("lattice_"..m[1], {
type = "fixed",
fixed = {
{-0.5, -0.5, 0.47, 0.5, 0.5, 0.47}, -- NodeBox1
{-0.5, 0.422, 0.44, 0.5, 0.5, 0.5}, -- NodeBox2
{-0.5, -0.5, 0.44, 0.5, -0.422, 0.5}, -- NodeBox3
{0.422, -0.5, 0.44, 0.5, 0.5, 0.5}, -- NodeBox4
{-0.5, -0.5, 0.44, -0.422, 0.5, 0.5} -- NodeBox5
{-0.5, 0.421875, 0.44, 0.5, 0.5, 0.5}, -- NodeBox2
{-0.5, -0.5, 0.44, 0.5, -0.421875, 0.5}, -- NodeBox3
{0.421875, -0.5, 0.44, 0.5, 0.5, 0.5}, -- NodeBox4
{-0.5, -0.5, 0.44, -0.421875, 0.5, 0.5} -- NodeBox5
}
},
selection_box = {

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -203,3 +203,17 @@ homedecor.register("window_flowerbox", {
}
}
})
homedecor.register("stained_glass", {
description = "Stained Glass",
tiles = {"homedecor_stained_glass.png"},
inventory_image = "homedecor_stained_glass.png",
groups = {snappy=3},
use_texture_alpha = true,
light_source = 3,
sounds = default.node_sound_glass_defaults(),
node_box = {
type = "fixed",
fixed = { {-0.5, -0.5, 0.46875, 0.5, 0.5, 0.5} }
}
})