New cardboard boxes

This commit is contained in:
jp 2015-01-23 23:25:00 +01:00 committed by Vanessa Ezekowitz
parent 5fb4bff628
commit 692a35679a
6 changed files with 41 additions and 23 deletions

View File

@ -2133,6 +2133,15 @@ minetest.register_craft({
},
})
minetest.register_craft({
output = "homedecor:cardboard_box_big 2",
recipe = {
{ "default:paper", "", "default:paper" },
{ "default:paper", "", "default:paper" },
{ "default:paper", "default:paper", "default:paper" },
},
})
minetest.register_craft({
output = "homedecor:desk",
recipe = {

View File

@ -290,38 +290,47 @@ minetest.register_node("homedecor:fishtank_lighted", {
end
})
homedecor.register("cardboard_box", {
drawtype = "nodebox",
description = S("Cardboard box"),
homedecor.register("cardboard_box_big", {
drawtype = "normal",
description = S("Cardboard box (big)"),
tiles = {
'homedecor_cardboard_box_tb.png',
'homedecor_cardboard_box_tb.png',
'homedecor_cardboard_box_sides.png'
'homedecor_cardbox_big_tb.png',
'homedecor_cardbox_big_tb.png',
'homedecor_cardbox_big_sides.png',
},
sunlight_propagates = false,
paramtype = "light",
paramtype2 = "facedir",
walkable = true,
selection_box = homedecor.nodebox.slab_y(0.5),
node_box = {
type = "fixed",
fixed = {
{0.1875, -0.5, -0.25, 0.25, 0, 0.25},
{-0.25, -0.5, -0.25, -0.1875, 0, 0.25},
{-0.25, -0.5, 0.1875, 0.25, 0, 0.25},
{-0.25, -0.5, -0.25, 0.25, 0, -0.1875},
{-0.25, -0.5, -0.25, 0.25, -0.4375, 0.25},
{0.1875, -0.0625, -0.25, 0.5, 0, 0.25},
{-0.5, -0.0625, -0.25, -0.1875, 0, 0.25},
{-0.25, -0.0625, 0.1875, 0.25, 0, 0.5},
{-0.25, -0.0625, -0.5, 0.25, 0, -0.1875},
}
},
groups = { snappy = 3 },
sounds = default.node_sound_wood_defaults(),
infotext=S("Cardboard box"),
inventory = {
size=4,
size=24,
},
})
homedecor.register("cardboard_box", {
drawtype = "nodebox",
description = S("Cardboard box"),
tiles = {
'homedecor_cardbox_tb.png',
'homedecor_cardbox_tb.png',
'homedecor_cardbox_sides.png',
},
node_box = {
type = "fixed",
fixed = {
{-0.3125, -0.5, -0.3125, 0.3125, 0, 0.3125},
}
},
sunlight_propagates = false,
paramtype = "light",
paramtype2 = "facedir",
groups = { snappy = 3 },
sounds = default.node_sound_wood_defaults(),
infotext=S("Cardboard box"),
inventory = {
size=8,
},
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 B