added granite-, steel-, marble-topped cabinets

(no craft recipes yet)
This commit is contained in:
Vanessa Ezekowitz 2014-06-25 03:33:11 -04:00
parent 9731dfe396
commit 6cb4f449a1
5 changed files with 67 additions and 48 deletions

View File

@ -2,9 +2,21 @@
local S = homedecor.gettext local S = homedecor.gettext
minetest.register_node('homedecor:kitchen_cabinet', { local counter_materials = { "", "granite", "marble", "steel" }
description = S("Kitchen Cabinet"),
tiles = { 'homedecor_kitchen_cabinet_top.png', for _, mat in ipairs(counter_materials) do
local desc = S("Kitchen Cabinet")
local material = ""
if mat ~= "" then
desc = S("Kitchen Cabinet ("..mat.." top)")
material = "_"..mat
end
minetest.register_node('homedecor:kitchen_cabinet'..material, {
description = desc,
tiles = { 'homedecor_kitchen_cabinet_top'..material..'.png',
'homedecor_kitchen_cabinet_bottom.png', 'homedecor_kitchen_cabinet_bottom.png',
'homedecor_kitchen_cabinet_sides.png', 'homedecor_kitchen_cabinet_sides.png',
'homedecor_kitchen_cabinet_sides.png', 'homedecor_kitchen_cabinet_sides.png',
@ -49,7 +61,8 @@ minetest.register_node('homedecor:kitchen_cabinet', {
minetest.pos_to_string(pos) minetest.pos_to_string(pos)
)) ))
end, end,
}) })
end
minetest.register_node('homedecor:kitchen_cabinet_half', { minetest.register_node('homedecor:kitchen_cabinet_half', {
drawtype="nodebox", drawtype="nodebox",

View File

@ -121,6 +121,12 @@ local items = {
"Fridge (stainless steel)" }, "Fridge (stainless steel)" },
{ "kitchen_cabinet", { "kitchen_cabinet",
"Cabinet" }, "Cabinet" },
{ "kitchen_cabinet_steel",
"Cabinet (stainless steel top)" },
{ "kitchen_cabinet_granite",
"Cabinet (granite top)" },
{ "kitchen_cabinet_marble",
"Cabinet (marble top)" },
{ "kitchen_cabinet_half", { "kitchen_cabinet_half",
"Cabinet" }, "Cabinet" },
{ "kitchen_cabinet_with_sink", { "kitchen_cabinet_with_sink",

Binary file not shown.

After

Width:  |  Height:  |  Size: 853 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 819 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 B