mirror of
https://github.com/Ezhh/abriglass.git
synced 2024-08-20 03:34:04 +02:00
Add portholes
This commit is contained in:
parent
88e8fa66ef
commit
d2306baca7
@ -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
|
||||||
|
33
nodes.lua
33
nodes.lua
@ -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",},
|
||||||
|
BIN
textures/abriglass_porthole_junglewood.png
Normal file
BIN
textures/abriglass_porthole_junglewood.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.9 KiB |
BIN
textures/abriglass_porthole_wood.png
Normal file
BIN
textures/abriglass_porthole_wood.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.0 KiB |
Loading…
Reference in New Issue
Block a user