1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-07-18 21:50:20 +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

@ -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(),
})