Prettier shutters

Prettier shutters : https://cdn.mediacru.sh/uuQuB3D_aXbq.png
This commit is contained in:
kilbith 2014-09-19 11:17:02 +02:00 committed by Diego Martinez
parent 9cc5853ccc
commit fd1e5a516a

View File

@ -20,24 +20,35 @@ for i in ipairs(shutters) do
local name = shutters[i][1] local name = shutters[i][1]
local desc = shutters[i][2] local desc = shutters[i][2]
minetest.register_node("homedecor:shutter_"..name, { minetest.register_node("homedecor:shutter_"..name, {
description = S("Wooden Shutter ("..desc..")"), description = S("Wooden Shutter ("..desc..")"),
tiles = { "homedecor_window_shutter_"..name..".png" }, tiles = { "homedecor_window_shutter_"..name..".png" },
inventory_image = "homedecor_window_shutter_"..name..".png", inventory_image = "homedecor_window_shutter_"..name..".png",
wield_image = "homedecor_window_shutter_"..name..".png", wield_image = "homedecor_window_shutter_"..name..".png",
drawtype = 'signlike', drawtype = "nodebox",
sunlight_propagates = true, paramtype = "light",
paramtype = "light", paramtype2 = "facedir",
paramtype2 = "facedir", groups = { snappy = 3 },
walkable = false, sounds = default.node_sound_wood_defaults(),
groups = { snappy = 3 }, node_box = {
sounds = default.node_sound_wood_defaults(), type = "fixed",
paramtype2 = 'wallmounted', fixed = {
selection_box = { {-0.5, -0.5, 0.44, 0.5, -0.3125, 0.5}, -- NodeBox1
type = "wallmounted", {-0.5, -0.5, 0.44, -0.3125, 0.5, 0.5}, -- NodeBox2
--wall_side = = <default> {-0.5, 0.3125, 0.44, 0.5, 0.5, 0.5}, -- NodeBox3
}, {0.3125, -0.5, 0.44, 0.5, 0.5, 0.5}, -- NodeBox4
}) {-0.3125, 0.1875, 0.46, 0.3125, 0.25, 0.48}, -- NodeBox5
{-0.3125, 0.0625, 0.46, 0.3125, 0.125, 0.48}, -- NodeBox6
{-0.3125, -0.0625, 0.46, 0.3125, 0, 0.48}, -- NodeBox7
{-0.3125, -0.1875, 0.46, 0.3125, -0.125, 0.48}, -- NodeBox8
{-0.3125, -0.3125, 0.46, 0.3125, -0.25, 0.48}, -- NodeBox9
}
},
selection_box = {
type = "fixed",
fixed = { -0.5, -0.5, 0.44, 0.5, 0.5, 0.5 }
},
})
end end
minetest.register_alias("homedecor:shutter_purple", "homedecor:shutter_violet") minetest.register_alias("homedecor:shutter_purple", "homedecor:shutter_violet")