2020-08-04 22:50:24 +02:00
|
|
|
local S = minetest.get_translator("homedecor_furniture")
|
2013-03-26 12:05:22 +01:00
|
|
|
|
2015-04-17 15:28:41 +02:00
|
|
|
local ob_cbox = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.5, -0.5, 0, 0.5, 0.5, 0.5 }
|
|
|
|
}
|
|
|
|
|
2014-07-13 14:35:16 +02:00
|
|
|
minetest.register_node(":homedecor:openframe_bookshelf", {
|
2017-01-24 21:43:20 +01:00
|
|
|
description = S("Bookshelf (open-frame)"),
|
2015-01-24 01:29:51 +01:00
|
|
|
drawtype = "mesh",
|
2014-12-14 07:19:36 +01:00
|
|
|
mesh = "homedecor_openframe_bookshelf.obj",
|
2015-04-17 15:28:41 +02:00
|
|
|
tiles = {
|
|
|
|
"homedecor_openframe_bookshelf_books.png",
|
|
|
|
"default_wood.png"
|
|
|
|
},
|
2014-07-13 14:35:16 +02:00
|
|
|
groups = {choppy=3,oddly_breakable_by_hand=2,flammable=3},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
2015-04-30 23:52:23 +02:00
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
2015-04-17 15:28:41 +02:00
|
|
|
selection_box = ob_cbox,
|
|
|
|
collision_box = ob_cbox,
|
2014-07-13 14:35:16 +02:00
|
|
|
})
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("wall_shelf", {
|
2017-01-24 21:43:20 +01:00
|
|
|
description = S("Wall Shelf"),
|
2014-09-10 16:09:06 +02:00
|
|
|
tiles = {
|
2019-04-20 21:49:36 +02:00
|
|
|
"default_wood.png",
|
2014-09-10 16:09:06 +02:00
|
|
|
},
|
2014-09-10 18:00:51 +02:00
|
|
|
groups = { snappy = 3 },
|
2015-04-29 14:14:36 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
2014-09-10 16:09:06 +02:00
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, 0.4, 0.47, 0.5, 0.47, 0.5},
|
|
|
|
{-0.5, 0.47, -0.1875, 0.5, 0.5, 0.5}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2019-04-20 21:49:36 +02:00
|
|
|
-- Crafts
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "homedecor:standing_lamp_off",
|
|
|
|
recipe = {
|
|
|
|
{"homedecor:table_lamp_off"},
|
|
|
|
{"group:stick"},
|
|
|
|
{"group:stick"},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
unifieddyes.register_color_craft({
|
|
|
|
output = "homedecor:standing_lamp_off",
|
|
|
|
palette = "extended",
|
|
|
|
type = "shapeless",
|
|
|
|
neutral_node = "homedecor:standing_lamp_off",
|
|
|
|
recipe = {
|
|
|
|
"NEUTRAL_NODE",
|
|
|
|
"MAIN_DYE"
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "homedecor:table_lamp_off",
|
|
|
|
burntime = 10,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "homedecor:table_lamp_off",
|
|
|
|
recipe = {
|
|
|
|
{ "wool:white", "default:torch", "wool:white"},
|
|
|
|
{ "", "group:stick", ""},
|
|
|
|
{ "", "stairs:slab_wood", "" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "homedecor:table_lamp_off",
|
|
|
|
recipe = {
|
|
|
|
{ "cottages:wool", "default:torch", "cottages:wool"},
|
|
|
|
{ "", "group:stick", ""},
|
|
|
|
{ "", "stairs:slab_wood", "" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "homedecor:table_lamp_off",
|
|
|
|
recipe = {
|
|
|
|
{ "wool:white", "default:torch", "wool:white"},
|
|
|
|
{ "", "group:stick", ""},
|
|
|
|
{ "", "moreblocks:slab_wood", "" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "homedecor:table_lamp_off",
|
|
|
|
recipe = {
|
|
|
|
{ "cottages:wool", "default:torch", "cottages:wool"},
|
|
|
|
{ "", "group:stick", ""},
|
|
|
|
{ "", "moreblocks:slab_wood", "" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
unifieddyes.register_color_craft({
|
|
|
|
output = "homedecor:table_lamp_off",
|
|
|
|
palette = "extended",
|
|
|
|
type = "shapeless",
|
|
|
|
neutral_node = "homedecor:table_lamp_off",
|
|
|
|
recipe = {
|
|
|
|
"NEUTRAL_NODE",
|
|
|
|
"MAIN_DYE"
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "homedecor:toilet",
|
|
|
|
recipe = {
|
|
|
|
{ "","","bucket:bucket_water"},
|
|
|
|
{ "group:marble","group:marble", "group:marble" },
|
|
|
|
{ "", "bucket:bucket_empty", "" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "homedecor:sink",
|
|
|
|
recipe = {
|
|
|
|
{ "group:marble","bucket:bucket_empty", "group:marble" },
|
|
|
|
{ "", "group:marble", "" }
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "homedecor:taps",
|
|
|
|
recipe = {
|
|
|
|
{ "default:steel_ingot","bucket:bucket_water", "default:steel_ingot" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "homedecor:taps_brass",
|
|
|
|
recipe = {
|
|
|
|
{ "technic:brass_ingot","bucket:bucket_water", "technic:brass_ingot" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "homedecor:shower_tray",
|
|
|
|
recipe = {
|
|
|
|
{ "group:marble","bucket:bucket_empty", "group:marble" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "homedecor:shower_head",
|
|
|
|
recipe = {
|
|
|
|
{"default:steel_ingot", "bucket:bucket_water"},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "homedecor:bathtub_clawfoot_brass_taps",
|
|
|
|
recipe = {
|
|
|
|
{ "homedecor:taps_brass", "", "" },
|
|
|
|
{ "group:marble", "", "group:marble" },
|
|
|
|
{"default:steel_ingot", "group:marble", "default:steel_ingot"},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "homedecor:bathtub_clawfoot_chrome_taps",
|
|
|
|
recipe = {
|
|
|
|
{ "homedecor:taps", "", "" },
|
|
|
|
{ "group:marble", "", "group:marble" },
|
|
|
|
{"default:steel_ingot", "group:marble", "default:steel_ingot"},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "homedecor:bars 6",
|
|
|
|
recipe = {
|
|
|
|
{ "default:steel_ingot","default:steel_ingot","default:steel_ingot" },
|
|
|
|
{ "homedecor:pole_wrought_iron","homedecor:pole_wrought_iron","homedecor:pole_wrought_iron" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "homedecor:L_binding_bars 3",
|
|
|
|
recipe = {
|
|
|
|
{ "homedecor:bars","" },
|
|
|
|
{ "homedecor:bars","homedecor:bars" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "homedecor:torch_wall 10",
|
|
|
|
recipe = {
|
|
|
|
{ "default:coal_lump" },
|
|
|
|
{ "default:steel_ingot" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2013-03-26 12:05:22 +01:00
|
|
|
-- Aliases for 3dforniture mod.
|
2014-08-07 20:49:26 +02:00
|
|
|
|
2013-03-26 12:05:22 +01:00
|
|
|
minetest.register_alias("3dforniture:table", "homedecor:table")
|
|
|
|
minetest.register_alias('table', 'homedecor:table')
|