1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-23 16:30:21 +01:00
homedecor_modpack/homedecor/crafts.lua

1478 lines
35 KiB
Lua
Raw Normal View History

2012-07-12 23:56:15 +02:00
-- Crafting for homedecor mod (includes folding) by Vanessa Ezekowitz
--
-- Mostly my own code; overall template borrowed from game default
local S = homedecor.gettext
2013-03-05 08:18:56 +01:00
-- misc stuff :D
minetest.register_craftitem("homedecor:terracotta_base", {
2013-03-05 08:18:56 +01:00
description = S("Uncooked Terracotta Base"),
inventory_image = "homedecor_terracotta_base.png",
})
minetest.register_craft( {
type = "shapeless",
output = "homedecor:terracotta_base 8",
recipe = {
"default:dirt",
"default:clay_lump",
"bucket:bucket_water"
},
replacements = { {"bucket:bucket_water", "bucket:bucket_empty"}, },
})
2012-07-12 23:56:15 +02:00
minetest.register_craftitem("homedecor:roof_tile_terracotta", {
2013-03-05 08:18:56 +01:00
description = S("Terracotta Roof Tile"),
2012-07-12 23:56:15 +02:00
inventory_image = "homedecor_roof_tile_terracotta.png",
})
minetest.register_craft({
type = "cooking",
output = "homedecor:roof_tile_terracotta",
recipe = "homedecor:terracotta_base",
2012-07-12 23:56:15 +02:00
})
minetest.register_craft( {
output = "homedecor:shingles_terracotta",
2012-07-12 23:56:15 +02:00
recipe = {
{ "homedecor:roof_tile_terracotta", "homedecor:roof_tile_terracotta"},
{ "homedecor:roof_tile_terracotta", "homedecor:roof_tile_terracotta"},
2012-07-12 23:56:15 +02:00
},
})
minetest.register_craft( {
output = "homedecor:roof_tile_terracotta 8",
2012-07-12 23:56:15 +02:00
recipe = {
{ "homedecor:shingles_terracotta", "homedecor:shingles_terracotta" }
}
})
minetest.register_craft( {
output = "homedecor:flower_pot_terracotta",
recipe = {
{ "homedecor:roof_tile_terracotta", "default:dirt", "homedecor:roof_tile_terracotta" },
{ "homedecor:roof_tile_terracotta", "homedecor:roof_tile_terracotta", "homedecor:roof_tile_terracotta" },
2012-07-12 23:56:15 +02:00
},
})
--
minetest.register_craftitem("homedecor:plastic_sheeting", {
2013-03-05 08:18:56 +01:00
description = S("Plastic sheet"),
2012-07-12 23:56:15 +02:00
inventory_image = "homedecor_plastic_sheeting.png",
})
minetest.register_craftitem("homedecor:plastic_base", {
2013-03-05 08:18:56 +01:00
description = S("Unprocessed Plastic base"),
wield_image = "homedecor_plastic_base.png",
inventory_image = "homedecor_plastic_base_inv.png",
})
minetest.register_craft({
type = "shapeless",
output = "homedecor:plastic_base 4",
recipe = {
"group:leaves",
"group:leaves",
"group:leaves",
"group:leaves",
"group:leaves",
"group:leaves"
}
2012-07-12 23:56:15 +02:00
})
minetest.register_craft({
type = "cooking",
output = "homedecor:plastic_sheeting",
recipe = "homedecor:plastic_base",
})
minetest.register_craft({
type = "fuel",
recipe = "homedecor:plastic_base",
burntime = 30,
})
2012-07-12 23:56:15 +02:00
minetest.register_craft({
type = "fuel",
recipe = "homedecor:plastic_sheeting",
2012-07-12 23:56:15 +02:00
burntime = 30,
})
minetest.register_craft( {
output = "homedecor:flower_pot_green",
2012-07-12 23:56:15 +02:00
recipe = {
{ "", "dye:dark_green", "" },
{ "homedecor:plastic_sheeting", "default:dirt", "homedecor:plastic_sheeting" },
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
},
})
2012-07-12 23:56:15 +02:00
minetest.register_craft( {
output = "homedecor:flower_pot_black",
2012-07-12 23:56:15 +02:00
recipe = {
{ "dye:black", "dye:black", "dye:black" },
{ "homedecor:plastic_sheeting", "default:dirt", "homedecor:plastic_sheeting" },
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
2012-07-12 23:56:15 +02:00
},
})
--
minetest.register_craft( {
output = "homedecor:projection_screen 3",
2012-07-12 23:56:15 +02:00
recipe = {
{ "", "default:glass", "" },
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
2012-07-12 23:56:15 +02:00
},
})
minetest.register_craft({
type = "fuel",
recipe = "homedecor:projection_screen",
2012-07-12 23:56:15 +02:00
burntime = 30,
})
--
minetest.register_craft( {
type = "shapeless",
output = "homedecor:ceiling_paint 20",
2012-07-12 23:56:15 +02:00
recipe = {
"dye:white",
"dye:white",
"default:sand",
"bucket:bucket_water",
2012-07-12 23:56:15 +02:00
},
replacements = { { "bucket:bucket_water","bucket:bucket_empty" } }
2012-07-12 23:56:15 +02:00
})
minetest.register_craft( {
output = "homedecor:ceiling_tile 10",
2012-07-12 23:56:15 +02:00
recipe = {
{ "", "dye:white", "" },
{ "default:steel_ingot", "default:stone", "default:steel_ingot" },
2012-07-12 23:56:15 +02:00
},
})
-- =======================================================
-- Items/recipes not requiring smelting of anything new
minetest.register_craft( {
2014-03-25 14:16:47 +01:00
output = "homedecor:glass_table_small_round_b 15",
2012-07-12 23:56:15 +02:00
recipe = {
{ "", "default:glass", "" },
{ "default:glass", "default:glass", "default:glass" },
{ "", "default:glass", "" },
2012-07-12 23:56:15 +02:00
},
})
minetest.register_craft( {
2014-03-25 14:16:47 +01:00
output = "homedecor:glass_table_small_square_b 4",
recipe = {
{"homedecor:glass_table_small_round", "homedecor:glass_table_small_round" },
{"homedecor:glass_table_small_round", "homedecor:glass_table_small_round" }
}
})
2012-07-12 23:56:15 +02:00
minetest.register_craft( {
2014-03-25 14:16:47 +01:00
output = "homedecor:glass_table_large_b 4",
recipe = {
{ "homedecor:glass_table_small_square", "homedecor:glass_table_small_square" },
{ "homedecor:glass_table_small_square", "homedecor:glass_table_small_square" }
}
2012-07-12 23:56:15 +02:00
})
--
minetest.register_craft( {
2014-03-25 14:16:47 +01:00
output = "homedecor:wood_table_small_round_b 15",
recipe = {
2014-01-19 16:13:41 +01:00
{ "", "group:wood", "" },
{ "group:wood", "group:wood", "group:wood" },
{ "", "group:wood", "" },
},
})
minetest.register_craft( {
2014-03-25 14:16:47 +01:00
output = "homedecor:wood_table_small_square_b 4",
recipe = {
{ "homedecor:wood_table_small_round","homedecor:wood_table_small_round" },
{ "homedecor:wood_table_small_round","homedecor:wood_table_small_round" }
}
})
minetest.register_craft( {
2014-03-25 14:16:47 +01:00
output = "homedecor:wood_table_large_b 4",
recipe = {
{ "homedecor:wood_table_small_square", "homedecor:wood_table_small_square" },
{ "homedecor:wood_table_small_square", "homedecor:wood_table_small_square" }
}
})
--
minetest.register_craft({
type = "fuel",
2014-03-25 14:16:47 +01:00
recipe = "homedecor:wood_table_small_round_b",
burntime = 30,
})
minetest.register_craft({
type = "fuel",
2014-03-25 14:16:47 +01:00
recipe = "homedecor:wood_table_small_square_b",
burntime = 30,
})
minetest.register_craft({
type = "fuel",
2014-03-25 14:16:47 +01:00
recipe = "homedecor:wood_table_large_b",
burntime = 30,
2012-07-12 23:56:15 +02:00
})
--
minetest.register_craft( {
output = "homedecor:shingles_asphalt 6",
2012-07-12 23:56:15 +02:00
recipe = {
{ "default:gravel", "dye:black", "default:gravel" },
{ "default:sand", "dye:black", "default:sand" },
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
2012-07-12 23:56:15 +02:00
},
})
--
minetest.register_craft( {
output = "homedecor:shingles_wood 12",
2012-07-12 23:56:15 +02:00
recipe = {
2014-01-19 16:13:41 +01:00
{ "default:stick", "group:wood"},
{ "group:wood", "default:stick"},
2012-09-24 12:35:16 +02:00
},
})
minetest.register_craft( {
output = "homedecor:shingles_wood 12",
2012-09-24 12:35:16 +02:00
recipe = {
2014-01-19 16:13:41 +01:00
{ "group:wood", "default:stick"},
{ "default:stick", "group:wood"},
2012-07-12 23:56:15 +02:00
},
})
minetest.register_craft({
type = "fuel",
recipe = "homedecor:shingles_wood",
2012-07-12 23:56:15 +02:00
burntime = 30,
})
--
minetest.register_craft( {
output = "homedecor:skylight 9",
2012-07-12 23:56:15 +02:00
recipe = {
{ "default:glass", "default:glass" },
{ "default:glass", "default:glass" },
2012-07-12 23:56:15 +02:00
},
})
minetest.register_craft( {
type = "shapeless",
output = "homedecor:skylight",
recipe = { "homedecor:skylight_frosted" },
})
minetest.register_craft( {
type = "shapeless",
output = "homedecor:skylight_frosted",
recipe = { "homedecor:skylight" },
})
-- Various colors of shutters
2012-07-12 23:56:15 +02:00
minetest.register_craft( {
output = "homedecor:shutter_oak 2",
2012-07-12 23:56:15 +02:00
recipe = {
{ "default:stick", "default:stick" },
{ "default:stick", "default:stick" },
{ "default:stick", "default:stick" },
2012-07-12 23:56:15 +02:00
},
})
minetest.register_craft({
type = "fuel",
recipe = "homedecor:shutter_oak",
2012-07-12 23:56:15 +02:00
burntime = 30,
})
--
minetest.register_craft( {
type = "shapeless",
output = "homedecor:shutter_black 4",
2012-07-12 23:56:15 +02:00
recipe = {
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"dye:black"
2012-07-12 23:56:15 +02:00
},
})
2012-07-12 23:56:15 +02:00
minetest.register_craft({
type = "fuel",
recipe = "homedecor:shutter_black",
2012-07-12 23:56:15 +02:00
burntime = 30,
})
--
minetest.register_craft( {
type = "shapeless",
output = "homedecor:shutter_dark_grey 4",
2012-07-12 23:56:15 +02:00
recipe = {
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"dye:dark_grey"
2012-07-12 23:56:15 +02:00
},
})
minetest.register_craft({
type = "fuel",
recipe = "homedecor:shutter_dark_grey",
2012-07-12 23:56:15 +02:00
burntime = 30,
})
--
minetest.register_craft( {
type = "shapeless",
output = "homedecor:shutter_grey 4",
2012-07-12 23:56:15 +02:00
recipe = {
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"dye:grey"
2012-07-12 23:56:15 +02:00
},
})
minetest.register_craft({
type = "fuel",
recipe = "homedecor:shutter_grey",
2012-07-12 23:56:15 +02:00
burntime = 30,
})
--
minetest.register_craft( {
type = "shapeless",
output = "homedecor:shutter_white 4",
recipe = {
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"dye:white"
},
})
minetest.register_craft({
type = "fuel",
recipe = "homedecor:shutter_white",
burntime = 30,
})
--
minetest.register_craft( {
type = "shapeless",
output = "homedecor:shutter_mahogany 4",
recipe = {
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"dye:brown"
},
})
minetest.register_craft({
type = "fuel",
recipe = "homedecor:shutter_mahogany",
burntime = 30,
})
minetest.register_craft( {
type = "shapeless",
output = "homedecor:shutter_red 4",
recipe = {
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"dye:red"
},
})
minetest.register_craft({
type = "fuel",
recipe = "homedecor:shutter_red",
burntime = 30,
})
minetest.register_craft( {
type = "shapeless",
output = "homedecor:shutter_yellow 4",
recipe = {
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"dye:yellow"
},
})
minetest.register_craft({
type = "fuel",
recipe = "homedecor:shutter_yellow",
burntime = 30,
})
--
minetest.register_craft( {
type = "shapeless",
output = "homedecor:shutter_forest_green 4",
2012-07-12 23:56:15 +02:00
recipe = {
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"dye:dark_green"
},
})
2012-07-12 23:56:15 +02:00
minetest.register_craft({
type = "fuel",
recipe = "homedecor:shutter_forest_green",
2012-07-12 23:56:15 +02:00
burntime = 30,
})
--
2012-07-12 23:56:15 +02:00
minetest.register_craft( {
type = "shapeless",
output = "homedecor:shutter_light_blue 4",
recipe = {
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"unifieddyes:light_blue"
},
2012-07-12 23:56:15 +02:00
})
minetest.register_craft({
type = "fuel",
recipe = "homedecor:shutter_light_blue",
burntime = 30,
2012-07-12 23:56:15 +02:00
})
minetest.register_craft( {
type = "shapeless",
2014-01-11 09:02:07 +01:00
output = "homedecor:shutter_violet 4",
recipe = {
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"homedecor:shutter_oak",
"dye:violet"
},
})
minetest.register_craft({
type = "fuel",
2014-01-11 09:02:07 +01:00
recipe = "homedecor:shutter_violet",
burntime = 30,
})
2012-07-12 23:56:15 +02:00
--
minetest.register_craftitem("homedecor:drawer_small", {
2013-03-05 08:18:56 +01:00
description = S("Small Wooden Drawer"),
2012-07-12 23:56:15 +02:00
inventory_image = "homedecor_drawer_small.png",
})
minetest.register_craft( {
output = "homedecor:drawer_small",
2012-07-12 23:56:15 +02:00
recipe = {
2014-01-19 16:13:41 +01:00
{ "group:wood", "default:steel_ingot", "group:wood" },
2012-07-12 23:56:15 +02:00
},
})
minetest.register_craft({
type = "fuel",
recipe = "homedecor:drawer_small",
2012-07-12 23:56:15 +02:00
burntime = 30,
})
--
minetest.register_craft( {
output = "homedecor:nightstand_oak_one_drawer",
2012-07-12 23:56:15 +02:00
recipe = {
{ "homedecor:drawer_small" },
2014-01-19 16:13:41 +01:00
{ "group:wood" },
2012-07-12 23:56:15 +02:00
},
})
minetest.register_craft({
type = "fuel",
recipe = "homedecor:nightstand_oak_one_drawer",
2012-07-12 23:56:15 +02:00
burntime = 30,
})
minetest.register_craft( {
output = "homedecor:nightstand_oak_two_drawers",
2012-07-12 23:56:15 +02:00
recipe = {
{ "homedecor:drawer_small" },
{ "homedecor:drawer_small" },
2014-01-19 16:13:41 +01:00
{ "group:wood" },
2012-07-12 23:56:15 +02:00
},
})
minetest.register_craft( {
output = "homedecor:nightstand_oak_two_drawers",
recipe = {
{ "homedecor:nightstand_oak_one_drawer" },
{ "homedecor:drawer_small" },
},
})
2012-07-12 23:56:15 +02:00
minetest.register_craft({
type = "fuel",
recipe = "homedecor:nightstand_oak_two_drawers",
2012-07-12 23:56:15 +02:00
burntime = 30,
})
--
minetest.register_craft( {
type = "shapeless",
output = "homedecor:nightstand_mahogany_one_drawer",
2012-07-12 23:56:15 +02:00
recipe = {
"homedecor:nightstand_oak_one_drawer",
"dye:brown",
2012-07-12 23:56:15 +02:00
},
})
minetest.register_craft({
type = "fuel",
recipe = "homedecor:nightstand_mahogany_one_drawer",
2012-07-12 23:56:15 +02:00
burntime = 30,
})
minetest.register_craft( {
type = "shapeless",
output = "homedecor:nightstand_mahogany_two_drawers",
2012-07-12 23:56:15 +02:00
recipe = {
"homedecor:nightstand_oak_two_drawers",
"dye:brown",
2012-07-12 23:56:15 +02:00
},
})
minetest.register_craft({
type = "fuel",
recipe = "homedecor:nightstand_mahogany_two_drawers",
2012-07-12 23:56:15 +02:00
burntime = 30,
})
minetest.register_craftitem("homedecor:brass_ingot", {
2013-03-05 08:18:56 +01:00
description = S("Brass Ingot"),
2012-07-12 23:56:15 +02:00
inventory_image = "homedecor_brass_ingot.png",
groups = { brass_ingot=1 }
2012-07-12 23:56:15 +02:00
})
minetest.register_craft( {
type = "shapeless",
output = "homedecor:brass_ingot 2",
recipe = {
"moreores:silver_ingot",
"default:copper_ingot",
},
})
2012-07-12 23:56:15 +02:00
-- Table legs
minetest.register_craft( {
output = "homedecor:table_legs_wrought_iron 3",
recipe = {
{ "", "default:iron_lump", "" },
{ "", "default:iron_lump", "" },
{ "default:iron_lump", "default:iron_lump", "default:iron_lump" },
},
})
2012-07-12 23:56:15 +02:00
minetest.register_craft( {
output = "homedecor:table_legs_brass 3",
recipe = {
{ "", "group:brass_ingot", "" },
{ "", "group:brass_ingot", "" },
{ "group:brass_ingot", "group:brass_ingot", "group:brass_ingot" }
},
})
2012-07-12 23:56:15 +02:00
minetest.register_craft( {
output = "homedecor:utility_table_legs",
recipe = {
{ "default:stick", "default:stick", "default:stick" },
{ "default:stick", "", "default:stick" },
{ "default:stick", "", "default:stick" },
},
})
minetest.register_craft({
type = "fuel",
recipe = "homedecor:utility_table_legs",
burntime = 30,
})
-- vertical poles/lampposts
minetest.register_craft( {
output = "homedecor:pole_brass 4",
recipe = {
{ "", "group:brass_ingot", "" },
{ "", "group:brass_ingot", "" },
{ "", "group:brass_ingot", "" }
},
})
2012-07-12 23:56:15 +02:00
minetest.register_craft( {
output = "homedecor:pole_wrought_iron 4",
recipe = {
{ "default:iron_lump", },
{ "default:iron_lump", },
{ "default:iron_lump", },
},
})
2012-07-12 23:56:15 +02:00
-- Home electronics
2012-07-12 23:56:15 +02:00
if ( minetest.get_modpath("mesecons") ) == nil then
2012-07-12 23:56:15 +02:00
minetest.register_craftitem(":mesecons_materials:silicon", {
2013-03-05 08:18:56 +01:00
description = S("Silicon lump"),
inventory_image = "homedecor_silicon.png",
})
2012-07-12 23:56:15 +02:00
minetest.register_craft( {
output = "mesecons_materials:silicon 4",
recipe = {
{ "default:sand", "default:sand" },
{ "default:sand", "default:steel_ingot" },
2012-07-12 23:56:15 +02:00
},
})
end
minetest.register_craft( {
output = "homedecor:ic 4",
recipe = {
{ "mesecons_materials:silicon", "mesecons_materials:silicon" },
2013-11-02 09:39:34 +01:00
{ "mesecons_materials:silicon", "default:copper_ingot" },
},
})
2012-07-12 23:56:15 +02:00
minetest.register_craftitem("homedecor:ic", {
2013-03-05 08:18:56 +01:00
description = S("Simple Integrated Circuit"),
inventory_image = "homedecor_ic.png",
})
minetest.register_craft( {
output = "homedecor:television",
recipe = {
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
2013-11-02 09:39:34 +01:00
{ "homedecor:plastic_sheeting", "moreblocks:glow_glass", "homedecor:plastic_sheeting" },
{ "homedecor:ic", "homedecor:ic", "homedecor:ic" },
},
})
2012-07-12 23:56:15 +02:00
minetest.register_craft( {
output = "homedecor:stereo",
recipe = {
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
{ "homedecor:plastic_sheeting", "homedecor:ic", "homedecor:plastic_sheeting" },
{ "default:steel_ingot", "homedecor:ic", "default:steel_ingot" },
},
})
2012-07-12 23:56:15 +02:00
-- ===========================================================
-- Recipes that require materials from wool (cotton alternate)
2012-07-12 23:56:15 +02:00
minetest.register_craft( {
type = "shapeless",
output = "homedecor:rug_small 8",
recipe = {
"wool:red",
"wool:yellow",
"wool:blue",
"wool:black"
},
})
2012-07-12 23:56:15 +02:00
-- cotton version:
2012-07-12 23:56:15 +02:00
minetest.register_craft( {
type = "shapeless",
output = "homedecor:rug_small 8",
recipe = {
"cotton:red",
"cotton:yellow",
"cotton:blue",
"cotton:black"
},
})
2012-07-12 23:56:15 +02:00
minetest.register_craft({
type = "fuel",
recipe = "homedecor:rug_small",
burntime = 30,
})
2012-07-12 23:56:15 +02:00
minetest.register_craft( {
type = "shapeless",
output = "homedecor:rug_large 2",
recipe = {
"homedecor:rug_small",
"homedecor:rug_small",
},
})
2012-07-12 23:56:15 +02:00
minetest.register_craft({
type = "fuel",
recipe = "homedecor:rug_large",
burntime = 30,
})
2012-07-12 23:56:15 +02:00
-- =====================================
-- Speakers require copper from moreores
minetest.register_craft( {
output = "homedecor:speaker",
recipe = {
2014-01-19 16:13:41 +01:00
{ "group:wood", "wool:black", "group:wood" },
{ "group:wood", "default:copper_ingot", "group:wood" },
{ "group:wood", "wool:black", "group:wood" },
},
})
minetest.register_craft( {
output = "homedecor:speaker_small",
recipe = {
2014-01-19 16:13:41 +01:00
{ "group:wood", "wool:black", "group:wood" },
{ "group:wood", "default:copper_ingot", "group:wood" },
},
})
-- cotton version
minetest.register_craft( {
output = "homedecor:speaker",
recipe = {
2014-01-19 16:13:41 +01:00
{ "group:wood", "cotton:black", "group:wood" },
{ "group:wood", "default:copper_ingot", "group:wood" },
{ "group:wood", "cotton:black", "group:wood" },
},
})
minetest.register_craft( {
output = "homedecor:speaker_small",
recipe = {
2014-01-19 16:13:41 +01:00
{ "group:wood", "cotton:black", "group:wood" },
{ "group:wood", "default:copper_ingot", "group:wood" },
},
})
2012-07-12 23:56:15 +02:00
-- Curtains
local curtaincolors = {
"red",
"green",
"blue",
"white",
"pink",
"violet"
}
for c in ipairs(curtaincolors) do
local color = curtaincolors[c]
minetest.register_craft( {
output = "homedecor:curtain_"..color.." 3",
recipe = {
{ "wool:"..color, "", ""},
{ "wool:"..color, "", ""},
{ "wool:"..color, "", ""},
},
})
end
-- Recycling recipes
-- Some glass objects recycle via the glass fragments item/recipe in the Vessels mod.
minetest.register_craft({
type = "shapeless",
output = "vessels:glass_fragments",
recipe = {
"homedecor:glass_table_small_round",
"homedecor:glass_table_small_round",
"homedecor:glass_table_small_round"
}
})
minetest.register_craft({
type = "shapeless",
output = "vessels:glass_fragments",
recipe = {
"homedecor:glass_table_small_square",
"homedecor:glass_table_small_square",
"homedecor:glass_table_small_square"
}
})
minetest.register_craft({
type = "shapeless",
output = "vessels:glass_fragments",
recipe = {
"homedecor:glass_table_large",
"homedecor:glass_table_large",
"homedecor:glass_table_large"
}
})
minetest.register_craft({
type = "shapeless",
output = "vessels:glass_fragments",
recipe = {
"homedecor:skylight",
"homedecor:skylight",
"homedecor:skylight",
}
})
-- Wooden tabletops can turn into sticks
minetest.register_craft({
type = "shapeless",
output = "default:stick 4",
recipe = {
"homedecor:wood_table_small_round",
"homedecor:wood_table_small_round",
"homedecor:wood_table_small_round"
}
})
minetest.register_craft({
type = "shapeless",
output = "default:stick 4",
recipe = {
"homedecor:wood_table_small_square",
"homedecor:wood_table_small_square",
"homedecor:wood_table_small_square"
}
})
minetest.register_craft({
type = "shapeless",
output = "default:stick 4",
recipe = {
"homedecor:wood_table_large",
"homedecor:wood_table_large",
"homedecor:wood_table_large"
}
})
-- Kitchen stuff
minetest.register_craft({
output = "homedecor:oven_steel",
recipe = {
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot", },
2013-11-02 09:39:34 +01:00
{"default:steel_ingot", "moreblocks:iron_glass", "default:steel_ingot", },
{"default:steel_ingot", "default:copper_ingot", "default:steel_ingot", },
}
})
minetest.register_craft({
type = "shapeless",
output = "homedecor:oven",
recipe = {
"homedecor:oven_steel",
"dye:white",
"dye:white",
}
})
2013-04-05 12:53:02 +02:00
minetest.register_craft({
output = "homedecor:microwave_oven 2",
recipe = {
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot", },
2013-11-02 09:39:34 +01:00
{"default:steel_ingot", "moreblocks:iron_glass", "mesecons_materials:silicon", },
{"default:steel_ingot", "default:copper_ingot", "default:mese_crystal", },
2013-04-05 12:53:02 +02:00
}
})
minetest.register_craft({
output = "homedecor:refrigerator_steel",
recipe = {
{"default:steel_ingot", "homedecor:glowlight_small_cube_yellow", "default:steel_ingot", },
{"default:steel_ingot", "moreores:tin_ingot", "default:steel_ingot", },
{"default:steel_ingot", "default:clay", "default:steel_ingot", },
}
})
minetest.register_craft({
type = "shapeless",
output = "homedecor:refrigerator",
recipe = {
"homedecor:refrigerator_steel",
"dye:white",
"dye:white",
"dye:white",
}
})
minetest.register_craft({
output = "homedecor:kitchen_cabinet",
recipe = {
2014-01-19 16:13:41 +01:00
{"group:wood", "default:stick", "group:wood", },
{"group:wood", "default:stick", "group:wood", },
{"group:wood", "default:stick", "group:wood", },
}
})
minetest.register_craft({
output = "homedecor:kitchen_cabinet_steel",
recipe = {
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
{"", "homedecor:kitchen_cabinet", ""},
}
})
minetest.register_craft({
output = "homedecor:kitchen_cabinet_steel",
recipe = {
{"moreblocks:slab_steelblock_1"},
{ "homedecor:kitchen_cabinet" },
}
})
minetest.register_craft({
output = "homedecor:kitchen_cabinet_marble",
recipe = {
{"building_blocks:slab_marble"},
{"homedecor:kitchen_cabinet"},
}
})
minetest.register_craft({
output = "homedecor:kitchen_cabinet_marble",
recipe = {
{"technic:slab_marble_1"},
{"homedecor:kitchen_cabinet"},
}
})
minetest.register_craft({
output = "homedecor:kitchen_cabinet_granite",
recipe = {
{"technic:slab_granite_1"},
{"homedecor:kitchen_cabinet"},
}
})
minetest.register_craft({
type = "shapeless",
output = "homedecor:kitchen_cabinet_half 2",
recipe = { "homedecor:kitchen_cabinet" }
})
minetest.register_craft({
output = "homedecor:kitchen_cabinet_with_sink",
recipe = {
2014-01-19 16:13:41 +01:00
{"group:wood", "default:steel_ingot", "group:wood", },
{"group:wood", "default:steel_ingot", "group:wood", },
{"group:wood", "default:stick", "group:wood", },
}
})
-- Lighting
-- yellow
minetest.register_craft({
output = "homedecor:glowlight_half_yellow 6",
recipe = {
2013-11-02 09:39:34 +01:00
{"moreblocks:super_glow_glass", "moreblocks:glow_glass", "moreblocks:super_glow_glass", },
}
})
minetest.register_craft({
output = "homedecor:glowlight_quarter_yellow 6",
recipe = {
{"homedecor:glowlight_half_yellow", "homedecor:glowlight_half_yellow", "homedecor:glowlight_half_yellow", },
}
})
minetest.register_craft({
output = "homedecor:glowlight_small_cube_yellow 16",
recipe = {
2013-11-02 09:39:34 +01:00
{"moreblocks:glow_glass" },
{"moreblocks:super_glow_glass" },
}
})
2012-07-12 23:56:15 +02:00
minetest.register_craft({
output = "homedecor:glowlight_small_cube_yellow 4",
recipe = {
{"homedecor:glowlight_half_yellow" },
}
})
minetest.register_craft({
output = "homedecor:glowlight_half_yellow",
recipe = {
{"homedecor:glowlight_small_cube_yellow","homedecor:glowlight_small_cube_yellow"},
{"homedecor:glowlight_small_cube_yellow","homedecor:glowlight_small_cube_yellow"}
}
})
-- white
minetest.register_craft({
output = "homedecor:glowlight_half_white 6",
recipe = {
{ "dye:white", "dye:white", "dye:white" },
2013-11-02 09:39:34 +01:00
{"moreblocks:super_glow_glass", "moreblocks:glow_glass", "moreblocks:super_glow_glass", },
}
})
minetest.register_craft({
type = "shapeless",
output = "homedecor:glowlight_half_white 2",
recipe = {
"dye:white",
"homedecor:glowlight_half_yellow",
"homedecor:glowlight_half_yellow",
}
})
minetest.register_craft({
output = "homedecor:glowlight_quarter_white 6",
recipe = {
{"homedecor:glowlight_half_white", "homedecor:glowlight_half_white", "homedecor:glowlight_half_white", },
}
})
minetest.register_craft({
output = "homedecor:glowlight_small_cube_white 8",
recipe = {
{"dye:white" },
2013-11-02 09:39:34 +01:00
{"moreblocks:super_glow_glass" },
}
})
minetest.register_craft({
output = "homedecor:glowlight_small_cube_white 4",
recipe = {
{"homedecor:glowlight_half_white" },
}
})
minetest.register_craft({
output = "homedecor:glowlight_half_white",
recipe = {
{"homedecor:glowlight_small_cube_white","homedecor:glowlight_small_cube_white"},
{"homedecor:glowlight_small_cube_white","homedecor:glowlight_small_cube_white"}
}
})
-- Brass/wrought iron fences
minetest.register_craft( {
output = "homedecor:fence_brass 6",
recipe = {
{ "group:brass_ingot", "group:brass_ingot", "group:brass_ingot" },
{ "group:brass_ingot", "group:brass_ingot", "group:brass_ingot" },
},
})
minetest.register_craft( {
output = "homedecor:fence_wrought_iron 6",
recipe = {
{ "default:iron_lump","default:iron_lump","default:iron_lump" },
{ "default:iron_lump","default:iron_lump","default:iron_lump" },
},
})
-- other types of fences
minetest.register_craft( {
output = "homedecor:fence_picket 6",
recipe = {
{ "default:stick", "default:stick", "default:stick" },
{ "default:stick", "", "default:stick" },
{ "default:stick", "default:stick", "default:stick" }
},
})
minetest.register_craft( {
type = "shapeless",
output = "homedecor:fence_picket_corner",
recipe = {
"homedecor:fence_picket",
"homedecor:fence_picket"
},
})
minetest.register_craft( {
type = "shapeless",
output = "homedecor:fence_picket 2",
recipe = {
"homedecor:fence_picket_corner"
},
})
--
minetest.register_craft( {
output = "homedecor:fence_picket_white 6",
recipe = {
{ "default:stick", "default:stick", "default:stick" },
{ "default:stick", "dye:white", "default:stick" },
{ "default:stick", "default:stick", "default:stick" }
},
})
minetest.register_craft( {
type = "shapeless",
output = "homedecor:fence_picket_corner_white",
recipe = {
"homedecor:fence_picket_white",
"homedecor:fence_picket_white"
},
})
minetest.register_craft( {
type = "shapeless",
output = "homedecor:fence_picket_white 2",
recipe = {
"homedecor:fence_picket_corner_white"
},
})
--
minetest.register_craft( {
output = "homedecor:fence_privacy 6",
recipe = {
2014-01-19 16:13:41 +01:00
{ "group:wood", "default:stick", "group:wood" },
{ "group:wood", "", "group:wood" },
{ "group:wood", "default:stick", "group:wood" }
},
})
minetest.register_craft( {
type = "shapeless",
output = "homedecor:fence_privacy_corner",
recipe = {
"homedecor:fence_privacy",
"homedecor:fence_privacy"
},
})
minetest.register_craft( {
type = "shapeless",
output = "homedecor:fence_privacy 2",
recipe = {
"homedecor:fence_privacy_corner"
},
})
--
minetest.register_craft( {
output = "homedecor:fence_barbed_wire 6",
recipe = {
{ "default:stick", "default:iron_lump", "default:stick" },
{ "default:stick", "", "default:stick" },
{ "default:stick", "default:iron_lump", "default:stick" }
},
})
minetest.register_craft( {
type = "shapeless",
output = "homedecor:fence_barbed_wire_corner",
recipe = { "homedecor:fence_barbed_wire", "homedecor:fence_barbed_wire" },
})
minetest.register_craft( {
type = "shapeless",
output = "homedecor:fence_barbed_wire 2",
recipe = { "homedecor:fence_barbed_wire_corner" },
})
--
2012-10-01 00:49:12 +02:00
minetest.register_craft( {
output = "homedecor:fence_chainlink 9",
recipe = {
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" },
{ "default:steel_ingot", "default:iron_lump", "default:steel_ingot" },
{ "default:steel_ingot", "default:iron_lump", "default:steel_ingot" }
},
})
minetest.register_craft( {
type = "shapeless",
output = "homedecor:fence_chainlink_corner",
recipe = { "homedecor:fence_chainlink", "homedecor:fence_chainlink" },
})
minetest.register_craft( {
type = "shapeless",
output = "homedecor:fence_chainlink 2",
recipe = { "homedecor:fence_chainlink_corner" },
})
-- Gates
minetest.register_craft( {
type = "shapeless",
output = "homedecor:gate_picket_white_closed",
recipe = {
"homedecor:fence_picket_white"
},
})
minetest.register_craft( {
type = "shapeless",
output = "homedecor:fence_picket_white",
recipe = {
"homedecor:gate_picket_white_closed"
},
})
minetest.register_craft( {
type = "shapeless",
output = "homedecor:gate_picket_closed",
recipe = {
"homedecor:fence_picket"
},
})
minetest.register_craft( {
type = "shapeless",
output = "homedecor:fence_picket",
recipe = {
"homedecor:gate_picket_closed"
},
})
minetest.register_craft( {
type = "shapeless",
output = "homedecor:gate_barbed_wire_closed",
recipe = {
"homedecor:fence_barbed_wire"
},
})
minetest.register_craft( {
type = "shapeless",
output = "homedecor:fence_barbed_wire",
recipe = {
"homedecor:gate_barbed_wire_closed"
},
})
minetest.register_craft( {
type = "shapeless",
output = "homedecor:gate_chainlink_closed",
recipe = {
"homedecor:fence_chainlink"
},
})
minetest.register_craft( {
type = "shapeless",
output = "homedecor:fence_chainlink",
recipe = {
"homedecor:gate_chainlink_closed"
},
})
------ Doors
-- plain wood, non-windowed
minetest.register_craft( {
output = "homedecor:door_wood_plain_bottom_left 2",
recipe = {
2014-01-19 16:13:41 +01:00
{ "group:wood", "group:wood", "" },
{ "group:wood", "group:wood", "default:steel_ingot" },
{ "group:wood", "group:wood", "" },
},
})
-- fancy exterior
minetest.register_craft( {
output = "homedecor:door_exterior_fancy_bottom_left 2",
recipe = {
2014-01-19 16:13:41 +01:00
{ "group:wood", "default:glass" },
{ "group:wood", "group:wood" },
{ "group:wood", "group:wood" },
},
})
-- wood and glass (grid style)
-- bare
minetest.register_craft( {
output = "homedecor:door_wood_glass_bottom_left 2",
recipe = {
2014-01-19 16:13:41 +01:00
{ "default:glass", "group:wood" },
{ "group:wood", "default:glass" },
{ "default:glass", "group:wood" },
},
})
minetest.register_craft( {
output = "homedecor:door_wood_glass_bottom_left 2",
recipe = {
2014-01-19 16:13:41 +01:00
{ "group:wood", "default:glass" },
{ "default:glass", "group:wood" },
{ "group:wood", "default:glass" },
},
})
-- mahogany
minetest.register_craft( {
type = "shapeless",
output = "homedecor:door_wood_glass_mahogany_bottom_left 2",
recipe = {
"default:dirt",
"default:coal_lump",
"homedecor:door_wood_glass_bottom_left",
"homedecor:door_wood_glass_bottom_left"
},
})
minetest.register_craft( {
type = "shapeless",
output = "homedecor:door_wood_glass_mahogany_bottom_left 2",
recipe = {
"dye:brown",
"homedecor:door_wood_glass_bottom_left",
"homedecor:door_wood_glass_bottom_left"
},
})
-- white
minetest.register_craft( {
type = "shapeless",
output = "homedecor:door_wood_glass_white_bottom_left 2",
recipe = {
"dye:white",
"homedecor:door_wood_glass_bottom_left",
"homedecor:door_wood_glass_bottom_left"
},
})
-- Solid glass with metal handle
minetest.register_craft( {
output = "homedecor:door_glass_bottom_left 2",
recipe = {
{ "default:glass", "default:glass" },
{ "default:glass", "default:steel_ingot" },
{ "default:glass", "default:glass" },
},
})
-- Closet doors
-- oak
minetest.register_craft( {
output = "homedecor:door_closet_oak_bottom_left 2",
recipe = {
{ "", "default:stick", "default:stick" },
{ "default:steel_ingot", "default:stick", "default:stick" },
{ "", "default:stick", "default:stick" },
},
})
-- mahogany
minetest.register_craft( {
type = "shapeless",
output = "homedecor:door_closet_mahogany_bottom_left 2",
recipe = {
"homedecor:door_closet_oak_bottom_left",
"homedecor:door_closet_oak_bottom_left",
"default:dirt",
"default:coal_lump",
},
})
minetest.register_craft( {
type = "shapeless",
output = "homedecor:door_closet_mahogany_bottom_left 2",
recipe = {
"homedecor:door_closet_oak_bottom_left",
"homedecor:door_closet_oak_bottom_left",
"dye:brown"
},
})
2014-06-27 23:40:38 +02:00
-- more misc stuff here
minetest.register_craft({
output = "homedecor:chimney 2",
recipe = {
{ "default:clay_brick", "", "default:clay_brick" },
{ "default:clay_brick", "", "default:clay_brick" },
{ "default:clay_brick", "", "default:clay_brick" },
},
})
2014-06-28 00:56:00 +02:00
minetest.register_craft({
output = "homedecor:fishtank",
recipe = {
{ "homedecor:plastic_sheeting", "homedecor:glowlight_small_cube_white", "homedecor:plastic_sheeting" },
{ "default:glass", "bucket:bucket_water", "default:glass" },
{ "default:glass", "building_blocks:gravel_spread", "default:glass" },
},
replacements = { {"bucket:bucket_water", "bucket:bucket_empty"} }
})