diff --git a/homedecor/crafts.lua b/homedecor/crafts.lua index 5e591abb..0b006241 100644 --- a/homedecor/crafts.lua +++ b/homedecor/crafts.lua @@ -1193,7 +1193,7 @@ minetest.register_craft({ } }) --- Lighting +------- Lighting -- candles @@ -1214,7 +1214,25 @@ minetest.register_craft({ } }) --- yellow +-- wood-lattice lamps + +minetest.register_craft( { + output = "homedecor:lattice_lantern_large 2", + recipe = { + { "dye:black", "dye:yellow", "dye:black" }, + { "group:stick", "building_blocks:woodglass", "group:stick" }, + { "group:stick", "homedecor:power_crystal", "group:stick" } + }, +}) + +minetest.register_craft( { + output = "homedecor:lattice_lantern_small 8", + recipe = { + { "homedecor:lattice_lantern_large" }, + }, +}) + +-- yellow glowlights minetest.register_craft({ output = "homedecor:glowlight_half_yellow 6", diff --git a/homedecor/lighting.lua b/homedecor/lighting.lua index 54ed039c..9d03e50d 100644 --- a/homedecor/lighting.lua +++ b/homedecor/lighting.lua @@ -319,3 +319,40 @@ minetest.register_node('homedecor:oil_lamp', { sounds = default.node_sound_wood_defaults(), }) +minetest.register_node('homedecor:lattice_lantern_large', { + description = S("Lattice lantern (large)"), + tiles = { 'homedecor_lattice_lantern_large.png' }, + sunlight_propagates = false, + paramtype = "light", + walkable = true, + groups = { snappy = 3 }, + light_source = LIGHT_MAX, + sounds = default.node_sound_wood_defaults(), +}) + +minetest.register_node('homedecor:lattice_lantern_small', { + description = S("Lattice lantern (small)"), + drawtype = "nodebox", + tiles = { + 'homedecor_lattice_lantern_small_tb.png', + 'homedecor_lattice_lantern_small_tb.png', + 'homedecor_lattice_lantern_small_sides.png' + }, + selection_box = { + type = "fixed", + fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 } + }, + node_box = { + type = "fixed", + fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 } + }, + sunlight_propagates = false, + paramtype = "light", + paramtype2 = "facedir", + walkable = true, + groups = { snappy = 3 }, + light_source = LIGHT_MAX-1, + sounds = default.node_sound_wood_defaults(), + on_place = minetest.rotate_node +}) + diff --git a/homedecor/textures/homedecor_lattice_lantern_large.png b/homedecor/textures/homedecor_lattice_lantern_large.png new file mode 100644 index 00000000..c5a8b608 Binary files /dev/null and b/homedecor/textures/homedecor_lattice_lantern_large.png differ diff --git a/homedecor/textures/homedecor_lattice_lantern_small_sides.png b/homedecor/textures/homedecor_lattice_lantern_small_sides.png new file mode 100644 index 00000000..4e6f4f6d Binary files /dev/null and b/homedecor/textures/homedecor_lattice_lantern_small_sides.png differ diff --git a/homedecor/textures/homedecor_lattice_lantern_small_tb.png b/homedecor/textures/homedecor_lattice_lantern_small_tb.png new file mode 100644 index 00000000..e75ed5f9 Binary files /dev/null and b/homedecor/textures/homedecor_lattice_lantern_small_tb.png differ