2019-04-20 21:49:36 +02:00
|
|
|
-- This file supplies Kitchen stuff like refrigerators, sinks, etc.
|
|
|
|
|
2020-08-04 23:05:02 +02:00
|
|
|
local S = minetest.get_translator("homedecor_kitchen")
|
2019-04-20 21:49:36 +02:00
|
|
|
|
|
|
|
-- steel-textured fridge
|
|
|
|
homedecor.register("refrigerator_steel", {
|
|
|
|
mesh = "homedecor_refrigerator.obj",
|
|
|
|
tiles = { "homedecor_refrigerator_steel.png" },
|
|
|
|
inventory_image = "homedecor_refrigerator_steel_inv.png",
|
|
|
|
description = S("Refrigerator (stainless steel)"),
|
2022-05-03 21:21:14 +02:00
|
|
|
groups = {snappy=3, dig_stone=1},
|
|
|
|
_sound_def = {
|
|
|
|
key = "node_sound_stone_defaults",
|
|
|
|
},
|
2019-04-20 21:49:36 +02:00
|
|
|
selection_box = homedecor.nodebox.slab_y(2),
|
|
|
|
collision_box = homedecor.nodebox.slab_y(2),
|
|
|
|
expand = { top="placeholder" },
|
|
|
|
infotext=S("Refrigerator"),
|
|
|
|
inventory = {
|
|
|
|
size=50,
|
|
|
|
lockable=true,
|
|
|
|
},
|
2020-08-04 23:05:02 +02:00
|
|
|
on_rotate = minetest.get_modpath("screwdriver") and screwdriver.rotate_simple or nil,
|
2019-04-20 21:49:36 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
-- white, enameled fridge
|
|
|
|
homedecor.register("refrigerator_white", {
|
|
|
|
mesh = "homedecor_refrigerator.obj",
|
|
|
|
tiles = { "homedecor_refrigerator_white.png" },
|
|
|
|
inventory_image = "homedecor_refrigerator_white_inv.png",
|
|
|
|
description = S("Refrigerator"),
|
2022-05-03 21:21:14 +02:00
|
|
|
groups = {snappy=3, dig_stone=1},
|
2019-04-20 21:49:36 +02:00
|
|
|
selection_box = homedecor.nodebox.slab_y(2),
|
|
|
|
collision_box = homedecor.nodebox.slab_y(2),
|
2022-05-03 21:21:14 +02:00
|
|
|
_sound_def = {
|
|
|
|
key = "node_sound_stone_defaults",
|
|
|
|
},
|
2019-04-20 21:49:36 +02:00
|
|
|
expand = { top="placeholder" },
|
|
|
|
infotext=S("Refrigerator"),
|
|
|
|
inventory = {
|
|
|
|
size=50,
|
|
|
|
lockable=true,
|
|
|
|
},
|
2020-08-04 23:05:02 +02:00
|
|
|
on_rotate = minetest.get_modpath("screwdriver") and screwdriver.rotate_simple or nil,
|
2019-04-20 21:49:36 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_alias("homedecor:refrigerator_white_bottom", "homedecor:refrigerator_white")
|
|
|
|
minetest.register_alias("homedecor:refrigerator_white_top", "air")
|
|
|
|
|
|
|
|
minetest.register_alias("homedecor:refrigerator_steel_bottom", "homedecor:refrigerator_steel")
|
|
|
|
minetest.register_alias("homedecor:refrigerator_steel_top", "air")
|
|
|
|
|
|
|
|
minetest.register_alias("homedecor:refrigerator_white_bottom_locked", "homedecor:refrigerator_white_locked")
|
|
|
|
minetest.register_alias("homedecor:refrigerator_white_top_locked", "air")
|
|
|
|
minetest.register_alias("homedecor:refrigerator_locked", "homedecor:refrigerator_white_locked")
|
|
|
|
|
|
|
|
minetest.register_alias("homedecor:refrigerator_steel_bottom_locked", "homedecor:refrigerator_steel_locked")
|
|
|
|
minetest.register_alias("homedecor:refrigerator_steel_top_locked", "air")
|
|
|
|
|
|
|
|
-- kitchen "furnaces"
|
|
|
|
homedecor.register_furnace("oven", {
|
|
|
|
description = S("Oven"),
|
|
|
|
tile_format = "homedecor_oven_%s%s.png",
|
|
|
|
output_slots = 4,
|
|
|
|
output_width = 2,
|
|
|
|
cook_speed = 1.25,
|
|
|
|
})
|
|
|
|
|
|
|
|
homedecor.register_furnace("oven_steel", {
|
|
|
|
description = S("Oven (stainless steel)"),
|
|
|
|
tile_format = "homedecor_oven_steel_%s%s.png",
|
|
|
|
output_slots = 4,
|
|
|
|
output_width = 2,
|
|
|
|
cook_speed = 1.25,
|
|
|
|
})
|
|
|
|
|
|
|
|
homedecor.register_furnace("microwave_oven", {
|
|
|
|
description = S("Microwave Oven"),
|
|
|
|
tiles = {
|
|
|
|
"homedecor_microwave_top.png", "homedecor_microwave_top.png^[transformR180",
|
|
|
|
"homedecor_microwave_top.png^[transformR270", "homedecor_microwave_top.png^[transformR90",
|
|
|
|
"homedecor_microwave_top.png^[transformR180", "homedecor_microwave_front.png"
|
|
|
|
},
|
|
|
|
tiles_active = {
|
|
|
|
"homedecor_microwave_top.png", "homedecor_microwave_top.png^[transformR180",
|
|
|
|
"homedecor_microwave_top.png^[transformR270", "homedecor_microwave_top.png^[transformR90",
|
|
|
|
"homedecor_microwave_top.png^[transformR180", "homedecor_microwave_front_active.png"
|
|
|
|
},
|
|
|
|
output_slots = 2,
|
|
|
|
output_width = 2,
|
|
|
|
cook_speed = 1.5,
|
|
|
|
extra_nodedef_fields = {
|
2022-03-29 07:44:05 +02:00
|
|
|
use_texture_alpha = "clip",
|
2019-04-20 21:49:36 +02:00
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.5, -0.5, -0.125, 0.5, 0.125, 0.5 },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
homedecor.register("dishwasher", {
|
|
|
|
description = S("Dishwasher"),
|
|
|
|
drawtype = "nodebox",
|
|
|
|
tiles = {
|
|
|
|
"homedecor_dishwasher_top.png",
|
|
|
|
"homedecor_dishwasher_bottom.png",
|
|
|
|
"homedecor_dishwasher_sides.png",
|
|
|
|
"homedecor_dishwasher_sides.png^[transformFX",
|
|
|
|
"homedecor_dishwasher_back.png",
|
|
|
|
"homedecor_dishwasher_front.png"
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, 0.5, -0.4375},
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, 0.1875, 0.1875},
|
|
|
|
{-0.4375, -0.5, -0.5, 0.4375, 0.4375, 0.4375},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
selection_box = { type = "regular" },
|
2022-05-03 21:21:14 +02:00
|
|
|
_sound_def = {
|
|
|
|
key = "node_sound_stone_defaults",
|
|
|
|
},
|
|
|
|
groups = { snappy = 3, dig_stone=1 },
|
2019-04-20 21:49:36 +02:00
|
|
|
})
|
|
|
|
|
2020-08-04 23:05:02 +02:00
|
|
|
local materials = { ["granite"] = S("granite"), ["marble"] = S("marble"), ["steel"] = S("steel"), ["wood"] = S("wood") }
|
2019-04-20 21:49:36 +02:00
|
|
|
|
2020-08-04 23:05:02 +02:00
|
|
|
for m, m_loc in pairs(materials) do
|
2019-04-20 21:49:36 +02:00
|
|
|
homedecor.register("dishwasher_"..m, {
|
2020-08-04 23:05:02 +02:00
|
|
|
description = S("Dishwasher (@1)", m_loc),
|
2019-04-20 21:49:36 +02:00
|
|
|
tiles = {
|
|
|
|
"homedecor_kitchen_cabinet_top_"..m..".png",
|
|
|
|
"homedecor_dishwasher_bottom.png",
|
|
|
|
"homedecor_dishwasher_sides.png",
|
|
|
|
"homedecor_dishwasher_sides.png^[transformFX",
|
|
|
|
"homedecor_dishwasher_back.png",
|
|
|
|
"homedecor_dishwasher_front.png"
|
|
|
|
},
|
2022-05-03 21:21:14 +02:00
|
|
|
groups = { snappy = 3, dig_tree=1 },
|
|
|
|
_sound_def = {
|
|
|
|
key = "node_sound_stone_defaults",
|
|
|
|
},
|
2019-04-20 21:49:36 +02:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2022-05-03 21:21:14 +02:00
|
|
|
local wood_tex = homedecor.textures.default_wood
|
|
|
|
local cabinet_sides = "("..wood_tex.."^[transformR90)^homedecor_kitchen_cabinet_bevel.png"
|
2021-03-26 07:15:10 +01:00
|
|
|
local cabinet_sides_colored = "(homedecor_generic_wood_plain.png^[transformR90)^homedecor_kitchen_cabinet_bevel.png"
|
|
|
|
|
2021-03-26 10:53:34 +01:00
|
|
|
local ic_cabinet_sides = string.gsub(cabinet_sides, "%^", "&")
|
|
|
|
local ic_cabinet_sides_colored = string.gsub(cabinet_sides_colored, "%^", "&")
|
|
|
|
|
2022-05-03 21:21:14 +02:00
|
|
|
local cabinet_bottom = "("..wood_tex.."^[colorize:#000000:100)^homedecor_kitchen_cabinet_bevel.png"
|
2021-03-26 11:13:37 +01:00
|
|
|
local cabinet_bottom_colored = "homedecor_generic_wood_plain.png^homedecor_kitchen_cabinet_bevel.png"
|
2019-04-20 21:49:36 +02:00
|
|
|
|
|
|
|
local function N_(x) return x end
|
|
|
|
|
|
|
|
local counter_materials = { "", N_("granite"), N_("marble"), N_("steel") }
|
|
|
|
|
2021-03-26 07:15:10 +01:00
|
|
|
homedecor.kitchen_convert_nodes = {}
|
|
|
|
|
2019-04-20 21:49:36 +02:00
|
|
|
for _, mat in ipairs(counter_materials) do
|
|
|
|
|
|
|
|
local desc = S("Kitchen Cabinet")
|
2021-03-31 03:18:45 +02:00
|
|
|
local desc2 = S("Kitchen Cabinet with drawers")
|
2019-04-20 21:49:36 +02:00
|
|
|
local material = ""
|
|
|
|
|
|
|
|
if mat ~= "" then
|
|
|
|
desc = S("Kitchen Cabinet (@1 top)", S(mat))
|
2021-03-26 11:13:37 +01:00
|
|
|
desc2 = S("Kitchen Cabinet with drawers (@1 top)", S(mat))
|
2019-04-20 21:49:36 +02:00
|
|
|
material = "_"..mat
|
|
|
|
end
|
|
|
|
|
2021-03-26 07:15:10 +01:00
|
|
|
homedecor.register("kitchen_cabinet_colorable"..material, {
|
|
|
|
description = desc,
|
|
|
|
tiles = {
|
|
|
|
'homedecor_kitchen_cabinet_top'..material..'.png',
|
|
|
|
cabinet_bottom,
|
|
|
|
cabinet_sides,
|
|
|
|
cabinet_sides,
|
|
|
|
cabinet_sides,
|
2021-03-26 11:13:37 +01:00
|
|
|
'homedecor_kitchen_cabinet_front.png^homedecor_kitchen_cabinet_bevel.png'
|
2021-03-26 07:15:10 +01:00
|
|
|
},
|
2021-03-26 10:53:34 +01:00
|
|
|
inventory_image = "[inventorycube"
|
|
|
|
.."{homedecor_kitchen_cabinet_top"..material..".png"
|
|
|
|
.."{homedecor_kitchen_cabinet_front.png"
|
|
|
|
.."{"..ic_cabinet_sides,
|
2021-03-26 07:15:10 +01:00
|
|
|
mesh = "homedecor_kitchen_cabinet.obj",
|
2022-03-29 07:44:05 +02:00
|
|
|
paramtype2 = "colorwallmounted",
|
2021-03-26 07:15:10 +01:00
|
|
|
palette = "unifieddyes_palette_colorwallmounted.png",
|
|
|
|
airbrush_replacement_node = "homedecor:kitchen_cabinet_colored"..material,
|
|
|
|
place_param2 = 0,
|
2022-05-03 21:21:14 +02:00
|
|
|
groups = { snappy = 3, ud_param2_colorable = 1, dig_tree=1},
|
|
|
|
_sound_def = {
|
|
|
|
key = "node_sound_stone_defaults",
|
|
|
|
},
|
2021-03-26 07:15:10 +01:00
|
|
|
infotext=S("Kitchen Cabinet"),
|
|
|
|
inventory = {
|
|
|
|
size=24,
|
|
|
|
lockable=true,
|
|
|
|
},
|
|
|
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
|
|
|
unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
|
|
|
end
|
|
|
|
})
|
|
|
|
|
|
|
|
homedecor.register("kitchen_cabinet_colored"..material, {
|
2019-04-20 21:49:36 +02:00
|
|
|
description = desc,
|
2021-03-26 07:15:10 +01:00
|
|
|
tiles = {
|
|
|
|
{name = 'homedecor_kitchen_cabinet_top'..material..'.png', color = 0xFFFFFFFF},
|
|
|
|
{name = cabinet_bottom, color = 0xFFFFFFFF },
|
|
|
|
cabinet_sides_colored,
|
|
|
|
cabinet_sides_colored,
|
|
|
|
cabinet_sides_colored,
|
2021-03-26 11:13:37 +01:00
|
|
|
'homedecor_kitchen_cabinet_colored_front.png^homedecor_kitchen_cabinet_bevel.png'
|
2021-03-26 07:15:10 +01:00
|
|
|
},
|
2021-03-26 10:53:34 +01:00
|
|
|
inventory_image = "[inventorycube"
|
|
|
|
.."{homedecor_kitchen_cabinet_top"..material..".png"
|
|
|
|
.."{homedecor_kitchen_cabinet_front.png"
|
|
|
|
.."{"..ic_cabinet_sides_colored,
|
2021-03-26 07:15:10 +01:00
|
|
|
mesh = "homedecor_kitchen_cabinet.obj",
|
|
|
|
paramtype2 = "colorwallmounted",
|
|
|
|
palette = "unifieddyes_palette_colorwallmounted.png",
|
2022-05-03 21:21:14 +02:00
|
|
|
groups = { snappy = 3, ud_param2_colorable = 1, not_in_creative_inventory = 1, dig_tree=1 },
|
|
|
|
_sound_def = {
|
|
|
|
key = "node_sound_wood_defaults",
|
|
|
|
},
|
2019-04-20 21:49:36 +02:00
|
|
|
infotext=S("Kitchen Cabinet"),
|
|
|
|
inventory = {
|
|
|
|
size=24,
|
|
|
|
lockable=true,
|
|
|
|
},
|
2021-03-26 07:15:10 +01:00
|
|
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
|
|
|
unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
|
|
|
end
|
2019-04-20 21:49:36 +02:00
|
|
|
})
|
2021-03-26 11:13:37 +01:00
|
|
|
|
|
|
|
homedecor.register("kitchen_cabinet_colorable_with_drawers"..material, {
|
|
|
|
description = desc2,
|
|
|
|
tiles = {
|
|
|
|
'homedecor_kitchen_cabinet_top'..material..'.png',
|
|
|
|
cabinet_bottom,
|
|
|
|
cabinet_sides,
|
|
|
|
cabinet_sides,
|
|
|
|
cabinet_sides,
|
|
|
|
'homedecor_kitchen_cabinet_front_with_drawers.png^homedecor_kitchen_cabinet_bevel.png'
|
|
|
|
},
|
|
|
|
inventory_image = "[inventorycube"
|
|
|
|
.."{homedecor_kitchen_cabinet_top"..material..".png"
|
|
|
|
.."{homedecor_kitchen_cabinet_front_with_drawers.png"
|
|
|
|
.."{"..ic_cabinet_sides,
|
|
|
|
mesh = "homedecor_kitchen_cabinet.obj",
|
2022-03-29 07:44:05 +02:00
|
|
|
paramtype2 = "colorwallmounted",
|
2021-03-26 11:13:37 +01:00
|
|
|
palette = "unifieddyes_palette_colorwallmounted.png",
|
|
|
|
airbrush_replacement_node = "homedecor:kitchen_cabinet_colored_with_drawers"..material,
|
2022-05-03 21:21:14 +02:00
|
|
|
groups = { snappy = 3, ud_param2_colorable = 1, dig_tree=1},
|
|
|
|
_sound_def = {
|
|
|
|
key = "node_sound_wood_defaults",
|
|
|
|
},
|
2021-03-26 11:13:37 +01:00
|
|
|
infotext=S("Kitchen Cabinet with drawers"),
|
|
|
|
inventory = {
|
|
|
|
size=24,
|
|
|
|
lockable=true,
|
|
|
|
},
|
|
|
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
|
|
|
unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
|
|
|
end
|
|
|
|
})
|
|
|
|
|
|
|
|
homedecor.register("kitchen_cabinet_colored_with_drawers"..material, {
|
|
|
|
description = desc2,
|
|
|
|
tiles = {
|
|
|
|
{name = 'homedecor_kitchen_cabinet_top'..material..'.png', color = 0xFFFFFFFF},
|
|
|
|
{name = cabinet_bottom, color = 0xFFFFFFFF },
|
|
|
|
cabinet_sides_colored,
|
|
|
|
cabinet_sides_colored,
|
|
|
|
cabinet_sides_colored,
|
|
|
|
'homedecor_kitchen_cabinet_colored_front_with_drawers.png^homedecor_kitchen_cabinet_bevel.png'
|
|
|
|
},
|
|
|
|
inventory_image = "[inventorycube"
|
|
|
|
.."{homedecor_kitchen_cabinet_top"..material..".png"
|
|
|
|
.."{homedecor_kitchen_cabinet_colored_front_with_drawers.png"
|
|
|
|
.."{"..ic_cabinet_sides_colored,
|
|
|
|
mesh = "homedecor_kitchen_cabinet.obj",
|
|
|
|
paramtype2 = "colorwallmounted",
|
|
|
|
palette = "unifieddyes_palette_colorwallmounted.png",
|
2022-05-03 21:21:14 +02:00
|
|
|
groups = { snappy = 3, ud_param2_colorable = 1, not_in_creative_inventory = 1, dig_tree=1 },
|
|
|
|
_sound_def = {
|
|
|
|
key = "node_sound_wood_defaults",
|
|
|
|
},
|
2021-03-26 11:13:37 +01:00
|
|
|
infotext=S("Kitchen Cabinet with drawers"),
|
|
|
|
inventory = {
|
|
|
|
size=24,
|
|
|
|
lockable=true,
|
|
|
|
},
|
|
|
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
|
|
|
unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
|
|
|
end
|
|
|
|
})
|
|
|
|
|
2022-05-03 21:21:14 +02:00
|
|
|
homedecor.kitchen_convert_nodes[#homedecor.kitchen_convert_nodes + 1]="homedecor:kitchen_cabinet"..material
|
|
|
|
homedecor.kitchen_convert_nodes[#homedecor.kitchen_convert_nodes + 1]="homedecor:kitchen_cabinet"..material.."_locked"
|
2021-03-26 11:13:37 +01:00
|
|
|
|
2019-04-20 21:49:36 +02:00
|
|
|
end
|
|
|
|
|
2021-03-26 07:15:10 +01:00
|
|
|
local kitchen_cabinet_half_box = homedecor.nodebox.slab_z(0.5, 0.5)
|
|
|
|
|
|
|
|
homedecor.register("kitchen_cabinet_colorable_half", {
|
2019-04-20 21:49:36 +02:00
|
|
|
description = S('Half-height Kitchen Cabinet (on ceiling)'),
|
|
|
|
tiles = {
|
|
|
|
cabinet_sides,
|
|
|
|
cabinet_bottom,
|
|
|
|
cabinet_sides,
|
|
|
|
cabinet_sides,
|
|
|
|
cabinet_sides,
|
2021-03-26 11:13:37 +01:00
|
|
|
'homedecor_kitchen_cabinet_front_half.png^homedecor_kitchen_cabinet_half_bevel.png'
|
2019-04-20 21:49:36 +02:00
|
|
|
},
|
2021-03-26 07:15:10 +01:00
|
|
|
mesh = "homedecor_kitchen_cabinet_half.obj",
|
2022-03-29 07:44:05 +02:00
|
|
|
paramtype2 = "colorwallmounted",
|
2021-03-26 07:15:10 +01:00
|
|
|
palette = "unifieddyes_palette_colorwallmounted.png",
|
|
|
|
airbrush_replacement_node = "homedecor:kitchen_cabinet_colored_half",
|
|
|
|
place_param2 = 0,
|
2019-04-20 21:49:36 +02:00
|
|
|
selection_box = kitchen_cabinet_half_box,
|
|
|
|
node_box = kitchen_cabinet_half_box,
|
2022-05-03 21:21:14 +02:00
|
|
|
groups = { snappy = 3, ud_param2_colorable = 1, dig_tree=1 },
|
|
|
|
_sound_def = {
|
|
|
|
key = "node_sound_wood_defaults",
|
|
|
|
},
|
2019-04-20 21:49:36 +02:00
|
|
|
infotext=S("Kitchen Cabinet"),
|
|
|
|
inventory = {
|
|
|
|
size=12,
|
|
|
|
lockable=true,
|
|
|
|
},
|
2021-03-26 07:15:10 +01:00
|
|
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
|
|
|
unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
|
|
|
end
|
|
|
|
})
|
|
|
|
|
|
|
|
homedecor.kitchen_convert_nodes[#homedecor.kitchen_convert_nodes + 1] = "homedecor:kitchen_cabinet_half"
|
|
|
|
homedecor.kitchen_convert_nodes[#homedecor.kitchen_convert_nodes + 1] = "homedecor:kitchen_cabinet_half_locked"
|
|
|
|
|
|
|
|
homedecor.register("kitchen_cabinet_colored_half", {
|
|
|
|
description = S('Half-height Kitchen Cabinet (on ceiling)'),
|
|
|
|
tiles = {
|
|
|
|
{ name = cabinet_sides, color = 0xFFFFFFFF },
|
|
|
|
cabinet_bottom_colored,
|
|
|
|
cabinet_sides_colored,
|
|
|
|
cabinet_sides_colored,
|
|
|
|
cabinet_sides_colored,
|
2021-03-26 11:13:37 +01:00
|
|
|
'homedecor_kitchen_cabinet_colored_front_half.png^homedecor_kitchen_cabinet_half_bevel.png'
|
2021-03-26 07:15:10 +01:00
|
|
|
},
|
|
|
|
mesh = "homedecor_kitchen_cabinet_half.obj",
|
|
|
|
paramtype2 = "colorwallmounted",
|
|
|
|
palette = "unifieddyes_palette_colorwallmounted.png",
|
|
|
|
selection_box = kitchen_cabinet_half_box,
|
|
|
|
node_box = kitchen_cabinet_half_box,
|
2022-05-03 21:21:14 +02:00
|
|
|
groups = { snappy = 3, ud_param2_colorable = 1, not_in_creative_inventory = 1, dig_tree=1 },
|
|
|
|
_sound_def = {
|
|
|
|
key = "node_sound_wood_defaults",
|
|
|
|
},
|
2021-03-26 07:15:10 +01:00
|
|
|
infotext=S("Kitchen Cabinet"),
|
|
|
|
inventory = {
|
|
|
|
size=12,
|
|
|
|
lockable=true,
|
|
|
|
},
|
|
|
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
|
|
|
unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
|
|
|
end
|
2019-04-20 21:49:36 +02:00
|
|
|
})
|
|
|
|
|
2021-03-26 07:15:10 +01:00
|
|
|
homedecor.register("kitchen_cabinet_colorable_with_sink", {
|
2019-04-20 21:49:36 +02:00
|
|
|
description = S("Kitchen Cabinet with sink"),
|
|
|
|
mesh = "homedecor_kitchen_sink.obj",
|
|
|
|
tiles = {
|
|
|
|
"homedecor_kitchen_sink_top.png",
|
2021-03-26 07:15:10 +01:00
|
|
|
cabinet_bottom,
|
|
|
|
cabinet_sides,
|
2019-04-20 21:49:36 +02:00
|
|
|
cabinet_sides,
|
2021-03-26 07:15:10 +01:00
|
|
|
cabinet_sides,
|
2021-03-26 11:13:37 +01:00
|
|
|
"homedecor_kitchen_cabinet_front.png^homedecor_kitchen_cabinet_bevel.png"
|
2019-04-20 21:49:36 +02:00
|
|
|
},
|
2021-03-26 10:53:34 +01:00
|
|
|
inventory_image = "[inventorycube"
|
|
|
|
.."{homedecor_kitchen_sink_top.png"
|
|
|
|
.."{homedecor_kitchen_cabinet_front.png"
|
|
|
|
.."{"..ic_cabinet_sides,
|
2022-03-29 07:44:05 +02:00
|
|
|
paramtype2 = "colorwallmounted",
|
2021-03-26 07:15:10 +01:00
|
|
|
palette = "unifieddyes_palette_colorwallmounted.png",
|
|
|
|
airbrush_replacement_node = "homedecor:kitchen_cabinet_colored_with_sink",
|
|
|
|
place_param2 = 0,
|
2022-05-03 21:21:14 +02:00
|
|
|
groups = { snappy = 3, ud_param2_colorable = 1, dig_tree=1 },
|
|
|
|
_sound_def = {
|
|
|
|
key = "node_sound_wood_defaults",
|
|
|
|
},
|
2019-04-20 21:49:36 +02:00
|
|
|
infotext=S("Under-sink cabinet"),
|
|
|
|
inventory = {
|
|
|
|
size=16,
|
|
|
|
lockable=true,
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -8/16, -8/16, -8/16, 8/16, 6/16, 8/16 },
|
|
|
|
{ -8/16, 6/16, -8/16, -6/16, 8/16, 8/16 },
|
|
|
|
{ 6/16, 6/16, -8/16, 8/16, 8/16, 8/16 },
|
|
|
|
{ -8/16, 6/16, -8/16, 8/16, 8/16, -6/16 },
|
|
|
|
{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16 },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
on_destruct = function(pos)
|
|
|
|
homedecor.stop_particle_spawner({x=pos.x, y=pos.y+1, z=pos.z})
|
2021-03-26 07:15:10 +01:00
|
|
|
end,
|
|
|
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
|
|
|
unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
|
|
|
end
|
|
|
|
})
|
|
|
|
|
|
|
|
homedecor.kitchen_convert_nodes[#homedecor.kitchen_convert_nodes + 1] = "homedecor:kitchen_cabinet_with_sink"
|
|
|
|
homedecor.kitchen_convert_nodes[#homedecor.kitchen_convert_nodes + 1] = "homedecor:kitchen_cabinet_with_sink_locked"
|
|
|
|
|
|
|
|
homedecor.register("kitchen_cabinet_colored_with_sink", {
|
|
|
|
description = S("Kitchen Cabinet with sink"),
|
|
|
|
mesh = "homedecor_kitchen_sink.obj",
|
|
|
|
tiles = {
|
|
|
|
{ name = "homedecor_kitchen_sink_top.png", color = 0xFFFFFFFF },
|
|
|
|
{ name = cabinet_bottom, color = 0xFFFFFFFF},
|
|
|
|
cabinet_sides_colored,
|
|
|
|
cabinet_sides_colored,
|
|
|
|
cabinet_sides_colored,
|
2021-03-26 11:13:37 +01:00
|
|
|
"homedecor_kitchen_cabinet_colored_front.png^homedecor_kitchen_cabinet_bevel.png",
|
2021-03-26 07:15:10 +01:00
|
|
|
},
|
2021-03-26 10:53:34 +01:00
|
|
|
inventory_image = "[inventorycube"
|
|
|
|
.."{homedecor_kitchen_sink_top.png"
|
|
|
|
.."{homedecor_kitchen_cabinet_front.png"
|
|
|
|
.."{"..ic_cabinet_sides_colored,
|
2021-03-26 07:15:10 +01:00
|
|
|
paramtype2 = "colorwallmounted",
|
|
|
|
palette = "unifieddyes_palette_colorwallmounted.png",
|
2022-05-03 21:21:14 +02:00
|
|
|
groups = { snappy = 3, ud_param2_colorable = 1, not_in_creative_inventory = 1, dig_tree=1 },
|
|
|
|
_sound_def = {
|
|
|
|
key = "node_sound_wood_defaults",
|
|
|
|
},
|
2021-03-26 07:15:10 +01:00
|
|
|
infotext=S("Under-sink cabinet"),
|
|
|
|
inventory = {
|
|
|
|
size=16,
|
|
|
|
lockable=true,
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -8/16, -8/16, -8/16, 8/16, 6/16, 8/16 },
|
|
|
|
{ -8/16, 6/16, -8/16, -6/16, 8/16, 8/16 },
|
|
|
|
{ 6/16, 6/16, -8/16, 8/16, 8/16, 8/16 },
|
|
|
|
{ -8/16, 6/16, -8/16, 8/16, 8/16, -6/16 },
|
|
|
|
{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16 },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
on_destruct = function(pos)
|
|
|
|
homedecor.stop_particle_spawner({x=pos.x, y=pos.y+1, z=pos.z})
|
|
|
|
end,
|
|
|
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
|
|
|
unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
2019-04-20 21:49:36 +02:00
|
|
|
end
|
|
|
|
})
|
|
|
|
|
|
|
|
local cp_cbox = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.375, -0.5, -0.5, 0.375, -0.3125, 0.3125 }
|
|
|
|
}
|
|
|
|
|
|
|
|
homedecor.register("copper_pans", {
|
|
|
|
description = S("Copper pans"),
|
|
|
|
mesh = "homedecor_copper_pans.obj",
|
|
|
|
tiles = { "homedecor_polished_copper.png" },
|
|
|
|
inventory_image = "homedecor_copper_pans_inv.png",
|
2022-05-03 21:21:14 +02:00
|
|
|
groups = { snappy=3, dig_stone=1 },
|
2019-04-20 21:49:36 +02:00
|
|
|
selection_box = cp_cbox,
|
|
|
|
walkable = false,
|
|
|
|
on_place = minetest.rotate_node
|
|
|
|
})
|
|
|
|
|
|
|
|
local kf_cbox = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -2/16, -8/16, 1/16, 2/16, -1/16, 8/16 }
|
|
|
|
}
|
|
|
|
|
|
|
|
homedecor.register("kitchen_faucet", {
|
|
|
|
mesh = "homedecor_kitchen_faucet.obj",
|
|
|
|
tiles = { "homedecor_generic_metal_bright.png" },
|
|
|
|
inventory_image = "homedecor_kitchen_faucet_inv.png",
|
|
|
|
description = S("Kitchen Faucet"),
|
2022-05-03 21:21:14 +02:00
|
|
|
groups = {snappy=3, dig_stone=1},
|
2019-04-20 21:49:36 +02:00
|
|
|
selection_box = kf_cbox,
|
|
|
|
walkable = false,
|
2020-08-04 23:05:02 +02:00
|
|
|
on_rotate = minetest.get_modpath("screwdriver") and screwdriver.disallow or nil,
|
2019-04-20 21:49:36 +02:00
|
|
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
|
|
|
local below = minetest.get_node_or_nil({x=pos.x, y=pos.y-1, z=pos.z})
|
2021-03-31 02:55:34 +02:00
|
|
|
if below and string.find(below.name, "homedecor:.*sink") then
|
2019-04-20 21:49:36 +02:00
|
|
|
local particledef = {
|
|
|
|
outlet = { x = 0, y = -0.19, z = 0.13 },
|
|
|
|
velocity_x = { min = -0.05, max = 0.05 },
|
|
|
|
velocity_y = -0.3,
|
|
|
|
velocity_z = { min = -0.1, max = 0 },
|
|
|
|
spread = 0
|
|
|
|
}
|
|
|
|
homedecor.start_particle_spawner(pos, node, particledef, "homedecor_faucet")
|
|
|
|
end
|
|
|
|
return itemstack
|
|
|
|
end,
|
|
|
|
on_destruct = homedecor.stop_particle_spawner
|
|
|
|
})
|
|
|
|
|
|
|
|
homedecor.register("paper_towel", {
|
|
|
|
mesh = "homedecor_paper_towel.obj",
|
|
|
|
tiles = {
|
|
|
|
"homedecor_generic_quilted_paper.png",
|
2022-05-03 21:21:14 +02:00
|
|
|
wood_tex
|
2019-04-20 21:49:36 +02:00
|
|
|
},
|
|
|
|
inventory_image = "homedecor_paper_towel_inv.png",
|
|
|
|
description = S("Paper towels"),
|
2022-05-03 21:21:14 +02:00
|
|
|
groups = { snappy=3, dig_tree=1 },
|
2019-04-20 21:49:36 +02:00
|
|
|
walkable = false,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.4375, 0.125, 0.0625, 0.4375, 0.4375, 0.5 }
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
-- crafting
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "homedecor:oven_steel",
|
|
|
|
recipe = {
|
2022-05-03 21:21:14 +02:00
|
|
|
{"basic_materials:heating_element", homedecor.materials.steel_ingot, "basic_materials:heating_element", },
|
|
|
|
{homedecor.materials.steel_ingot, "moreblocks:iron_glass", homedecor.materials.steel_ingot, },
|
|
|
|
{homedecor.materials.steel_ingot, "basic_materials:heating_element", homedecor.materials.steel_ingot, },
|
2019-04-20 21:49:36 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "homedecor:oven_steel",
|
|
|
|
recipe = {
|
2022-05-03 21:21:14 +02:00
|
|
|
{"basic_materials:heating_element", homedecor.materials.steel_ingot, "basic_materials:heating_element", },
|
|
|
|
{homedecor.materials.steel_ingot, homedecor.materials.glass_block, homedecor.materials.steel_ingot, },
|
|
|
|
{homedecor.materials.steel_ingot, "basic_materials:heating_element", homedecor.materials.steel_ingot, },
|
2019-04-20 21:49:36 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = "homedecor:oven",
|
|
|
|
recipe = {
|
|
|
|
"homedecor:oven_steel",
|
2022-05-03 21:21:14 +02:00
|
|
|
homedecor.materials.dye_white,
|
|
|
|
homedecor.materials.dye_white,
|
2019-04-20 21:49:36 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "homedecor:microwave_oven 2",
|
|
|
|
recipe = {
|
2022-05-03 21:21:14 +02:00
|
|
|
{homedecor.materials.steel_ingot, homedecor.materials.steel_ingot, homedecor.materials.steel_ingot, },
|
|
|
|
{homedecor.materials.steel_ingot, "moreblocks:iron_glass", "basic_materials:ic", },
|
|
|
|
{homedecor.materials.steel_ingot, homedecor.materials.copper_ingot, "basic_materials:energy_crystal_simple", },
|
2019-04-20 21:49:36 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "homedecor:microwave_oven 2",
|
|
|
|
recipe = {
|
2022-05-03 21:21:14 +02:00
|
|
|
{homedecor.materials.steel_ingot, homedecor.materials.steel_ingot, homedecor.materials.steel_ingot, },
|
|
|
|
{homedecor.materials.steel_ingot, homedecor.materials.glass_block, "basic_materials:ic", },
|
|
|
|
{homedecor.materials.steel_ingot, homedecor.materials.copper_ingot, "basic_materials:energy_crystal_simple", },
|
2019-04-20 21:49:36 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "homedecor:refrigerator_steel",
|
|
|
|
recipe = {
|
2022-05-03 21:21:14 +02:00
|
|
|
{homedecor.materials.steel_ingot, "homedecor:glowlight_small_cube", homedecor.materials.steel_ingot, },
|
|
|
|
{homedecor.materials.steel_ingot, homedecor.materials.copper_ingot, homedecor.materials.steel_ingot, },
|
|
|
|
{homedecor.materials.steel_ingot, homedecor.materials.clay_lump, homedecor.materials.steel_ingot, },
|
2019-04-20 21:49:36 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = "homedecor:refrigerator_white",
|
|
|
|
recipe = {
|
|
|
|
"homedecor:refrigerator_steel",
|
2022-05-03 21:21:14 +02:00
|
|
|
homedecor.materials.dye_white,
|
|
|
|
homedecor.materials.dye_white,
|
|
|
|
homedecor.materials.dye_white,
|
2019-04-20 21:49:36 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2021-05-18 08:47:44 +02:00
|
|
|
output = "homedecor:kitchen_cabinet_colorable",
|
2019-04-20 21:49:36 +02:00
|
|
|
recipe = {
|
|
|
|
{"group:wood", "group:stick", "group:wood", },
|
|
|
|
{"group:wood", "group:stick", "group:wood", },
|
|
|
|
{"group:wood", "group:stick", "group:wood", },
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2021-05-18 08:47:44 +02:00
|
|
|
output = "homedecor:kitchen_cabinet_colorable_steel",
|
2019-04-20 21:49:36 +02:00
|
|
|
recipe = {
|
2022-05-03 21:21:14 +02:00
|
|
|
{homedecor.materials.steel_ingot, homedecor.materials.steel_ingot, homedecor.materials.steel_ingot},
|
2021-05-18 08:47:44 +02:00
|
|
|
{"", "homedecor:kitchen_cabinet_colorable", ""},
|
2019-04-20 21:49:36 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2021-05-18 08:47:44 +02:00
|
|
|
output = "homedecor:kitchen_cabinet_colorable_steel",
|
2019-04-20 21:49:36 +02:00
|
|
|
recipe = {
|
|
|
|
{"moreblocks:slab_steelblock_1"},
|
2021-05-18 08:47:44 +02:00
|
|
|
{ "homedecor:kitchen_cabinet_colorable" },
|
2019-04-20 21:49:36 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2021-05-18 08:47:44 +02:00
|
|
|
output = "homedecor:kitchen_cabinet_colorable_marble",
|
2019-04-20 21:49:36 +02:00
|
|
|
recipe = {
|
|
|
|
{"building_blocks:slab_marble"},
|
2021-05-18 08:47:44 +02:00
|
|
|
{"homedecor:kitchen_cabinet_colorable"},
|
2019-04-20 21:49:36 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2021-05-18 08:47:44 +02:00
|
|
|
output = "homedecor:kitchen_cabinet_colorable_marble",
|
2019-04-20 21:49:36 +02:00
|
|
|
recipe = {
|
|
|
|
{"technic:slab_marble_1"},
|
2021-05-18 08:47:44 +02:00
|
|
|
{"homedecor:kitchen_cabinet_colorable"},
|
2019-04-20 21:49:36 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2021-05-18 08:47:44 +02:00
|
|
|
output = "homedecor:kitchen_cabinet_colorable_granite",
|
2019-04-20 21:49:36 +02:00
|
|
|
recipe = {
|
|
|
|
{"technic:slab_granite_1"},
|
2021-05-18 08:47:44 +02:00
|
|
|
{"homedecor:kitchen_cabinet_colorable"},
|
2019-04-20 21:49:36 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
2021-05-18 08:47:44 +02:00
|
|
|
output = "homedecor:kitchen_cabinet_colorable_half 2",
|
|
|
|
recipe = { "homedecor:kitchen_cabinet_colorable" }
|
2019-04-20 21:49:36 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2021-05-18 08:47:44 +02:00
|
|
|
output = "homedecor:kitchen_cabinet_colorable_with_sink",
|
2019-04-20 21:49:36 +02:00
|
|
|
recipe = {
|
2022-05-03 21:21:14 +02:00
|
|
|
{"group:wood", homedecor.materials.steel_ingot, "group:wood", },
|
|
|
|
{"group:wood", homedecor.materials.steel_ingot, "group:wood", },
|
2019-04-20 21:49:36 +02:00
|
|
|
{"group:wood", "group:stick", "group:wood", },
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "homedecor:dishwasher",
|
|
|
|
recipe = {
|
2022-05-03 21:21:14 +02:00
|
|
|
{ "basic_materials:ic", "building_blocks:slab_grate_1", homedecor.materials.steel_ingot, },
|
|
|
|
{ homedecor.materials.steel_ingot, "homedecor:shower_head", "basic_materials:motor" },
|
|
|
|
{ homedecor.materials.steel_ingot, "basic_materials:heating_element", homedecor.materials.water_bucket }
|
2019-04-20 21:49:36 +02:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "homedecor:dishwasher",
|
|
|
|
recipe = {
|
2022-05-03 21:21:14 +02:00
|
|
|
{ "basic_materials:ic", "homedecor:fence_chainlink", homedecor.materials.steel_ingot, },
|
|
|
|
{ homedecor.materials.steel_ingot, "homedecor:shower_head", "basic_materials:motor" },
|
|
|
|
{ homedecor.materials.steel_ingot, "basic_materials:heating_element", homedecor.materials.water_bucket }
|
2019-04-20 21:49:36 +02:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "homedecor:dishwasher_wood",
|
|
|
|
recipe = {
|
|
|
|
{ "stairs:slab_wood" },
|
|
|
|
{ "homedecor:dishwasher" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "homedecor:dishwasher_wood",
|
|
|
|
recipe = {
|
|
|
|
{ "moreblocks:slab_wood" },
|
|
|
|
{ "homedecor:dishwasher" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "homedecor:dishwasher_wood",
|
|
|
|
recipe = {
|
|
|
|
{ "moreblocks:slab_wood_1" },
|
|
|
|
{ "homedecor:dishwasher" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "homedecor:dishwasher_steel",
|
|
|
|
recipe = {
|
2022-05-03 21:21:14 +02:00
|
|
|
{ homedecor.materials.steel_ingot, homedecor.materials.steel_ingot, homedecor.materials.steel_ingot },
|
2019-04-20 21:49:36 +02:00
|
|
|
{ "", "homedecor:dishwasher", "" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "homedecor:dishwasher_steel",
|
|
|
|
recipe = {
|
|
|
|
{ "moreblocks:slab_steelblock_1" },
|
|
|
|
{ "homedecor:dishwasher" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "homedecor:dishwasher_marble",
|
|
|
|
recipe = {
|
|
|
|
{ "building_blocks:slab_marble" },
|
|
|
|
{ "homedecor:dishwasher" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "homedecor:dishwasher_marble",
|
|
|
|
recipe = {
|
|
|
|
{ "technic:slab_marble_1" },
|
|
|
|
{ "homedecor:dishwasher" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "homedecor:dishwasher_granite",
|
|
|
|
recipe = {
|
|
|
|
{ "technic:slab_granite_1" },
|
|
|
|
{ "homedecor:dishwasher" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "homedecor:kitchen_faucet",
|
|
|
|
recipe = {
|
2022-05-03 21:21:14 +02:00
|
|
|
{ "", homedecor.materials.steel_ingot },
|
|
|
|
{ homedecor.materials.steel_ingot, "" },
|
2019-04-20 21:49:36 +02:00
|
|
|
{ "homedecor:taps", "" }
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2019-05-25 01:08:13 +02:00
|
|
|
minetest.register_craft( {
|
|
|
|
output = "homedecor:kitchen_faucet",
|
|
|
|
recipe = {
|
2022-05-03 21:21:14 +02:00
|
|
|
{ homedecor.materials.steel_ingot,"" },
|
|
|
|
{ "", homedecor.materials.steel_ingot },
|
2019-05-25 01:08:13 +02:00
|
|
|
{ "", "homedecor:taps" }
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2019-04-20 21:49:36 +02:00
|
|
|
minetest.register_craft( {
|
|
|
|
output = "homedecor:cutlery_set",
|
|
|
|
recipe = {
|
|
|
|
{ "", "vessels:drinking_glass", "" },
|
|
|
|
{ "basic_materials:steel_strip", "building_blocks:slab_marble", "basic_materials:steel_strip" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "homedecor:cutlery_set",
|
|
|
|
recipe = {
|
|
|
|
{ "", "vessels:drinking_glass", "" },
|
|
|
|
{ "basic_materials:steel_strip", "building_blocks:micro_marble_1", "basic_materials:steel_strip" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "homedecor:copper_pans",
|
|
|
|
recipe = {
|
|
|
|
{ "basic_materials:copper_strip","","basic_materials:copper_strip" },
|
2022-05-03 21:21:14 +02:00
|
|
|
{ homedecor.materials.copper_ingot,"",homedecor.materials.copper_ingot },
|
|
|
|
{ homedecor.materials.copper_ingot,"",homedecor.materials.copper_ingot }
|
2019-04-20 21:49:36 +02:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "homedecor:paper_towel",
|
|
|
|
recipe = {
|
|
|
|
{ "homedecor:toilet_paper", "homedecor:toilet_paper" }
|
|
|
|
},
|
|
|
|
})
|
2021-03-26 07:15:10 +01:00
|
|
|
|
|
|
|
minetest.register_lbm({
|
|
|
|
name = ":homedecor:convert_kitchen_cabinets",
|
|
|
|
label = "Convert homedecor kitchen cabinets to use [color]wallmounted",
|
|
|
|
run_at_every_load = false,
|
|
|
|
nodenames = homedecor.kitchen_convert_nodes,
|
|
|
|
action = function(pos, node)
|
|
|
|
local name = node.name
|
|
|
|
local newname = string.gsub(name, "_cabinet", "_cabinet_colorable")
|
|
|
|
|
|
|
|
local old_fdir = math.floor(node.param2 % 32)
|
|
|
|
local new_fdir = 3
|
|
|
|
|
|
|
|
if old_fdir == 0 then
|
|
|
|
new_fdir = 3
|
|
|
|
elseif old_fdir == 1 then
|
|
|
|
new_fdir = 4
|
|
|
|
elseif old_fdir == 2 then
|
|
|
|
new_fdir = 2
|
|
|
|
elseif old_fdir == 3 then
|
|
|
|
new_fdir = 5
|
|
|
|
end
|
|
|
|
|
2021-03-26 14:44:02 +01:00
|
|
|
minetest.swap_node(pos, { name = newname, param2 = new_fdir })
|
2021-03-26 07:15:10 +01:00
|
|
|
end
|
|
|
|
})
|