mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-06-28 04:50:21 +02:00
Fix params (again)
This commit is contained in:
@ -30,11 +30,19 @@ homedecor.register("barbecue", {
|
||||
|
||||
minetest.register_alias("homedecor:barbecue_meat", "air")
|
||||
|
||||
local bl1_cbox = {
|
||||
local bl1_sbox = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.25, 1.5, 0.5, 0.5 }
|
||||
}
|
||||
|
||||
local bl1_cbox = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.25, 1.5, 0, 0.5 },
|
||||
{-0.5, -0.5, 0.45, 1.5, 0.5, 0.5 },
|
||||
}
|
||||
}
|
||||
|
||||
homedecor.register("bench_large_1", {
|
||||
mesh = "homedecor_bench_large_1.obj",
|
||||
tiles = {
|
||||
@ -46,26 +54,34 @@ homedecor.register("bench_large_1", {
|
||||
groups = { snappy = 3 },
|
||||
expand = { right="air" },
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
selection_box = bl1_cbox,
|
||||
collision_box = bl1_cbox,
|
||||
selection_box = bl1_sbox,
|
||||
node_box = bl1_cbox,
|
||||
})
|
||||
|
||||
minetest.register_alias("homedecor:bench_large_1_left", "homedecor:bench_large_1")
|
||||
minetest.register_alias("homedecor:bench_large_1_right", "air")
|
||||
|
||||
local bl2_cbox = {
|
||||
local bl2_sbox = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.25, 1.5, 0.5, 0.5 }
|
||||
}
|
||||
|
||||
local bl2_cbox = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.25, 1.5, 0, 0.5 },
|
||||
{-0.5, -0.5, 0.45, 1.5, 0.5, 0.5 },
|
||||
}
|
||||
}
|
||||
|
||||
homedecor.register("bench_large_2", {
|
||||
description = "Garden Bench (style 2)",
|
||||
mesh = "homedecor_bench_large_2.obj",
|
||||
tiles = { "homedecor_generic_wood_neutral.png" },
|
||||
inventory_image = "homedecor_bench_large_2_inv.png",
|
||||
groups = {snappy=3},
|
||||
selection_box = bl2_cbox,
|
||||
collision_box = bl2_cbox,
|
||||
selection_box = bl2_sbox,
|
||||
node_box = bl2_cbox,
|
||||
expand = { right="air" },
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
@ -50,6 +50,14 @@ local kc_cbox = {
|
||||
fixed = { -0.3125, -0.5, -0.3125, 0.3125, 0.5, 0.3125 },
|
||||
}
|
||||
|
||||
local ac_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(chaircolors) do
|
||||
|
||||
local color = "_"..chaircolors[i][1]
|
||||
@ -93,8 +101,9 @@ for i in ipairs(chaircolors) do
|
||||
"wool_dark_grey.png",
|
||||
"default_wood.png"
|
||||
},
|
||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
|
||||
groups = {snappy=3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
node_box = ac_cbox
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -123,6 +132,8 @@ minetest.register_node(":homedecor:openframe_bookshelf", {
|
||||
},
|
||||
groups = {choppy=3,oddly_breakable_by_hand=2,flammable=3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
selection_box = ob_cbox,
|
||||
collision_box = ob_cbox,
|
||||
})
|
||||
|
Reference in New Issue
Block a user