forked from mtcontrib/homedecor_modpack
added granite-, steel-, marble-topped cabinets
(no craft recipes yet)
This commit is contained in:
parent
9731dfe396
commit
6cb4f449a1
@ -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",
|
||||||
|
@ -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",
|
||||||
|
BIN
homedecor/textures/homedecor_kitchen_cabinet_top_granite.png
Normal file
BIN
homedecor/textures/homedecor_kitchen_cabinet_top_granite.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 853 B |
BIN
homedecor/textures/homedecor_kitchen_cabinet_top_marble.png
Normal file
BIN
homedecor/textures/homedecor_kitchen_cabinet_top_marble.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 819 B |
BIN
homedecor/textures/homedecor_kitchen_cabinet_top_steel.png
Normal file
BIN
homedecor/textures/homedecor_kitchen_cabinet_top_steel.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 102 B |
Loading…
Reference in New Issue
Block a user