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 refrigerators
|
|
|
|
|
2017-01-30 00:12:02 +01:00
|
|
|
local S = homedecor_i18n.gettext
|
2013-03-05 08:18:56 +01:00
|
|
|
|
2017-01-24 21:43:20 +01:00
|
|
|
local function N_(x) return x end
|
|
|
|
|
2014-08-14 20:05:41 +02:00
|
|
|
-- steel-textured fridge
|
2015-03-21 06:11:31 +01:00
|
|
|
homedecor.register("refrigerator_steel", {
|
|
|
|
mesh = "homedecor_refrigerator.obj",
|
|
|
|
tiles = { "homedecor_refrigerator_steel.png" },
|
2014-08-14 20:05:41 +02:00
|
|
|
inventory_image = "homedecor_refrigerator_steel_inv.png",
|
2015-01-21 19:19:14 +01:00
|
|
|
description = S("Refrigerator (stainless steel)"),
|
|
|
|
groups = {snappy=3},
|
2015-04-29 14:14:36 +02:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2015-01-23 17:40:57 +01:00
|
|
|
selection_box = homedecor.nodebox.slab_y(2),
|
2015-03-21 06:11:31 +01:00
|
|
|
collision_box = homedecor.nodebox.slab_y(2),
|
2015-09-08 09:50:02 +02:00
|
|
|
expand = { top="placeholder" },
|
2015-01-21 19:19:14 +01:00
|
|
|
infotext=S("Refrigerator"),
|
|
|
|
inventory = {
|
|
|
|
size=50,
|
2015-01-22 15:19:50 +01:00
|
|
|
lockable=true,
|
2015-01-21 19:19:14 +01:00
|
|
|
},
|
2015-05-14 12:25:11 +02:00
|
|
|
on_rotate = screwdriver.rotate_simple
|
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
|
|
|
})
|
2014-06-25 06:24:03 +02:00
|
|
|
|
2014-08-14 20:05:41 +02:00
|
|
|
-- white, enameled fridge
|
2015-03-21 06:11:31 +01:00
|
|
|
homedecor.register("refrigerator_white", {
|
|
|
|
mesh = "homedecor_refrigerator.obj",
|
|
|
|
tiles = { "homedecor_refrigerator_white.png" },
|
2014-08-14 20:05:41 +02:00
|
|
|
inventory_image = "homedecor_refrigerator_white_inv.png",
|
2015-01-21 19:19:14 +01:00
|
|
|
description = S("Refrigerator"),
|
|
|
|
groups = {snappy=3},
|
2015-01-23 17:40:57 +01:00
|
|
|
selection_box = homedecor.nodebox.slab_y(2),
|
2015-03-21 06:11:31 +01:00
|
|
|
collision_box = homedecor.nodebox.slab_y(2),
|
2015-04-29 14:14:36 +02:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2015-09-08 09:50:02 +02:00
|
|
|
expand = { top="placeholder" },
|
2015-01-21 19:19:14 +01:00
|
|
|
infotext=S("Refrigerator"),
|
|
|
|
inventory = {
|
|
|
|
size=50,
|
2015-08-19 19:30:03 +02:00
|
|
|
lockable=true,
|
2015-01-21 19:19:14 +01:00
|
|
|
},
|
2015-05-14 12:25:11 +02:00
|
|
|
on_rotate = screwdriver.rotate_simple
|
2014-06-25 06:24:03 +02:00
|
|
|
})
|
2014-08-14 20:05:41 +02:00
|
|
|
|
2015-03-21 06:11:31 +01: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")
|
2014-08-14 20:05:41 +02:00
|
|
|
|
2015-03-25 00:28:42 +01:00
|
|
|
minetest.register_alias("homedecor:refrigerator_white_bottom_locked", "homedecor:refrigerator_white_locked")
|
|
|
|
minetest.register_alias("homedecor:refrigerator_white_top_locked", "air")
|
2016-08-21 22:48:37 +02:00
|
|
|
minetest.register_alias("homedecor:refrigerator_locked", "homedecor:refrigerator_white_locked")
|
2015-03-25 00:28:42 +01:00
|
|
|
|
|
|
|
minetest.register_alias("homedecor:refrigerator_steel_bottom_locked", "homedecor:refrigerator_steel_locked")
|
|
|
|
minetest.register_alias("homedecor:refrigerator_steel_top_locked", "air")
|
|
|
|
|
2015-01-23 22:48:40 +01:00
|
|
|
-- kitchen "furnaces"
|
2015-08-19 22:30:27 +02:00
|
|
|
homedecor.register_furnace("oven", {
|
2015-01-23 22:48:40 +01:00
|
|
|
description = S("Oven"),
|
|
|
|
tile_format = "homedecor_oven_%s%s.png",
|
|
|
|
output_slots = 4,
|
|
|
|
output_width = 2,
|
|
|
|
cook_speed = 1.25,
|
|
|
|
})
|
|
|
|
|
2015-08-19 22:30:27 +02:00
|
|
|
homedecor.register_furnace("oven_steel", {
|
2015-01-23 22:48:40 +01:00
|
|
|
description = S("Oven (stainless steel)"),
|
|
|
|
tile_format = "homedecor_oven_steel_%s%s.png",
|
|
|
|
output_slots = 4,
|
|
|
|
output_width = 2,
|
|
|
|
cook_speed = 1.25,
|
|
|
|
})
|
|
|
|
|
2015-08-19 22:30:27 +02:00
|
|
|
homedecor.register_furnace("microwave_oven", {
|
2015-01-23 22:48:40 +01:00
|
|
|
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 = {
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
2015-08-19 22:30:27 +02:00
|
|
|
fixed = { -0.5, -0.5, -0.125, 0.5, 0.125, 0.5 },
|
2015-01-23 22:48:40 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
-- coffee!
|
|
|
|
-- coffee!
|
|
|
|
-- coffee!
|
2015-04-17 05:39:18 +02:00
|
|
|
|
|
|
|
local cm_cbox = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ 0, -8/16, 0, 7/16, 3/16, 8/16 },
|
|
|
|
{ -4/16, -8/16, -6/16, -1/16, -5/16, -3/16 }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("coffee_maker", {
|
2015-04-17 05:39:18 +02:00
|
|
|
mesh = "homedecor_coffeemaker.obj",
|
2015-01-23 22:48:40 +01:00
|
|
|
tiles = {
|
2015-04-17 05:39:18 +02:00
|
|
|
"homedecor_coffeemaker_decanter.png",
|
|
|
|
"homedecor_coffeemaker_cup.png",
|
|
|
|
"homedecor_coffeemaker_case.png",
|
2015-01-23 22:48:40 +01:00
|
|
|
},
|
2017-01-24 21:43:20 +01:00
|
|
|
description = S("Coffee Maker"),
|
2015-01-23 22:48:40 +01:00
|
|
|
inventory_image = "homedecor_coffeemaker_inv.png",
|
2015-04-29 14:14:36 +02:00
|
|
|
walkable = false,
|
2015-01-23 22:48:40 +01:00
|
|
|
groups = {snappy=3},
|
2015-04-17 05:39:18 +02:00
|
|
|
selection_box = cm_cbox,
|
2015-05-14 12:25:11 +02:00
|
|
|
node_box = cm_cbox,
|
|
|
|
on_rotate = screwdriver.disallow
|
2015-01-23 22:48:40 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
local fdir_to_steampos = {
|
|
|
|
x = { 0.15, 0.275, -0.15, -0.275 },
|
|
|
|
z = { 0.275, -0.15, -0.275, 0.15 }
|
|
|
|
}
|
|
|
|
|
|
|
|
minetest.register_abm({
|
|
|
|
nodenames = "homedecor:coffee_maker",
|
2015-08-20 14:52:01 +02:00
|
|
|
label = "sfx",
|
2015-01-23 22:48:40 +01:00
|
|
|
interval = 2,
|
|
|
|
chance = 1,
|
|
|
|
action = function(pos, node)
|
|
|
|
local fdir = node.param2
|
|
|
|
if fdir and fdir < 4 then
|
|
|
|
|
|
|
|
local steamx = fdir_to_steampos.x[fdir + 1]
|
|
|
|
local steamz = fdir_to_steampos.z[fdir + 1]
|
|
|
|
|
|
|
|
minetest.add_particlespawner({
|
|
|
|
amount = 1,
|
|
|
|
time = 1,
|
|
|
|
minpos = {x=pos.x - steamx, y=pos.y - 0.35, z=pos.z - steamz},
|
|
|
|
maxpos = {x=pos.x - steamx, y=pos.y - 0.35, z=pos.z - steamz},
|
|
|
|
minvel = {x=-0.003, y=0.01, z=-0.003},
|
|
|
|
maxvel = {x=0.003, y=0.01, z=-0.003},
|
|
|
|
minacc = {x=0.0,y=-0.0,z=-0.0},
|
|
|
|
maxacc = {x=0.0,y=0.003,z=-0.0},
|
|
|
|
minexptime = 2,
|
|
|
|
maxexptime = 5,
|
|
|
|
minsize = 1,
|
|
|
|
maxsize = 1.2,
|
|
|
|
collisiondetection = false,
|
|
|
|
texture = "homedecor_steam.png",
|
|
|
|
})
|
|
|
|
end
|
|
|
|
end
|
|
|
|
})
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("toaster", {
|
2017-01-24 21:43:20 +01:00
|
|
|
description = S("Toaster"),
|
2015-04-29 14:14:36 +02:00
|
|
|
tiles = { "homedecor_toaster_sides.png" },
|
2015-01-23 22:48:40 +01:00
|
|
|
inventory_image = "homedecor_toaster_inv.png",
|
2015-04-29 14:14:36 +02:00
|
|
|
walkable = false,
|
2015-01-23 22:48:40 +01:00
|
|
|
groups = { snappy=3 },
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.0625, -0.5, -0.125, 0.125, -0.3125, 0.125}, -- NodeBox1
|
|
|
|
},
|
|
|
|
},
|
2016-07-31 01:17:23 +02:00
|
|
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
2015-01-23 22:48:40 +01:00
|
|
|
local fdir = node.param2
|
|
|
|
minetest.set_node(pos, { name = "homedecor:toaster_loaf", param2 = fdir })
|
|
|
|
minetest.sound_play("toaster", {
|
|
|
|
pos = pos,
|
|
|
|
gain = 1.0,
|
|
|
|
max_hear_distance = 5
|
|
|
|
})
|
2016-07-31 01:17:23 +02:00
|
|
|
return itemstack
|
2015-01-23 22:48:40 +01:00
|
|
|
end
|
|
|
|
})
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("toaster_loaf", {
|
2015-01-23 22:48:40 +01:00
|
|
|
tiles = {
|
|
|
|
"homedecor_toaster_toploaf.png",
|
|
|
|
"homedecor_toaster_sides.png",
|
|
|
|
"homedecor_toaster_sides.png",
|
|
|
|
"homedecor_toaster_sides.png",
|
|
|
|
"homedecor_toaster_sides.png",
|
|
|
|
"homedecor_toaster_sides.png"
|
|
|
|
},
|
2015-04-29 14:14:36 +02:00
|
|
|
walkable = false,
|
2015-01-23 22:48:40 +01:00
|
|
|
groups = { snappy=3, not_in_creative_inventory=1 },
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.0625, -0.5, -0.125, 0.125, -0.3125, 0.125}, -- NodeBox1
|
|
|
|
{-0.03125, -0.3125, -0.0935, 0, -0.25, 0.0935}, -- NodeBox2
|
|
|
|
{0.0625, -0.3125, -0.0935, 0.0935, -0.25, 0.0935}, -- NodeBox3
|
|
|
|
},
|
|
|
|
},
|
2016-07-31 01:17:23 +02:00
|
|
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
2015-01-23 22:48:40 +01:00
|
|
|
local fdir = node.param2
|
|
|
|
minetest.set_node(pos, { name = "homedecor:toaster", param2 = fdir })
|
2016-07-31 01:17:23 +02:00
|
|
|
return itemstack
|
2015-01-23 22:48:40 +01:00
|
|
|
end,
|
|
|
|
drop = "homedecor:toaster"
|
|
|
|
})
|
|
|
|
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("dishwasher", {
|
2017-01-24 21:43:20 +01:00
|
|
|
description = S("Dishwasher"),
|
2015-01-23 22:48:40 +01:00
|
|
|
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},
|
|
|
|
}
|
|
|
|
},
|
2015-04-30 00:24:47 +02:00
|
|
|
selection_box = { type = "regular" },
|
2015-04-29 14:14:36 +02:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2015-01-23 22:48:40 +01:00
|
|
|
groups = { snappy = 3 },
|
|
|
|
})
|
|
|
|
|
2017-01-24 21:43:20 +01:00
|
|
|
local materials = { N_("granite"), N_("marble"), N_("steel"), N_("wood") }
|
2015-01-23 22:48:40 +01:00
|
|
|
|
2015-02-28 10:14:46 +01:00
|
|
|
for _, m in ipairs(materials) do
|
|
|
|
homedecor.register("dishwasher_"..m, {
|
2017-01-24 21:43:20 +01:00
|
|
|
description = S("Dishwasher (@1)", S(m)),
|
2015-01-23 22:48:40 +01:00
|
|
|
tiles = {
|
2015-02-28 10:14:46 +01:00
|
|
|
"homedecor_kitchen_cabinet_top_"..m..".png",
|
2015-01-23 22:48:40 +01:00
|
|
|
"homedecor_dishwasher_bottom.png",
|
|
|
|
"homedecor_dishwasher_sides.png",
|
|
|
|
"homedecor_dishwasher_sides.png^[transformFX",
|
|
|
|
"homedecor_dishwasher_back.png",
|
|
|
|
"homedecor_dishwasher_front.png"
|
|
|
|
},
|
|
|
|
groups = { snappy = 3 },
|
2015-04-29 14:14:36 +02:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2015-01-23 22:48:40 +01:00
|
|
|
})
|
2015-02-28 10:14:46 +01:00
|
|
|
end
|