From 81ffdaa6a7389ae010bf5d5dabc5fc0b9d708c1c Mon Sep 17 00:00:00 2001 From: stujones11 Date: Wed, 15 Feb 2017 18:25:49 +0000 Subject: [PATCH] Improve armor stand selection box --- 3d_armor_stand/init.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/3d_armor_stand/init.lua b/3d_armor_stand/init.lua index 1b8cff8..ccb329f 100644 --- a/3d_armor_stand/init.lua +++ b/3d_armor_stand/init.lua @@ -140,7 +140,10 @@ minetest.register_node("3d_armor_stand:armor_stand", { walkable = false, selection_box = { type = "fixed", - fixed = {-0.5,-0.5,-0.5, 0.5,1.4,0.5} + fixed = { + {-0.25, -0.4375, -0.25, 0.25, 1.4, 0.25}, + {-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5}, + }, }, groups = {choppy=2, oddly_breakable_by_hand=2}, sounds = default.node_sound_wood_defaults(), @@ -209,7 +212,10 @@ minetest.register_node("3d_armor_stand:locked_armor_stand", { walkable = false, selection_box = { type = "fixed", - fixed = {-0.5,-0.5,-0.5, 0.5,1.4,0.5} + fixed = { + {-0.25, -0.4375, -0.25, 0.25, 1.4, 0.25}, + {-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5}, + }, }, groups = {choppy=2, oddly_breakable_by_hand=2}, sounds = default.node_sound_wood_defaults(), @@ -289,7 +295,7 @@ minetest.register_entity("3d_armor_stand:armor_entity", { visual = "mesh", mesh = "3d_armor_entity.obj", visual_size = {x=1, y=1}, - collisionbox = {-0.1,-0.4,-0.1, 0.1,1.3,0.1}, + collisionbox = {0,0,0,0,0,0}, textures = {"3d_armor_trans.png"}, pos = nil, timer = 0,