1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-06-30 13:50:32 +02:00

Fix params (again)

This commit is contained in:
kilbith
2015-04-30 23:52:23 +02:00
parent add43c9529
commit fa9d73201c
5 changed files with 67 additions and 16 deletions

View File

@ -10,11 +10,19 @@ local sofas_list = {
{ "White Sofa", "white"},
}
local sofa_cbox = {
local sofa_sbox = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 1.5}
}
local sofa_cbox = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0, 1.5 },
{-0.5, -0.5, 0.5, -0.4, 0.5, 1.5 }
}
}
for i in ipairs(sofas_list) do
local sofadesc = sofas_list[i][1]
local colour = sofas_list[i][2]
@ -29,10 +37,10 @@ for i in ipairs(sofas_list) do
},
paramtype = "light",
paramtype2 = "facedir",
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
groups = {snappy=3},
sounds = default.node_sound_wood_defaults(),
selection_box = sofa_cbox,
collision_box = sofa_cbox,
selection_box = sofa_sbox,
node_box = sofa_cbox,
on_place = function(itemstack, placer, pointed_thing)
local pos = pointed_thing.above
local fdir = minetest.dir_to_facedir(placer:get_look_dir(), false)