mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-23 00:20:17 +01:00
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
|
||||
|
||||
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",
|
||||
|
@ -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",
|
||||
|
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