Add portholes

master
ezhh 2017-02-09 22:32:09 +00:00
parent 88e8fa66ef
commit d2306baca7
4 changed files with 35 additions and 1 deletions

View File

@ -7,7 +7,8 @@ Stained glass Minetest mod by Shara RedCat which adds:
2. Patterned stained glass. 2. Patterned stained glass.
3. Glass lights. 3. Glass lights.
4. One way windows. 4. One way windows.
5. Hidden light node. 5. Portholes.
6. Hidden light node.
Crafting Crafting

View File

@ -106,6 +106,39 @@ for i in ipairs(pattern_list) do
end end
-- portholes
local port_list = {
{"wood",}, {"junglewood",},
}
for i in ipairs(port_list) do
local name = port_list[i][1]
minetest.register_node("abriglass:porthole_"..name, {
description = "Porthole",
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
},
},
groups = {choppy = 2, flammable = 2, wood = 1},
tiles = {"default_"..name.. ".png", -- up
"default_"..name.. ".png", -- down
"default_"..name.. ".png", -- right
"default_"..name.. ".png", -- left
"abriglass_porthole_"..name..".png", -- back
"abriglass_porthole_"..name..".png", -- front
},
is_ground_content = false,
sunlight_propagates = true,
})
end
-- one-way glass -- one-way glass
local oneway_list = { local oneway_list = {
{"dark", "Dark", "oneway_face.png", "abriglass_oneway_wall.png",}, {"dark", "Dark", "oneway_face.png", "abriglass_oneway_wall.png",},

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB