Update wrought iron fences

- Add nodeboxes (cross, and crosses + sides for the corner piece).
- Readjustment of the selection boxes.

https://cdn.mediacru.sh/pr00x9SA-Igm.png
https://cdn.mediacru.sh/jDg96C9zMDrz.png
This commit is contained in:
kilbith 2014-10-18 15:49:21 +02:00
parent 5a8113d177
commit b9e62b0a0c
1 changed files with 12 additions and 4 deletions

View File

@ -434,7 +434,7 @@ minetest.register_node("homedecor:fence_wrought_iron_2", {
paramtype2 = "facedir",
selection_box = {
type = "fixed",
fixed = { -0.5, -0.5, 0.375, 0.5, 0.5, 0.5 }
fixed = { -0.5, -0.5, 0.42, 0.5, 0.5, 0.5 }
},
node_box = {
type = "fixed",
@ -442,6 +442,8 @@ minetest.register_node("homedecor:fence_wrought_iron_2", {
{ -8/16, -8/16, 14/32, -7.75/16, 8/16, 16/32 }, -- left post
{ 7.75/16, -8/16, 14/32, 8/16, 8/16, 16/32 }, -- right post
{ -8/16, 7.75/16, 14/32, 8/16, 8/16, 16/32 }, -- top piece
{ -8/16, -0.015625, 14.75/32, 8/16, 0.015625, 15.25/32 }, -- cross piece
{ -0.015625, -8/16, 14.75/32, 0.015625, 8/16, 15.25/32 }, -- cross piece
{ -8/16, -8/16, 14/32, 8/16, -7.75/16, 16/32 }, -- bottom piece
{ -8/16, -8/16, 15/32, 8/16, 8/16, 15/32 } -- the grid itself
}
@ -468,8 +470,8 @@ minetest.register_node("homedecor:fence_wrought_iron_2_corner", {
selection_box = {
type = "fixed",
fixed = {
{ -0.5, -0.5, 0.375, 0.5, 0.5, 0.5 },
{ -0.5, -0.5, -0.5, -0.375, 0.5, 0.375 }
{ -0.5, -0.5, 0.42, 0.5, 0.5, 0.5 },
{ -0.5, -0.5, -0.5, -0.42, 0.5, 0.5 }
}
},
node_box = {
@ -481,7 +483,13 @@ minetest.register_node("homedecor:fence_wrought_iron_2_corner", {
{ -16/32, 7.75/16, -8/16, -14/32, 8/16, 8/16 }, -- top piece, side
{ -16/32, -8/16, -8/16, -14/32, -7.75/16, 8/16 }, -- bottom piece, side
{ -7.5/16, -8/16, 7.5/16, 8/16, 8/16, 7.5/16 }, -- the grid itself
{ -7.5/16, -8/16, -8/16, -7.5/16, 8/16, 7.5/16 } -- the grid itself, side
{ -7.5/16, -8/16, -8/16, -7.5/16, 8/16, 7.5/16 }, -- the grid itself, side
{ -15.5/32, -0.5, -0.5, -14.5/32, 0.5, -0.484375 }, -- left post side
{ 7.75/16, -8/16, 14.5/32, 8/16, 8/16, 15.5/32 }, -- right post
{ -8/16, -0.015625, 14.75/32, 8/16, 0.015625, 15.25/32 }, -- cross piece
{ -0.015625, -8/16, 14.75/32, 0.015625, 8/16, 15.25/32 }, -- cross piece
{ -15.25/32, -0.5, -0.015625, -14.75/32, 0.5, 0.015625 }, -- cross piece side
{ -15.25/32, -0.015625, -0.5, -14.75/32, 0.015625, 0.5 } -- cross piece side
}
},
})