forked from nalc/homedecor_modpack
Add stained glass
This commit is contained in:
parent
b93ec107d7
commit
e0fe854c5d
@ -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]
|
||||
|
@ -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 = {
|
||||
|
BIN
homedecor/textures/homedecor_stained_glass.png
Normal file
BIN
homedecor/textures/homedecor_stained_glass.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
@ -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} }
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user