1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 06:11:47 +02:00

Updated homedecor (with meshes)

- Updated homedecor
 - Used script to get the meshes back
This commit is contained in:
LeMagnesium
2015-05-03 17:08:51 +02:00
parent 8bf7e44903
commit 43063c037d
249 changed files with 17203 additions and 18725 deletions

View File

@ -10,6 +10,14 @@ local armchairs_list = {
{ "White Armchair", "white"},
}
local armchair_cbox = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0, 0.5 },
{-0.5, -0.5, 0.4, 0.5, 0.5, 0.5 }
}
}
for i in ipairs(armchairs_list) do
local armchairdesc = armchairs_list[i][1]
local colour = armchairs_list[i][2]
@ -24,8 +32,9 @@ for i in ipairs(armchairs_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(),
node_box = armchair_cbox,
on_rightclick = function(pos, node, clicker)
if not clicker:is_player() then
return

View File

@ -1,5 +1,3 @@
-- LRfurn mod by thefamilygrog66
lrfurn = {}
lrfurn.fdir_to_fwd = {

View File

@ -10,11 +10,18 @@ local longsofas_list = {
{ "White Long Sofa", "white"},
}
local longsofa_cbox = {
local longsofa_sbox = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 2.5}
}
local longsofa_cbox = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0, 2.5 },
{-0.5, -0.5, 0.5, -0.4, 0.5, 2.5 }
}
}
for i in ipairs(longsofas_list) do
local longsofadesc = longsofas_list[i][1]
@ -30,10 +37,10 @@ for i in ipairs(longsofas_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 = longsofa_cbox,
collision_box = longsofa_cbox,
selection_box = longsofa_sbox,
node_box = longsofa_cbox,
on_place = function(itemstack, placer, pointed_thing)
local pos = pointed_thing.above
local fdir = minetest.dir_to_facedir(placer:get_look_dir(), false)

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)