2013-03-18 00:09:42 +01:00
|
|
|
-- Various kinds of window shutters
|
|
|
|
|
2013-10-22 02:31:54 +02:00
|
|
|
local S = homedecor.gettext
|
2013-03-18 00:09:42 +01:00
|
|
|
|
2013-08-28 11:31:42 +02:00
|
|
|
local shutters = {
|
|
|
|
{"oak", "Unpainted oak"},
|
|
|
|
{"mahogany", "Mahogany"},
|
|
|
|
{"red", "Red"},
|
|
|
|
{"yellow", "Yellow"},
|
|
|
|
{"forest_green", "Forest green"},
|
|
|
|
{"light_blue", "Light blue"},
|
|
|
|
{"violet", "Violet"},
|
|
|
|
{"black", "Black"},
|
|
|
|
{"dark_grey", "Dark grey"},
|
|
|
|
{"grey", "Grey"},
|
|
|
|
{"white", "White"},
|
|
|
|
}
|
|
|
|
|
|
|
|
for i in ipairs(shutters) do
|
|
|
|
local name = shutters[i][1]
|
|
|
|
local desc = shutters[i][2]
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("shutter_"..name, {
|
2014-11-23 06:51:44 +01:00
|
|
|
mesh = "homedecor_window_shutter.obj",
|
2014-09-19 11:17:02 +02:00
|
|
|
tiles = { "homedecor_window_shutter_"..name..".png" },
|
2014-11-23 06:51:44 +01:00
|
|
|
description = S("Wooden Shutter ("..desc..")"),
|
|
|
|
inventory_image = "homedecor_window_shutter_"..name.."_inv.png",
|
|
|
|
wield_image = "homedecor_window_shutter_"..name.."_inv.png",
|
2014-09-19 11:17:02 +02:00
|
|
|
paramtype = "light",
|
2014-11-23 06:51:44 +01:00
|
|
|
paramtype2 = "wallmounted",
|
2014-09-19 11:17:02 +02:00
|
|
|
groups = { snappy = 3 },
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
selection_box = {
|
2014-11-23 06:51:44 +01:00
|
|
|
type = "wallmounted",
|
|
|
|
-- wall_side = { -0.5, -0.5, 0.44, 0.5, 0.5, 0.5 }
|
2014-09-19 11:17:02 +02:00
|
|
|
},
|
|
|
|
})
|
2013-08-28 11:31:42 +02:00
|
|
|
end
|
2013-04-03 23:03:42 +02:00
|
|
|
|
|
|
|
minetest.register_alias("homedecor:shutter_purple", "homedecor:shutter_violet")
|