forked from mtcontrib/homedecor_modpack
fix collision boxes on tables
This commit is contained in:
parent
1e31d0e02a
commit
258304569f
@ -7,6 +7,11 @@ local materials = {
|
|||||||
{"wood","Wood"}
|
{"wood","Wood"}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local tables_cbox = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4375, 0.5 },
|
||||||
|
}
|
||||||
|
|
||||||
for i in ipairs(materials) do
|
for i in ipairs(materials) do
|
||||||
local m = materials[i][1]
|
local m = materials[i][1]
|
||||||
local d = materials[i][2]
|
local d = materials[i][2]
|
||||||
@ -33,10 +38,8 @@ for i in ipairs(materials) do
|
|||||||
groups = { snappy = 3 },
|
groups = { snappy = 3 },
|
||||||
sounds = s,
|
sounds = s,
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
selection_box = {
|
selection_box = tables_cbox,
|
||||||
type = "fixed",
|
collision_box = tables_cbox,
|
||||||
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4375, 0.5 },
|
|
||||||
},
|
|
||||||
on_place = minetest.rotate_node
|
on_place = minetest.rotate_node
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -55,10 +58,8 @@ for i in ipairs(materials) do
|
|||||||
groups = { snappy = 3 },
|
groups = { snappy = 3 },
|
||||||
sounds = s,
|
sounds = s,
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
selection_box = {
|
selection_box = tables_cbox,
|
||||||
type = "fixed",
|
collision_box = tables_cbox,
|
||||||
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4375, 0.5 },
|
|
||||||
},
|
|
||||||
on_place = minetest.rotate_node
|
on_place = minetest.rotate_node
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -87,10 +88,7 @@ for i in ipairs(materials) do
|
|||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4375, 0.5 },
|
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4375, 0.5 },
|
||||||
},
|
},
|
||||||
selection_box = {
|
selection_box = tables_cbox,
|
||||||
type = "fixed",
|
|
||||||
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4375, 0.5 },
|
|
||||||
},
|
|
||||||
on_place = minetest.rotate_node
|
on_place = minetest.rotate_node
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user