From b9e62b0a0c9e7dcfbdf5181d9f553a83f5f13815 Mon Sep 17 00:00:00 2001 From: kilbith Date: Sat, 18 Oct 2014 15:49:21 +0200 Subject: [PATCH] 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 --- homedecor/fences.lua | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/homedecor/fences.lua b/homedecor/fences.lua index dd5c97eb..bf956982 100644 --- a/homedecor/fences.lua +++ b/homedecor/fences.lua @@ -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 } }, })