Various changes
Recipe changes:
Brass and wrought iron poles, table legs, and fences/railings were too
expensive in practice. Increased recipe outputs.
Small square glass table now comes from one small round table (instead of
three-to-two). Large square glass comes from one small square insted of two. Small round, small square, and large wooden tables follow the same pattern.
All glass tables can be recycled back into glass blocks via the Vessels mod's
recipes. All are 3:1 with glass fragments (and thus, 3:1 with glass blocks),
so there's no glass wasted.
All wooden tables can be crafted into sticks by putting three of a given item
onto the crafting grid. Any such craft yields 4 sticks, so there's no waste.
Other changes:
3d-ified nightstands, improved their textures somewhat.
New nodes:
* Added working oven (really just a furnace with new textures)
* Added mini-fridge that stores 24 slots
* Added kitchen cabinet that stores 24 slots
* Added half-size kitchen cabinet that stores 12 slots (6x2)
* Added kitchen sink with under-sink cabinet that stores 16 slots.
* Added slab-sized and half-slab-sized glowlights (e.g. ceiling fixtures)
* Added curtains in 6 colors: red, green, blue, purple, pink, white
Notes:
This mod now requires Moreblocks for some recipes - namely fridge and oven.
2012-09-30 07:51:59 +02:00
|
|
|
-- This file supplies Kitchen cabinets and kitchen sink
|
|
|
|
|
2013-10-22 02:31:54 +02:00
|
|
|
local S = homedecor.gettext
|
2013-03-05 08:18:56 +01:00
|
|
|
|
2014-06-25 09:33:11 +02:00
|
|
|
local counter_materials = { "", "granite", "marble", "steel" }
|
2015-05-04 11:34:10 +02:00
|
|
|
local cabinet_sides = "(default_wood.png^[transformR90)^homedecor_kitchen_cabinet_bevel.png"
|
|
|
|
local cabinet_bottom = "(default_wood.png^[colorize:#000000:100)^(homedecor_kitchen_cabinet_bevel.png^[colorize:#46321580)"
|
2014-06-25 09:33:11 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2015-01-21 19:19:14 +01:00
|
|
|
homedecor.register("kitchen_cabinet"..material, {
|
2014-06-25 09:33:11 +02:00
|
|
|
description = desc,
|
|
|
|
tiles = { 'homedecor_kitchen_cabinet_top'..material..'.png',
|
2015-05-04 11:34:10 +02:00
|
|
|
cabinet_bottom,
|
|
|
|
cabinet_sides,
|
|
|
|
cabinet_sides,
|
|
|
|
cabinet_sides,
|
2014-06-25 09:33:11 +02:00
|
|
|
'homedecor_kitchen_cabinet_front.png'},
|
|
|
|
groups = { snappy = 3 },
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
2015-01-21 19:19:14 +01:00
|
|
|
infotext=S("Kitchen Cabinet"),
|
|
|
|
inventory = {
|
|
|
|
size=24,
|
2015-08-19 19:30:03 +02:00
|
|
|
lockable=true,
|
2015-01-21 19:19:14 +01:00
|
|
|
},
|
2014-06-25 09:33:11 +02:00
|
|
|
})
|
|
|
|
end
|
Various changes
Recipe changes:
Brass and wrought iron poles, table legs, and fences/railings were too
expensive in practice. Increased recipe outputs.
Small square glass table now comes from one small round table (instead of
three-to-two). Large square glass comes from one small square insted of two. Small round, small square, and large wooden tables follow the same pattern.
All glass tables can be recycled back into glass blocks via the Vessels mod's
recipes. All are 3:1 with glass fragments (and thus, 3:1 with glass blocks),
so there's no glass wasted.
All wooden tables can be crafted into sticks by putting three of a given item
onto the crafting grid. Any such craft yields 4 sticks, so there's no waste.
Other changes:
3d-ified nightstands, improved their textures somewhat.
New nodes:
* Added working oven (really just a furnace with new textures)
* Added mini-fridge that stores 24 slots
* Added kitchen cabinet that stores 24 slots
* Added half-size kitchen cabinet that stores 12 slots (6x2)
* Added kitchen sink with under-sink cabinet that stores 16 slots.
* Added slab-sized and half-slab-sized glowlights (e.g. ceiling fixtures)
* Added curtains in 6 colors: red, green, blue, purple, pink, white
Notes:
This mod now requires Moreblocks for some recipes - namely fridge and oven.
2012-09-30 07:51:59 +02:00
|
|
|
|
2015-01-23 17:40:57 +01:00
|
|
|
local kitchen_cabinet_half_box = homedecor.nodebox.slab_y(0.5, 0.5)
|
2015-01-21 19:19:14 +01:00
|
|
|
homedecor.register("kitchen_cabinet_half", {
|
2014-03-25 14:16:47 +01:00
|
|
|
description = S('Half-height Kitchen Cabinet (on ceiling)'),
|
2015-05-04 11:34:10 +02:00
|
|
|
tiles = {
|
|
|
|
cabinet_sides,
|
|
|
|
cabinet_bottom,
|
|
|
|
cabinet_sides,
|
|
|
|
cabinet_sides,
|
|
|
|
cabinet_sides,
|
|
|
|
'homedecor_kitchen_cabinet_front_half.png'
|
|
|
|
},
|
2015-01-23 22:14:00 +01:00
|
|
|
selection_box = kitchen_cabinet_half_box,
|
|
|
|
node_box = kitchen_cabinet_half_box,
|
Various changes
Recipe changes:
Brass and wrought iron poles, table legs, and fences/railings were too
expensive in practice. Increased recipe outputs.
Small square glass table now comes from one small round table (instead of
three-to-two). Large square glass comes from one small square insted of two. Small round, small square, and large wooden tables follow the same pattern.
All glass tables can be recycled back into glass blocks via the Vessels mod's
recipes. All are 3:1 with glass fragments (and thus, 3:1 with glass blocks),
so there's no glass wasted.
All wooden tables can be crafted into sticks by putting three of a given item
onto the crafting grid. Any such craft yields 4 sticks, so there's no waste.
Other changes:
3d-ified nightstands, improved their textures somewhat.
New nodes:
* Added working oven (really just a furnace with new textures)
* Added mini-fridge that stores 24 slots
* Added kitchen cabinet that stores 24 slots
* Added half-size kitchen cabinet that stores 12 slots (6x2)
* Added kitchen sink with under-sink cabinet that stores 16 slots.
* Added slab-sized and half-slab-sized glowlights (e.g. ceiling fixtures)
* Added curtains in 6 colors: red, green, blue, purple, pink, white
Notes:
This mod now requires Moreblocks for some recipes - namely fridge and oven.
2012-09-30 07:51:59 +02:00
|
|
|
groups = { snappy = 3 },
|
2013-03-17 00:46:30 +01:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
2015-01-21 19:19:14 +01:00
|
|
|
infotext=S("Kitchen Cabinet"),
|
|
|
|
inventory = {
|
|
|
|
size=12,
|
2015-08-19 19:30:03 +02:00
|
|
|
lockable=true,
|
2015-01-21 19:19:14 +01:00
|
|
|
},
|
Various changes
Recipe changes:
Brass and wrought iron poles, table legs, and fences/railings were too
expensive in practice. Increased recipe outputs.
Small square glass table now comes from one small round table (instead of
three-to-two). Large square glass comes from one small square insted of two. Small round, small square, and large wooden tables follow the same pattern.
All glass tables can be recycled back into glass blocks via the Vessels mod's
recipes. All are 3:1 with glass fragments (and thus, 3:1 with glass blocks),
so there's no glass wasted.
All wooden tables can be crafted into sticks by putting three of a given item
onto the crafting grid. Any such craft yields 4 sticks, so there's no waste.
Other changes:
3d-ified nightstands, improved their textures somewhat.
New nodes:
* Added working oven (really just a furnace with new textures)
* Added mini-fridge that stores 24 slots
* Added kitchen cabinet that stores 24 slots
* Added half-size kitchen cabinet that stores 12 slots (6x2)
* Added kitchen sink with under-sink cabinet that stores 16 slots.
* Added slab-sized and half-slab-sized glowlights (e.g. ceiling fixtures)
* Added curtains in 6 colors: red, green, blue, purple, pink, white
Notes:
This mod now requires Moreblocks for some recipes - namely fridge and oven.
2012-09-30 07:51:59 +02:00
|
|
|
})
|
|
|
|
|
2015-01-21 19:19:14 +01:00
|
|
|
homedecor.register("kitchen_cabinet_with_sink", {
|
2013-03-05 08:18:56 +01:00
|
|
|
description = S("Kitchen Cabinet with sink"),
|
2014-12-14 01:26:38 +01:00
|
|
|
mesh = "homedecor_kitchen_sink.obj",
|
2015-04-26 22:41:55 +02:00
|
|
|
tiles = {
|
|
|
|
"homedecor_kitchen_sink_top.png",
|
|
|
|
"homedecor_kitchen_cabinet_front.png",
|
2015-05-04 11:34:10 +02:00
|
|
|
cabinet_sides,
|
|
|
|
cabinet_bottom
|
2015-04-26 22:41:55 +02:00
|
|
|
},
|
Various changes
Recipe changes:
Brass and wrought iron poles, table legs, and fences/railings were too
expensive in practice. Increased recipe outputs.
Small square glass table now comes from one small round table (instead of
three-to-two). Large square glass comes from one small square insted of two. Small round, small square, and large wooden tables follow the same pattern.
All glass tables can be recycled back into glass blocks via the Vessels mod's
recipes. All are 3:1 with glass fragments (and thus, 3:1 with glass blocks),
so there's no glass wasted.
All wooden tables can be crafted into sticks by putting three of a given item
onto the crafting grid. Any such craft yields 4 sticks, so there's no waste.
Other changes:
3d-ified nightstands, improved their textures somewhat.
New nodes:
* Added working oven (really just a furnace with new textures)
* Added mini-fridge that stores 24 slots
* Added kitchen cabinet that stores 24 slots
* Added half-size kitchen cabinet that stores 12 slots (6x2)
* Added kitchen sink with under-sink cabinet that stores 16 slots.
* Added slab-sized and half-slab-sized glowlights (e.g. ceiling fixtures)
* Added curtains in 6 colors: red, green, blue, purple, pink, white
Notes:
This mod now requires Moreblocks for some recipes - namely fridge and oven.
2012-09-30 07:51:59 +02:00
|
|
|
groups = { snappy = 3 },
|
2013-03-17 00:46:30 +01:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
2015-01-21 19:19:14 +01:00
|
|
|
infotext=S("Under-sink cabinet"),
|
|
|
|
inventory = {
|
|
|
|
size=16,
|
2015-08-19 19:30:03 +02:00
|
|
|
lockable=true,
|
2015-01-21 19:19:14 +01:00
|
|
|
},
|
2015-05-11 04:08:34 +02:00
|
|
|
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
|
Various changes
Recipe changes:
Brass and wrought iron poles, table legs, and fences/railings were too
expensive in practice. Increased recipe outputs.
Small square glass table now comes from one small round table (instead of
three-to-two). Large square glass comes from one small square insted of two. Small round, small square, and large wooden tables follow the same pattern.
All glass tables can be recycled back into glass blocks via the Vessels mod's
recipes. All are 3:1 with glass fragments (and thus, 3:1 with glass blocks),
so there's no glass wasted.
All wooden tables can be crafted into sticks by putting three of a given item
onto the crafting grid. Any such craft yields 4 sticks, so there's no waste.
Other changes:
3d-ified nightstands, improved their textures somewhat.
New nodes:
* Added working oven (really just a furnace with new textures)
* Added mini-fridge that stores 24 slots
* Added kitchen cabinet that stores 24 slots
* Added half-size kitchen cabinet that stores 12 slots (6x2)
* Added kitchen sink with under-sink cabinet that stores 16 slots.
* Added slab-sized and half-slab-sized glowlights (e.g. ceiling fixtures)
* Added curtains in 6 colors: red, green, blue, purple, pink, white
Notes:
This mod now requires Moreblocks for some recipes - namely fridge and oven.
2012-09-30 07:51:59 +02:00
|
|
|
})
|
2015-01-23 22:48:40 +01:00
|
|
|
|
2015-03-31 03:52:26 +02:00
|
|
|
local cp_cbox = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.375, -0.5, -0.5, 0.375, -0.3125, 0.3125 }
|
|
|
|
}
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("copper_pans", {
|
2015-01-23 22:48:40 +01:00
|
|
|
description = "Copper pans",
|
2015-03-31 03:52:26 +02:00
|
|
|
mesh = "homedecor_copper_pans.obj",
|
|
|
|
tiles = { "homedecor_polished_copper.png" },
|
2015-01-23 22:48:40 +01:00
|
|
|
inventory_image = "homedecor_copper_pans_inv.png",
|
|
|
|
groups = { snappy=3 },
|
2015-03-31 03:52:26 +02:00
|
|
|
selection_box = cp_cbox,
|
2015-04-29 14:14:36 +02:00
|
|
|
walkable = false,
|
2015-01-23 22:48:40 +01:00
|
|
|
on_place = minetest.rotate_node
|
|
|
|
})
|
|
|
|
|
2015-03-29 06:09:49 +02:00
|
|
|
local kf_cbox = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -2/16, -8/16, 1/16, 2/16, -1/16, 8/16 }
|
|
|
|
}
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("kitchen_faucet", {
|
2015-03-29 06:09:49 +02:00
|
|
|
mesh = "homedecor_kitchen_faucet.obj",
|
2015-04-28 05:48:02 +02:00
|
|
|
tiles = { "homedecor_generic_metal_bright.png" },
|
2015-01-23 22:48:40 +01:00
|
|
|
inventory_image = "homedecor_kitchen_faucet_inv.png",
|
|
|
|
description = "Kitchen Faucet",
|
2015-03-29 06:09:49 +02:00
|
|
|
groups = {snappy=3},
|
|
|
|
selection_box = kf_cbox,
|
2015-05-11 04:27:35 +02:00
|
|
|
walkable = false,
|
2015-05-14 12:25:11 +02:00
|
|
|
on_rotate = screwdriver.disallow,
|
2016-07-31 01:17:23 +02:00
|
|
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
2015-05-11 04:27:35 +02:00
|
|
|
local below = minetest.get_node_or_nil({x=pos.x, y=pos.y-1, z=pos.z})
|
|
|
|
if below and
|
2015-05-11 04:30:53 +02:00
|
|
|
below.name == "homedecor:sink" or
|
|
|
|
below.name == "homedecor:kitchen_cabinet_with_sink" then
|
2015-05-11 04:27:35 +02:00
|
|
|
local particledef = {
|
2015-05-11 04:34:30 +02:00
|
|
|
outlet = { x = 0, y = -0.19, z = 0.13 },
|
2015-05-11 04:27:35 +02:00
|
|
|
velocity_x = { min = -0.05, max = 0.05 },
|
|
|
|
velocity_y = -0.3,
|
|
|
|
velocity_z = { min = -0.1, max = 0 },
|
|
|
|
spread = 0
|
|
|
|
}
|
2015-05-11 09:56:44 +02:00
|
|
|
homedecor.start_particle_spawner(pos, node, particledef, "homedecor_faucet")
|
2015-05-11 04:27:35 +02:00
|
|
|
end
|
2016-07-31 01:17:23 +02:00
|
|
|
return itemstack
|
2015-05-18 13:04:10 +02:00
|
|
|
end,
|
|
|
|
on_destruct = homedecor.stop_particle_spawner
|
2015-01-23 22:48:40 +01:00
|
|
|
})
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("paper_towel", {
|
2015-01-23 22:48:40 +01:00
|
|
|
mesh = "homedecor_paper_towel.obj",
|
2015-04-26 23:57:45 +02:00
|
|
|
tiles = {
|
|
|
|
"homedecor_generic_quilted_paper.png",
|
|
|
|
"default_wood.png"
|
|
|
|
},
|
2015-01-23 22:48:40 +01:00
|
|
|
inventory_image = "homedecor_paper_towel_inv.png",
|
|
|
|
description = "Paper towels",
|
|
|
|
groups = { snappy=3 },
|
2015-04-29 14:14:36 +02:00
|
|
|
walkable = false,
|
2015-01-23 22:48:40 +01:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.4375, 0.125, 0.0625, 0.4375, 0.4375, 0.5 }
|
|
|
|
},
|
|
|
|
})
|