1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-07-22 23:30:21 +02:00

replace window shutters with wall-mounted mesh node version

fixes bad rotation that was introduced with fd1e5a516a
(because nodeboxes can't be wallmounted, and facedir != wallmounted param2)

requires minetest from git commit dd4c21c1808acedfbcf8402c09ce9129b6ac31c7 or later.
This commit is contained in:
Vanessa Ezekowitz
2014-11-23 00:51:44 -05:00
parent e3c16b41ea
commit b586285741
25 changed files with 190 additions and 21 deletions

View File

@ -21,32 +21,19 @@ for i in ipairs(shutters) do
local desc = shutters[i][2]
minetest.register_node("homedecor:shutter_"..name, {
description = S("Wooden Shutter ("..desc..")"),
drawtype = "mesh",
mesh = "homedecor_window_shutter.obj",
tiles = { "homedecor_window_shutter_"..name..".png" },
inventory_image = "homedecor_window_shutter_"..name..".png",
wield_image = "homedecor_window_shutter_"..name..".png",
drawtype = "nodebox",
description = S("Wooden Shutter ("..desc..")"),
inventory_image = "homedecor_window_shutter_"..name.."_inv.png",
wield_image = "homedecor_window_shutter_"..name.."_inv.png",
paramtype = "light",
paramtype2 = "facedir",
paramtype2 = "wallmounted",
groups = { snappy = 3 },
sounds = default.node_sound_wood_defaults(),
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, 0.44, 0.5, -0.3125, 0.5}, -- NodeBox1
{-0.5, -0.5, 0.44, -0.3125, 0.5, 0.5}, -- NodeBox2
{-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 }
type = "wallmounted",
-- wall_side = { -0.5, -0.5, 0.44, 0.5, 0.5, 0.5 }
},
})
end