2014-06-27 02:13:16 +02:00
|
|
|
|
2014-06-27 02:15:43 +02:00
|
|
|
minetest.register_node("homedecor:window_quartered", {
|
2014-06-27 02:13:16 +02:00
|
|
|
description = "Window",
|
|
|
|
tiles = {
|
|
|
|
"homedecor_window_sides.png",
|
|
|
|
"homedecor_window_sides.png",
|
|
|
|
"homedecor_window_sides.png",
|
|
|
|
"homedecor_window_sides.png",
|
|
|
|
"homedecor_window_quartered.png",
|
|
|
|
"homedecor_window_quartered.png"
|
|
|
|
},
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
use_texture_alpha = true,
|
|
|
|
walkable = false,
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {crumbly=3},
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, 0.025, 0.5, 0.5, 0}, -- NodeBox1
|
|
|
|
{-0.5, 0.4375, -0.0625, 0.5, 0.5, 0.0625}, -- NodeBox2
|
|
|
|
{-0.5, -0.5, -0.0625, 0.5, -0.4375, 0.0625}, -- NodeBox3
|
|
|
|
{-0.5, 0, -0.0625, 0.5, 0.0625, 0.0625}, -- NodeBox4
|
|
|
|
{0.4375, -0.5, -0.0625, 0.5, 0.5, 0.0625}, -- NodeBox5
|
|
|
|
{-0.5, -0.5, -0.0625, -0.4375, 0.5, 0.0625}, -- NodeBox6
|
|
|
|
{0, -0.5, -0.0625, 0.0625, 0.5, 0.0625}, -- NodeBox7
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, 0.025, 0.5, 0.5, 0}, -- NodeBox1
|
|
|
|
{-0.5, 0.4375, -0.0625, 0.5, 0.5, 0.0625}, -- NodeBox2
|
|
|
|
{-0.5, -0.5, -0.0625, 0.5, -0.4375, 0.0625}, -- NodeBox3
|
|
|
|
{0.4375, -0.5, -0.0625, 0.5, 0.5, 0.0625}, -- NodeBox5
|
|
|
|
{-0.5, -0.5, -0.0625, -0.4375, 0.5, 0.0625}, -- NodeBox6
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("homedecor:window_plain", {
|
|
|
|
description = "Window",
|
|
|
|
tiles = {
|
|
|
|
"homedecor_window_sides.png",
|
|
|
|
"homedecor_window_sides.png",
|
|
|
|
"homedecor_window_sides.png",
|
|
|
|
"homedecor_window_sides.png",
|
|
|
|
"homedecor_window_frame.png",
|
|
|
|
"homedecor_window_frame.png"
|
|
|
|
},
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
use_texture_alpha = true,
|
|
|
|
walkable = false,
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {crumbly=3},
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, 0.025, 0.5, 0.5, 0}, -- NodeBox1
|
|
|
|
{-0.5, 0.4375, -0.0625, 0.5, 0.5, 0.0625}, -- NodeBox2
|
|
|
|
{-0.5, -0.5, -0.0625, 0.5, -0.4375, 0.0625}, -- NodeBox3
|
|
|
|
{0.4375, -0.5, -0.0625, 0.5, 0.5, 0.0625}, -- NodeBox5
|
|
|
|
{-0.5, -0.5, -0.0625, -0.4375, 0.5, 0.0625}, -- NodeBox6
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, 0.025, 0.5, 0.5, 0}, -- NodeBox1
|
|
|
|
{-0.5, 0.4375, -0.0625, 0.5, 0.5, 0.0625}, -- NodeBox2
|
|
|
|
{-0.5, -0.5, -0.0625, 0.5, -0.4375, 0.0625}, -- NodeBox3
|
|
|
|
{0.4375, -0.5, -0.0625, 0.5, 0.5, 0.0625}, -- NodeBox5
|
|
|
|
{-0.5, -0.5, -0.0625, -0.4375, 0.5, 0.0625}, -- NodeBox6
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("homedecor:blinds_thick", {
|
|
|
|
description = "Window Blinds (thick)",
|
|
|
|
tiles = { "homedecor_windowblinds.png" },
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
--use_texture_alpha = true,
|
|
|
|
walkable = false,
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {crumbly=3},
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.527123, 0.375, 0.3125, 0.523585, 0.5, 0.5}, -- NodeBox1
|
|
|
|
{-0.5, 0.304245, 0.3125, 0.5, 0.3125, 0.5}, -- NodeBox2
|
|
|
|
{-0.5, 0.244104, 0.3125, 0.5, 0.25, 0.5}, -- NodeBox3
|
|
|
|
{-0.5, 0.180424, 0.3125, 0.5, 0.1875, 0.5}, -- NodeBox4
|
|
|
|
{-0.5, 0.116745, 0.3125, 0.5, 0.125, 0.5}, -- NodeBox5
|
|
|
|
{-0.5, 0.0566037, 0.3125, 0.5, 0.0625, 0.5}, -- NodeBox6
|
|
|
|
{-0.5, -0.00707551, 0.3125, 0.5, 0, 0.5}, -- NodeBox7
|
|
|
|
{-0.5, -0.0707547, 0.3125, 0.5, -0.0625, 0.5}, -- NodeBox8
|
|
|
|
{-0.5, -0.130896, 0.3125, 0.5, -0.125, 0.5}, -- NodeBox9
|
|
|
|
{-0.5, -0.194576, 0.3125, 0.5, -0.1875, 0.5}, -- NodeBox10
|
|
|
|
{-0.5, -0.258255, 0.3125, 0.5, -0.25, 0.5}, -- NodeBox11
|
|
|
|
{-0.5, -0.318396, 0.3125, 0.5, -0.3125, 0.5}, -- NodeBox12
|
|
|
|
{-0.5, -0.5, 0.3125, 0.5, -0.4375, 0.5}, -- NodeBox13
|
|
|
|
{-0.5, -0.378538, 0.3125, 0.5, -0.375, 0.5}, -- NodeBox14
|
|
|
|
{-0.375, -0.5, 0.367925, -0.367925, 0.4375, 0.445755}, -- NodeBox15
|
|
|
|
{0.367924, -0.5, 0.367925, 0.375, 0.5, 0.445755}, -- NodeBox16
|
|
|
|
{0.375, 0.375, 0.25, 0.4375, 0.4375, 0.3125}, -- NodeBox17
|
|
|
|
{0.396226, -0.325, 0.268868, 0.417453, 0.375, 0.290094}, -- NodeBox18
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.527123, 0.375, 0.3125, 0.523585, 0.5, 0.5}, -- NodeBox1
|
|
|
|
{-0.5, 0.304245, 0.3125, 0.5, 0.3125, 0.5}, -- NodeBox2
|
|
|
|
{-0.5, 0.244104, 0.3125, 0.5, 0.25, 0.5}, -- NodeBox3
|
|
|
|
{-0.5, 0.180424, 0.3125, 0.5, 0.1875, 0.5}, -- NodeBox4
|
|
|
|
{-0.5, 0.116745, 0.3125, 0.5, 0.125, 0.5}, -- NodeBox5
|
|
|
|
{-0.5, 0.0566037, 0.3125, 0.5, 0.0625, 0.5}, -- NodeBox6
|
|
|
|
{-0.5, -0.00707551, 0.3125, 0.5, 0, 0.5}, -- NodeBox7
|
|
|
|
{-0.5, -0.0707547, 0.3125, 0.5, -0.0625, 0.5}, -- NodeBox8
|
|
|
|
{-0.5, -0.130896, 0.3125, 0.5, -0.125, 0.5}, -- NodeBox9
|
|
|
|
{-0.5, -0.194576, 0.3125, 0.5, -0.1875, 0.5}, -- NodeBox10
|
|
|
|
{-0.5, -0.258255, 0.3125, 0.5, -0.25, 0.5}, -- NodeBox11
|
|
|
|
{-0.5, -0.318396, 0.3125, 0.5, -0.3125, 0.5}, -- NodeBox12
|
|
|
|
{-0.5, -0.5, 0.3125, 0.5, -0.4375, 0.5}, -- NodeBox13
|
|
|
|
{-0.5, -0.378538, 0.3125, 0.5, -0.375, 0.5}, -- NodeBox14
|
|
|
|
{-0.375, -0.5, 0.367925, -0.367925, 0.4375, 0.445755}, -- NodeBox15
|
|
|
|
{0.367924, -0.5, 0.367925, 0.375, 0.5, 0.445755}, -- NodeBox16
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("homedecor:blinds_thin", {
|
|
|
|
description = "Window Blinds (thin)",
|
|
|
|
tiles = { "homedecor_windowblinds.png" },
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
--use_texture_alpha = true,
|
|
|
|
walkable = false,
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {crumbly=3},
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.52, 0.375, 0.4375, 0.52, 0.5, 0.5}, -- NodeBox1
|
|
|
|
{-0.5, 0.304245, 0.4375, 0.5, 0.3125, 0.5}, -- NodeBox2
|
|
|
|
{-0.5, 0.244104, 0.4375, 0.5, 0.25, 0.5}, -- NodeBox3
|
|
|
|
{-0.5, 0.180424, 0.43755, 0.5, 0.1875, 0.5}, -- NodeBox4
|
|
|
|
{-0.5, 0.116745, 0.4375, 0.5, 0.125, 0.5}, -- NodeBox5
|
|
|
|
{-0.5, 0.0566037, 0.4375, 0.5, 0.0625, 0.5}, -- NodeBox6
|
|
|
|
{-0.5, -0.00707551, 0.4375, 0.5, 0, 0.5}, -- NodeBox7
|
|
|
|
{-0.5, -0.0707547, 0.4375, 0.5, -0.0625, 0.5}, -- NodeBox8
|
|
|
|
{-0.5, -0.130896, 0.4375, 0.5, -0.125, 0.5}, -- NodeBox9
|
|
|
|
{-0.5, -0.194576, 0.4375, 0.5, -0.1875, 0.5}, -- NodeBox10
|
|
|
|
{-0.5, -0.258255, 0.4375, 0.5, -0.25, 0.5}, -- NodeBox11
|
|
|
|
{-0.5, -0.318396, 0.4375, 0.5, -0.3125, 0.5}, -- NodeBox12
|
|
|
|
{-0.5, -0.5, 0.4375, 0.5, -0.4375, 0.5}, -- NodeBox13
|
|
|
|
{-0.5, -0.378538, 0.4375, 0.5, -0.375, 0.5}, -- NodeBox14
|
|
|
|
{-0.375, -0.49, 0.4575, -0.367925, 0.4375, 0.48}, -- NodeBox15
|
|
|
|
{0.367924, -0.49, 0.4575, 0.375, 0.5, 0.48}, -- NodeBox16
|
|
|
|
{0.375, 0.375, 0.375, 0.4375, 0.4375, 0.4375}, -- NodeBox17
|
|
|
|
{0.396226, -0.325, 0.4, 0.417453, 0.375, 0.42}, -- NodeBox18
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.52, 0.375, 0.4375, 0.52, 0.5, 0.5}, -- NodeBox1
|
|
|
|
{-0.5, 0.304245, 0.4375, 0.5, 0.3125, 0.5}, -- NodeBox2
|
|
|
|
{-0.5, 0.244104, 0.4375, 0.5, 0.25, 0.5}, -- NodeBox3
|
|
|
|
{-0.5, 0.180424, 0.43755, 0.5, 0.1875, 0.5}, -- NodeBox4
|
|
|
|
{-0.5, 0.116745, 0.4375, 0.5, 0.125, 0.5}, -- NodeBox5
|
|
|
|
{-0.5, 0.0566037, 0.4375, 0.5, 0.0625, 0.5}, -- NodeBox6
|
|
|
|
{-0.5, -0.00707551, 0.4375, 0.5, 0, 0.5}, -- NodeBox7
|
|
|
|
{-0.5, -0.0707547, 0.4375, 0.5, -0.0625, 0.5}, -- NodeBox8
|
|
|
|
{-0.5, -0.130896, 0.4375, 0.5, -0.125, 0.5}, -- NodeBox9
|
|
|
|
{-0.5, -0.194576, 0.4375, 0.5, -0.1875, 0.5}, -- NodeBox10
|
|
|
|
{-0.5, -0.258255, 0.4375, 0.5, -0.25, 0.5}, -- NodeBox11
|
|
|
|
{-0.5, -0.318396, 0.4375, 0.5, -0.3125, 0.5}, -- NodeBox12
|
|
|
|
{-0.5, -0.5, 0.4375, 0.5, -0.4375, 0.5}, -- NodeBox13
|
|
|
|
{-0.5, -0.378538, 0.4375, 0.5, -0.375, 0.5}, -- NodeBox14
|
|
|
|
{-0.375, -0.49, 0.4575, -0.367925, 0.4375, 0.48}, -- NodeBox15
|
|
|
|
{0.367924, -0.49, 0.4575, 0.375, 0.49, 0.48}, -- NodeBox16
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|