2020-08-05 00:25:02 +02:00
|
|
|
local S = minetest.get_translator("homedecor_roofing")
|
2017-01-24 21:43:20 +01:00
|
|
|
|
2020-08-05 00:25:02 +02:00
|
|
|
homedecor_roofing = {}
|
2017-01-24 21:43:20 +01:00
|
|
|
|
2019-04-20 21:49:36 +02:00
|
|
|
minetest.register_node(":homedecor:skylight", {
|
2015-08-16 19:58:35 +02:00
|
|
|
description = S("Glass Skylight"),
|
|
|
|
drawtype = "raillike",
|
2024-03-03 21:52:58 +01:00
|
|
|
tiles = { homedecor.textures.glass.pane },
|
|
|
|
wield_image = homedecor.textures.glass.pane,
|
2015-08-16 19:58:35 +02:00
|
|
|
inventory_image = "homedecor_skylight_inv.png",
|
2022-11-30 23:48:28 +01:00
|
|
|
groups = { snappy = 3, dig_tree = 2 , axey=5},
|
2024-03-01 00:49:24 +01:00
|
|
|
is_ground_content = false,
|
2022-11-30 23:48:28 +01:00
|
|
|
_mcl_hardness=1.6,
|
2015-08-16 19:58:35 +02:00
|
|
|
paramtype = "light",
|
2022-05-03 21:21:14 +02:00
|
|
|
_sound_def = {
|
|
|
|
key = "node_sound_glass_defaults",
|
|
|
|
},
|
2015-08-16 19:58:35 +02:00
|
|
|
selection_box = homedecor.nodebox.slab_y(0.1),
|
2022-08-19 20:15:47 +02:00
|
|
|
collision_box = homedecor.nodebox.slab_y(0.1),
|
2015-08-16 19:58:35 +02:00
|
|
|
})
|
|
|
|
|
2019-04-20 21:49:36 +02:00
|
|
|
minetest.register_node(":homedecor:skylight_frosted", {
|
2015-08-16 19:58:35 +02:00
|
|
|
description = S("Glass Skylight Frosted"),
|
|
|
|
drawtype = "raillike",
|
|
|
|
tiles = { "homedecor_skylight_frosted.png" },
|
|
|
|
wield_image = "homedecor_skylight_frosted.png",
|
|
|
|
inventory_image = "homedecor_skylight_frosted_inv.png",
|
2022-02-07 14:18:17 +01:00
|
|
|
use_texture_alpha = "blend",
|
2022-11-30 23:48:28 +01:00
|
|
|
groups = { snappy = 3, dig_tree = 2, axey=5},
|
2024-03-01 00:49:24 +01:00
|
|
|
is_ground_content = false,
|
2022-11-30 23:48:28 +01:00
|
|
|
_mcl_hardness=1.6,
|
2015-08-16 19:58:35 +02:00
|
|
|
paramtype = "light",
|
2022-05-03 21:21:14 +02:00
|
|
|
_sound_def = {
|
|
|
|
key = "node_sound_glass_defaults",
|
|
|
|
},
|
2015-08-16 19:58:35 +02:00
|
|
|
selection_box = homedecor.nodebox.slab_y(0.1),
|
2022-08-19 20:15:47 +02:00
|
|
|
collision_box = homedecor.nodebox.slab_y(0.1),
|
2015-08-16 19:58:35 +02:00
|
|
|
})
|
|
|
|
|
2020-08-05 00:25:02 +02:00
|
|
|
for s, s_loc in pairs({ ["asphalt"] = S("asphalt"), ["terracotta"] = S("terracotta"), ["wood"] = S("wood") }) do
|
2019-04-20 21:49:36 +02:00
|
|
|
minetest.register_node(":homedecor:shingles_"..s, {
|
2020-08-05 00:25:02 +02:00
|
|
|
description = S("Shingles (@1)", s_loc),
|
2015-08-16 19:58:35 +02:00
|
|
|
drawtype = "raillike",
|
|
|
|
tiles = { "homedecor_shingles_"..s..".png" },
|
|
|
|
wield_image = "homedecor_shingles_"..s..".png",
|
|
|
|
inventory_image = "homedecor_shingles_"..s.."_inv.png",
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
2022-11-30 23:48:28 +01:00
|
|
|
groups = { snappy = 3, dig_tree = 2, axey=5},
|
2024-03-01 00:49:24 +01:00
|
|
|
is_ground_content = false,
|
2022-11-30 23:48:28 +01:00
|
|
|
_mcl_hardness=1.6,
|
2022-05-03 21:21:14 +02:00
|
|
|
_sound_def = {
|
|
|
|
key = "node_sound_wood_defaults",
|
|
|
|
},
|
2015-08-16 19:58:35 +02:00
|
|
|
selection_box = homedecor.nodebox.slab_y(0.1),
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2014-12-14 00:31:47 +01:00
|
|
|
local slope_cbox = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
|
|
|
|
{-0.5, -0.25, -0.25, 0.5, 0, 0.5},
|
|
|
|
{-0.5, 0, 0, 0.5, 0.25, 0.5},
|
|
|
|
{-0.5, 0.25, 0.25, 0.5, 0.5, 0.5}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
local ocorner_cbox = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
|
|
|
|
{-0.5, -0.25, -0.25, 0.25, 0, 0.5},
|
|
|
|
{-0.5, 0, 0, 0, 0.25, 0.5},
|
|
|
|
{-0.5, 0.25, 0.25, -0.25, 0.5, 0.5}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
local icorner_cbox = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5}, -- NodeBox5
|
|
|
|
{-0.5, -0.5, -0.25, 0.5, 0, 0.5}, -- NodeBox6
|
|
|
|
{-0.5, -0.5, -0.5, 0.25, 0, 0.5}, -- NodeBox7
|
|
|
|
{-0.5, 0, -0.5, 0, 0.25, 0.5}, -- NodeBox8
|
|
|
|
{-0.5, 0, 0, 0.5, 0.25, 0.5}, -- NodeBox9
|
|
|
|
{-0.5, 0.25, 0.25, 0.5, 0.5, 0.5}, -- NodeBox10
|
|
|
|
{-0.5, 0.25, -0.5, -0.25, 0.5, 0.5}, -- NodeBox11
|
|
|
|
}
|
|
|
|
}
|
2013-05-07 07:49:22 +02:00
|
|
|
|
2020-08-05 00:25:02 +02:00
|
|
|
homedecor_roofing.register_outer_corner = function(modname, subname, groups, slope_image, description)
|
2015-05-07 20:13:12 +02:00
|
|
|
local tiles = slope_image
|
|
|
|
|
|
|
|
if type(slope_image) ~= "table" then
|
|
|
|
tiles = { "homedecor_slope_outer_corner_"..slope_image..".png" }
|
|
|
|
end
|
2022-11-30 23:48:28 +01:00
|
|
|
groups.axey=5
|
2015-05-07 20:13:12 +02:00
|
|
|
|
2019-04-20 21:49:36 +02:00
|
|
|
minetest.register_node(":"..modname..":shingle_outer_corner_" .. subname, {
|
2017-01-24 21:43:20 +01:00
|
|
|
description = S("@1 (outer corner)", description),
|
2014-12-13 23:03:08 +01:00
|
|
|
drawtype = "mesh",
|
|
|
|
mesh = "homedecor_slope_outer_corner.obj",
|
2015-05-07 20:13:12 +02:00
|
|
|
tiles = tiles,
|
2015-04-30 00:24:47 +02:00
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
2014-12-14 00:31:47 +01:00
|
|
|
selection_box = ocorner_cbox,
|
|
|
|
collision_box = ocorner_cbox,
|
2013-05-07 07:49:22 +02:00
|
|
|
groups = groups,
|
2024-03-01 00:49:24 +01:00
|
|
|
is_ground_content = false,
|
2022-11-30 23:48:28 +01:00
|
|
|
_mcl_hardness=1.6,
|
2015-04-30 11:48:15 +02:00
|
|
|
on_place = minetest.rotate_node,
|
2022-05-03 21:21:14 +02:00
|
|
|
_sound_def = {
|
|
|
|
key = "node_sound_wood_defaults",
|
|
|
|
},
|
2013-05-07 07:49:22 +02:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2020-08-05 00:25:02 +02:00
|
|
|
homedecor_roofing.register_inner_corner = function(modname, subname, groups, slope_image, description)
|
2015-05-07 20:13:12 +02:00
|
|
|
local tiles = slope_image
|
|
|
|
|
|
|
|
if type(slope_image) ~= "table" then
|
|
|
|
tiles = { "homedecor_slope_outer_corner_"..slope_image..".png" }
|
|
|
|
end
|
2022-11-30 23:48:28 +01:00
|
|
|
groups.axey=5
|
2015-05-07 20:13:12 +02:00
|
|
|
|
2019-04-20 21:49:36 +02:00
|
|
|
minetest.register_node(":"..modname..":shingle_inner_corner_" .. subname, {
|
2017-01-24 21:43:20 +01:00
|
|
|
description = S("@1 (inner corner)", description),
|
2014-12-13 23:03:08 +01:00
|
|
|
drawtype = "mesh",
|
|
|
|
mesh = "homedecor_slope_inner_corner.obj",
|
2015-05-07 20:13:12 +02:00
|
|
|
tiles = tiles,
|
2015-04-30 00:24:47 +02:00
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
2014-12-14 00:31:47 +01:00
|
|
|
collision_box = icorner_cbox,
|
2013-05-07 07:49:22 +02:00
|
|
|
groups = groups,
|
2024-03-01 00:49:24 +01:00
|
|
|
is_ground_content = false,
|
2022-11-30 23:48:28 +01:00
|
|
|
_mcl_hardness=1.6,
|
2015-04-30 11:48:15 +02:00
|
|
|
on_place = minetest.rotate_node,
|
2022-05-03 21:21:14 +02:00
|
|
|
_sound_def = {
|
|
|
|
key = "node_sound_wood_defaults",
|
|
|
|
},
|
2013-05-07 07:49:22 +02:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2020-08-05 00:25:02 +02:00
|
|
|
homedecor_roofing.register_slope = function(modname, subname, recipeitem, groups, slope_image, description)
|
2015-05-07 20:13:12 +02:00
|
|
|
local tiles = slope_image
|
|
|
|
|
|
|
|
if type(slope_image) ~= "table" then
|
|
|
|
tiles = { "homedecor_slope_outer_corner_"..slope_image..".png" }
|
|
|
|
end
|
2022-11-30 23:48:28 +01:00
|
|
|
groups.axey=5
|
2015-05-07 20:13:12 +02:00
|
|
|
|
2019-04-20 21:49:36 +02:00
|
|
|
minetest.register_node(":"..modname..":shingle_side_" .. subname, {
|
2017-01-24 21:43:20 +01:00
|
|
|
description = description,
|
2014-12-13 23:03:08 +01:00
|
|
|
drawtype = "mesh",
|
|
|
|
mesh = "homedecor_slope.obj",
|
2015-05-07 20:13:12 +02:00
|
|
|
tiles = tiles,
|
2015-04-30 00:24:47 +02:00
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
2014-12-14 00:31:47 +01:00
|
|
|
selection_box = slope_cbox,
|
|
|
|
collision_box = slope_cbox,
|
2022-02-07 14:18:17 +01:00
|
|
|
use_texture_alpha = "blend",
|
2013-05-07 07:49:22 +02:00
|
|
|
groups = groups,
|
2024-03-01 00:49:24 +01:00
|
|
|
is_ground_content = false,
|
2022-11-30 23:48:28 +01:00
|
|
|
_mcl_hardness=1.6,
|
2015-04-30 11:48:15 +02:00
|
|
|
on_place = minetest.rotate_node,
|
2022-05-03 21:21:14 +02:00
|
|
|
_sound_def = {
|
|
|
|
key = "node_sound_wood_defaults",
|
|
|
|
},
|
2013-05-07 07:49:22 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
-- convert between flat shingles and slopes
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = modname..":shingle_side_"..subname.." 3",
|
|
|
|
recipe = {
|
|
|
|
{recipeitem, recipeitem, recipeitem}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = recipeitem.." 3",
|
|
|
|
recipe = {
|
|
|
|
{modname..":shingle_side_"..subname, modname..":shingle_side_"..subname, modname..":shingle_side_"..subname},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- craft outer corners
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = modname..":shingle_outer_corner_"..subname.." 3",
|
|
|
|
recipe = {
|
|
|
|
{ "", recipeitem, "" },
|
|
|
|
{ recipeitem, "", recipeitem }
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = modname..":shingle_outer_corner_"..subname.." 3",
|
|
|
|
recipe = {
|
2013-10-03 13:51:30 +02:00
|
|
|
{ "", modname..":shingle_side_"..subname, "" },
|
|
|
|
{ modname..":shingle_side_"..subname, "", modname..":shingle_side_"..subname },
|
2013-05-07 07:49:22 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- craft inner corners
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = modname..":shingle_inner_corner_"..subname.." 3",
|
|
|
|
recipe = {
|
|
|
|
{recipeitem, recipeitem},
|
|
|
|
{"", recipeitem}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = modname..":shingle_inner_corner_"..subname.." 3",
|
|
|
|
recipe = {
|
2013-10-03 13:51:30 +02:00
|
|
|
{modname..":shingle_side_"..subname, modname..":shingle_side_"..subname},
|
|
|
|
{"", modname..":shingle_side_"..subname}
|
2013-05-07 07:49:22 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
-- convert between flat shingles and inner/outer corners
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
2013-09-13 18:21:13 +02:00
|
|
|
output = recipeitem.." 1",
|
2013-05-07 07:49:22 +02:00
|
|
|
recipe = { modname..":shingle_outer_corner_"..subname }
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
2013-09-13 18:21:13 +02:00
|
|
|
output = recipeitem.." 1",
|
2013-05-07 07:49:22 +02:00
|
|
|
recipe = { modname..":shingle_inner_corner_"..subname }
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
2014-09-30 17:31:58 +02:00
|
|
|
output = "homedecor:shingle_side_glass",
|
|
|
|
recipe = {
|
|
|
|
{ "homedecor:skylight", "homedecor:skylight", "homedecor:skylight" }
|
|
|
|
}
|
2013-05-07 07:49:22 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
2014-09-30 17:31:58 +02:00
|
|
|
output = "homedecor:roof_tile_terracotta 8",
|
|
|
|
recipe = {
|
|
|
|
{ "homedecor:shingle_outer_corner_terracotta", "homedecor:shingle_outer_corner_terracotta" }
|
|
|
|
}
|
2013-05-07 07:49:22 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
2014-09-30 17:31:58 +02:00
|
|
|
output = "homedecor:roof_tile_terracotta 8",
|
|
|
|
recipe = {
|
|
|
|
{ "homedecor:shingle_inner_corner_terracotta", "homedecor:shingle_inner_corner_terracotta" }
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "homedecor:roof_tile_terracotta 8",
|
|
|
|
recipe = {
|
|
|
|
{ "homedecor:shingle_side_terracotta", "homedecor:shingle_side_terracotta" }
|
|
|
|
}
|
2013-05-07 07:49:22 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2015-01-23 22:14:00 +01:00
|
|
|
type = "fuel",
|
|
|
|
recipe = "homedecor:shingle_inner_corner_wood",
|
|
|
|
burntime = 30,
|
2013-05-07 07:49:22 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2015-01-23 22:14:00 +01:00
|
|
|
type = "fuel",
|
|
|
|
recipe = "homedecor:shingle_outer_corner_wood",
|
|
|
|
burntime = 30,
|
2013-05-07 07:49:22 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2015-01-23 22:14:00 +01:00
|
|
|
type = "fuel",
|
|
|
|
recipe = "homedecor:shingle_side_wood",
|
2013-05-07 07:49:22 +02:00
|
|
|
burntime = 30,
|
|
|
|
})
|
|
|
|
|
2020-08-05 00:25:02 +02:00
|
|
|
homedecor_roofing.register_roof = function(modname, subname, groups, slope_image , description)
|
|
|
|
homedecor_roofing.register_outer_corner(modname, subname, groups, slope_image, description)
|
|
|
|
homedecor_roofing.register_inner_corner(modname, subname, groups, slope_image, description)
|
2013-05-07 07:49:22 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
-- corners
|
|
|
|
|
2020-08-05 00:25:02 +02:00
|
|
|
homedecor_roofing.register_roof("homedecor", "wood",
|
2022-05-03 21:21:14 +02:00
|
|
|
{ snappy = 3, dig_tree = 2 },
|
2015-05-07 20:13:12 +02:00
|
|
|
{ "homedecor_shingles_wood.png" },
|
2017-01-24 21:43:20 +01:00
|
|
|
S("Wood Shingles")
|
2013-05-07 07:49:22 +02:00
|
|
|
)
|
|
|
|
|
2020-08-05 00:25:02 +02:00
|
|
|
homedecor_roofing.register_roof("homedecor", "asphalt",
|
2022-05-03 21:21:14 +02:00
|
|
|
{ snappy = 3, dig_tree = 2 },
|
2015-05-07 20:13:12 +02:00
|
|
|
{ "homedecor_shingles_asphalt.png" },
|
2017-01-24 21:43:20 +01:00
|
|
|
S("Asphalt Shingles")
|
2013-05-07 07:49:22 +02:00
|
|
|
)
|
|
|
|
|
2020-08-05 00:25:02 +02:00
|
|
|
homedecor_roofing.register_roof("homedecor", "terracotta",
|
2022-05-03 21:21:14 +02:00
|
|
|
{ snappy = 3, dig_tree = 2 },
|
2015-05-07 20:13:12 +02:00
|
|
|
{ "homedecor_shingles_terracotta.png" },
|
2017-01-24 21:43:20 +01:00
|
|
|
S("Terracotta Shingles")
|
2013-05-07 07:49:22 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
-- register just the slopes
|
|
|
|
|
2020-08-05 00:25:02 +02:00
|
|
|
homedecor_roofing.register_slope("homedecor", "wood",
|
2013-09-13 18:21:13 +02:00
|
|
|
"homedecor:shingles_wood",
|
2022-05-03 21:21:14 +02:00
|
|
|
{ snappy = 3, dig_tree = 2 },
|
2015-05-07 20:13:12 +02:00
|
|
|
{ "homedecor_shingles_wood.png" },
|
2017-01-24 21:43:20 +01:00
|
|
|
S("Wood Shingles")
|
2013-05-07 07:49:22 +02:00
|
|
|
)
|
|
|
|
|
2020-08-05 00:25:02 +02:00
|
|
|
homedecor_roofing.register_slope("homedecor", "asphalt",
|
2013-09-13 18:21:13 +02:00
|
|
|
"homedecor:shingles_asphalt",
|
2022-05-03 21:21:14 +02:00
|
|
|
{ snappy = 3, dig_tree = 2 },
|
2015-05-07 20:13:12 +02:00
|
|
|
{ "homedecor_shingles_asphalt.png" },
|
2017-01-24 21:43:20 +01:00
|
|
|
S("Asphalt Shingles")
|
2013-05-07 07:49:22 +02:00
|
|
|
)
|
|
|
|
|
2020-08-05 00:25:02 +02:00
|
|
|
homedecor_roofing.register_slope("homedecor", "terracotta",
|
2013-09-13 18:21:13 +02:00
|
|
|
"homedecor:shingles_terracotta",
|
2022-05-03 21:21:14 +02:00
|
|
|
{ snappy = 3, dig_tree = 2 },
|
2015-05-07 20:13:12 +02:00
|
|
|
{ "homedecor_shingles_terracotta.png" },
|
2017-01-24 21:43:20 +01:00
|
|
|
S("Terracotta Shingles")
|
2013-05-07 07:49:22 +02:00
|
|
|
)
|
|
|
|
|
2020-08-05 00:25:02 +02:00
|
|
|
homedecor_roofing.register_slope("homedecor", "glass",
|
2014-09-19 09:31:49 +02:00
|
|
|
"homedecor:shingles_glass",
|
2022-05-03 21:21:14 +02:00
|
|
|
{ snappy = 3, dig_tree = 2 },
|
2015-05-07 20:13:12 +02:00
|
|
|
{ "homedecor_shingles_glass.png", "homedecor_shingles_wood.png" },
|
2017-01-24 21:43:20 +01:00
|
|
|
S("Glass Shingles")
|
2014-09-19 09:31:49 +02:00
|
|
|
)
|
2015-05-07 20:13:12 +02:00
|
|
|
|
2024-03-03 21:52:58 +01:00
|
|
|
local brick_tex = homedecor.textures.brick
|
2015-08-16 19:58:35 +02:00
|
|
|
|
|
|
|
homedecor.register("chimney", {
|
2017-01-24 21:43:20 +01:00
|
|
|
description = S("Chimney"),
|
2015-08-16 19:58:35 +02:00
|
|
|
mesh = "homedecor_chimney.obj",
|
|
|
|
tiles = {
|
|
|
|
"homedecor_chimney_tb.png",
|
2022-05-03 21:21:14 +02:00
|
|
|
brick_tex
|
2015-08-16 19:58:35 +02:00
|
|
|
},
|
|
|
|
selection_box = homedecor.nodebox.bar_y(0.25),
|
2022-05-03 21:21:14 +02:00
|
|
|
groups = {cracky=3, dig_tree = 2},
|
|
|
|
_sound_def = {
|
|
|
|
key = "node_sound_stone_defaults",
|
|
|
|
},
|
2015-08-16 19:58:35 +02:00
|
|
|
})
|
2019-04-20 21:49:36 +02:00
|
|
|
|
|
|
|
-- crafting
|
2022-05-03 21:21:14 +02:00
|
|
|
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" },
|
|
|
|
},
|
|
|
|
})
|
2019-04-20 21:49:36 +02:00
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "homedecor:skylight 4",
|
|
|
|
recipe = {
|
|
|
|
{ "homedecor:glass_table_large", "homedecor:glass_table_large" },
|
|
|
|
{ "homedecor:glass_table_large", "homedecor:glass_table_large" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "homedecor:skylight_frosted",
|
|
|
|
recipe = {
|
|
|
|
"dye:white",
|
|
|
|
"homedecor:skylight"
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "homedecor:skylight",
|
|
|
|
recipe = "homedecor:skylight_frosted",
|
|
|
|
})
|
|
|
|
|
|
|
|
-- recycling
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = "vessels:glass_fragments 2",
|
|
|
|
recipe = {
|
|
|
|
"homedecor:skylight",
|
|
|
|
"homedecor:skylight",
|
|
|
|
"homedecor:skylight",
|
|
|
|
"homedecor:skylight",
|
|
|
|
"homedecor:skylight",
|
|
|
|
"homedecor:skylight"
|
|
|
|
}
|
|
|
|
})
|