1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-23 00:20:17 +01: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

Binary file not shown.

View File

@ -0,0 +1,182 @@
# Blender v2.69 (sub 0) OBJ File: 'shutter.blend'
# www.blender.org
mtllib homedecor_window_shutter.mtl
o Plane
v 0.437500 -0.453125 -0.031250
v -0.437500 -0.453125 -0.031250
v -0.437500 -0.453125 0.031250
v 0.437500 -0.453125 0.031250
v 0.437500 -0.460698 0.344815
v -0.437500 -0.460698 0.344815
v 0.437500 -0.476874 0.405185
v -0.437500 -0.476874 0.405185
v 0.437500 -0.460698 -0.405185
v -0.437500 -0.460698 -0.405185
v 0.437500 -0.476874 -0.344815
v -0.437500 -0.476874 -0.344815
v 0.437500 -0.460698 -0.311435
v -0.437500 -0.460698 -0.311435
v 0.437500 -0.476874 -0.251065
v -0.437500 -0.476874 -0.251065
v 0.437500 -0.460698 0.251065
v -0.437500 -0.460698 0.251065
v 0.437500 -0.476874 0.311435
v -0.437500 -0.476874 0.311435
v 0.437500 -0.460698 0.157315
v -0.437500 -0.460698 0.157315
v 0.437500 -0.476874 0.217685
v -0.437500 -0.476874 0.217685
v 0.437500 -0.460698 -0.217685
v -0.437500 -0.460698 -0.217685
v 0.437500 -0.476874 -0.157315
v -0.437500 -0.476874 -0.157315
v 0.437500 -0.460698 -0.123935
v -0.437500 -0.460698 -0.123935
v 0.437500 -0.476874 -0.063565
v -0.437500 -0.476874 -0.063565
v 0.437500 -0.460698 0.063565
v -0.437500 -0.460698 0.063565
v 0.437500 -0.476874 0.123935
v -0.437500 -0.476874 0.123935
v 0.437500 -0.484375 0.031250
v -0.437500 -0.484375 0.031250
v -0.437500 -0.484375 -0.031250
v 0.437500 -0.484375 -0.031250
v -0.500000 -0.437500 -0.500000
v 0.500000 -0.437500 -0.500000
v 0.500000 -0.500000 -0.500000
v -0.500000 -0.500000 -0.500000
v 0.437500 -0.492187 0.437500
v 0.500000 -0.500000 0.500000
v -0.500000 -0.500000 0.500000
v -0.437500 -0.492187 0.437500
v 0.437500 -0.492188 -0.437500
v -0.437500 -0.492188 -0.437500
v -0.500000 -0.437500 0.500000
v 0.437500 -0.445313 0.437500
v 0.500000 -0.437500 0.500000
v 0.437500 -0.445313 -0.437500
v -0.437500 -0.445312 0.437500
v -0.437500 -0.445312 -0.437500
v 0.437500 -0.460608 0.344815
v -0.437500 -0.460608 0.344815
v 0.437500 -0.476784 0.405185
v -0.437500 -0.476784 0.405185
v 0.437500 -0.460608 -0.405185
v -0.437500 -0.460608 -0.405185
v 0.437500 -0.476784 -0.344815
v -0.437500 -0.476784 -0.344815
v 0.437500 -0.460608 -0.311435
v -0.437500 -0.460608 -0.311435
v 0.437500 -0.476784 -0.251065
v -0.437500 -0.476784 -0.251065
v 0.437500 -0.460608 0.251065
v -0.437500 -0.460608 0.251065
v 0.437500 -0.476784 0.311435
v -0.437500 -0.476784 0.311435
v 0.437500 -0.460608 0.157315
v -0.437500 -0.460608 0.157315
v 0.437500 -0.476784 0.217685
v -0.437500 -0.476784 0.217685
v 0.437500 -0.460608 -0.217685
v -0.437500 -0.460608 -0.217685
v 0.437500 -0.476784 -0.157315
v -0.437500 -0.476784 -0.157315
v 0.437500 -0.460608 -0.123935
v -0.437500 -0.460608 -0.123935
v 0.437500 -0.476784 -0.063565
v -0.437500 -0.476784 -0.063565
v 0.437500 -0.460608 0.063565
v -0.437500 -0.460608 0.063565
v 0.437500 -0.476784 0.123935
v -0.437500 -0.476784 0.123935
vt 0.058824 0.911765
vt 0.470588 0.911765
vt 0.470588 0.882353
vt 0.058824 0.882353
vt 0.058824 0.588235
vt 0.470588 0.588235
vt 0.470588 0.558824
vt 0.058824 0.558824
vt 0.058824 0.617647
vt 0.470588 0.617647
vt 0.470588 0.852941
vt 0.058824 0.852941
vt 0.470588 0.823529
vt 0.058824 0.823529
vt 0.058824 0.647059
vt 0.470588 0.647059
vt 0.058824 0.676471
vt 0.470588 0.676471
vt 0.470588 0.794118
vt 0.058824 0.794118
vt 0.470588 0.705882
vt 0.058824 0.705882
vt 0.470588 0.764706
vt 0.058824 0.764706
vt 0.058824 0.735294
vt 0.470588 0.735294
vt 0.500000 0.500000
vt 0.029412 0.500000
vt 0.029412 0.470588
vt 0.500000 0.470588
vt 0.500000 0.970588
vt 0.500000 1.000000
vt 0.029412 1.000000
vt 0.029412 0.970588
vt 0.529412 0.500000
vt 0.529412 0.970588
vt 0.470588 0.941176
vt 0.470588 0.529412
vt 0.058824 0.529412
vt 0.058824 0.941176
vt 0.000000 0.970588
vt 0.000000 0.500000
vt 1.000000 0.500000
vt 0.970588 0.529412
vt 0.558824 0.529412
vt 0.558824 0.941176
vt 1.000000 0.970588
vt 0.970588 0.941176
vt 0.588235 0.529412
vt 0.588235 0.941176
vt 0.941176 0.529412
vt 0.941176 0.941176
usemtl Material
s off
f 7/1 8/2 6/3 5/4
f 11/5 12/6 10/7 9/8
f 15/9 16/10 14/6 13/5
f 19/4 20/3 18/11 17/12
f 23/12 24/11 22/13 21/14
f 27/15 28/16 26/10 25/9
f 31/17 32/18 30/16 29/15
f 35/14 36/13 34/19 33/20
f 37/17 38/18 39/21 40/22
f 3/23 38/19 37/20 4/24
f 1/25 40/22 39/21 2/26
f 3/25 4/26 1/23 2/24
f 41/27 42/28 43/29 44/30
f 46/31 53/32 51/33 47/34
f 41/27 44/35 47/36 51/31
f 41/27 51/31 55/37 56/38
f 41/27 56/38 54/39 42/28
f 51/31 53/34 52/40 55/37
f 52/40 53/34 42/28 54/39
f 42/28 53/34 46/41 43/42
f 44/35 43/43 49/44 50/45
f 48/46 47/36 44/35 50/45
f 43/43 46/47 45/48 49/44
f 45/48 46/47 47/36 48/46
f 50/38 49/39 54/8 56/7
f 45/40 48/37 55/2 52/1
f 48/49 50/50 56/46 55/45
f 54/51 49/44 45/48 52/52
f 59/1 57/4 58/3 60/2
f 63/5 61/8 62/7 64/6
f 67/9 65/5 66/6 68/10
f 71/4 69/12 70/11 72/3
f 75/12 73/14 74/13 76/11
f 79/15 77/9 78/10 80/16
f 83/17 81/15 82/16 84/18
f 87/14 85/20 86/19 88/13

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 377 B

After

Width:  |  Height:  |  Size: 330 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 697 B

After

Width:  |  Height:  |  Size: 374 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 697 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 513 B

After

Width:  |  Height:  |  Size: 894 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 513 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 724 B

After

Width:  |  Height:  |  Size: 425 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 724 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 591 B

After

Width:  |  Height:  |  Size: 988 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 591 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1003 B

After

Width:  |  Height:  |  Size: 865 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1003 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1005 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 560 B

After

Width:  |  Height:  |  Size: 911 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 560 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 596 B

After

Width:  |  Height:  |  Size: 955 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 596 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 588 B

After

Width:  |  Height:  |  Size: 370 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 588 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 596 B

After

Width:  |  Height:  |  Size: 942 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 596 B