Added a simple bench

slabs to make it can be from moreblocks or default stairs mod
This commit is contained in:
kilbith 2014-08-19 08:38:34 +02:00 committed by Vanessa Ezekowitz
parent 2973272d63
commit 784de299e3
2 changed files with 41 additions and 0 deletions

View File

@ -2485,3 +2485,18 @@ minetest.register_craft( {
},
})
minetest.register_craft( {
output = "homedecor:simple_bench",
recipe = {
{ "stairs:slab_wood", "stairs:slab_wood", "stairs:slab_wood" },
{ "stairs:slab_wood", "", "stairs:slab_wood" }
},
})
minetest.register_craft( {
output = "homedecor:simple_bench",
recipe = {
{ "moreblocks:slab_wood", "moreblocks:slab_wood", "moreblocks:slab_wood" },
{ "moreblocks:slab_wood", "", "moreblocks:slab_wood" }
},
})

View File

@ -491,6 +491,32 @@ local fdir_to_right = {
{ 0, 1 },
}
minetest.register_node("homedecor:simple_bench", {
tiles = {
"homedecor_generic_wood.png",
"homedecor_generic_wood.png",
"homedecor_generic_wood.png",
"homedecor_generic_wood.png",
"homedecor_bench_large_2_left_back.png",
"homedecor_bench_large_2_left_front.png"
},
description = "Simple Bench",
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
groups = {snappy=3},
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.15, -0.2, 0.5, -0.05, 0.2},
{-0.4, -0.5, -0.1, -0.3, -0.15, 0.1},
{ 0.3, -0.5, -0.1, 0.4, -0.15, 0.1},
}
},
})
minetest.register_node("homedecor:bench_large_1_left", {
description = "Garden Bench (style 1)",
tiles = {