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
minetest.register_node('homedecor:kitchen_cabinet', {
description = S("Kitchen Cabinet"),
tiles = { 'homedecor_kitchen_cabinet_top.png',
local counter_materials = { "", "granite", "marble", "steel" }
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_sides.png',
'homedecor_kitchen_cabinet_sides.png',
@ -50,6 +62,7 @@ minetest.register_node('homedecor:kitchen_cabinet', {
))
end,
})
end
minetest.register_node('homedecor:kitchen_cabinet_half', {
drawtype="nodebox",

View File

@ -121,6 +121,12 @@ local items = {
"Fridge (stainless steel)" },
{ "kitchen_cabinet",
"Cabinet" },
{ "kitchen_cabinet_steel",
"Cabinet (stainless steel top)" },
{ "kitchen_cabinet_granite",
"Cabinet (granite top)" },
{ "kitchen_cabinet_marble",
"Cabinet (marble top)" },
{ "kitchen_cabinet_half",
"Cabinet" },
{ "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