forked from mtcontrib/3d_armor
Improve armor stand selection box
This commit is contained in:
parent
ba62febdee
commit
81ffdaa6a7
@ -140,7 +140,10 @@ minetest.register_node("3d_armor_stand:armor_stand", {
|
|||||||
walkable = false,
|
walkable = false,
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
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},
|
groups = {choppy=2, oddly_breakable_by_hand=2},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
@ -209,7 +212,10 @@ minetest.register_node("3d_armor_stand:locked_armor_stand", {
|
|||||||
walkable = false,
|
walkable = false,
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
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},
|
groups = {choppy=2, oddly_breakable_by_hand=2},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
@ -289,7 +295,7 @@ minetest.register_entity("3d_armor_stand:armor_entity", {
|
|||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "3d_armor_entity.obj",
|
mesh = "3d_armor_entity.obj",
|
||||||
visual_size = {x=1, y=1},
|
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"},
|
textures = {"3d_armor_trans.png"},
|
||||||
pos = nil,
|
pos = nil,
|
||||||
timer = 0,
|
timer = 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user