diff --git a/crafts.lua b/crafts.lua index 734b2b23..dbf11a43 100644 --- a/crafts.lua +++ b/crafts.lua @@ -1109,6 +1109,22 @@ minetest.register_craft({ } }) +minetest.register_craft({ + type = "shapeless", + output = "homedecor:glowlight_small_cube_yellow_ceiling", + recipe = { + "homedecor:glowlight_small_cube_yellow", + } +}) + +minetest.register_craft({ + type = "shapeless", + output = "homedecor:glowlight_small_cube_yellow", + recipe = { + "homedecor:glowlight_small_cube_yellow_ceiling", + } +}) + -- white minetest.register_craft({ @@ -1144,6 +1160,22 @@ minetest.register_craft({ } }) +minetest.register_craft({ + type = "shapeless", + output = "homedecor:glowlight_small_cube_white_ceiling", + recipe = { + "homedecor:glowlight_small_cube_white", + } +}) + +minetest.register_craft({ + type = "shapeless", + output = "homedecor:glowlight_small_cube_white", + recipe = { + "homedecor:glowlight_small_cube_white_ceiling", + } +}) + -- Fences and gates minetest.register_craft( { diff --git a/lighting.lua b/lighting.lua index 2c26c50d..fa8997f9 100644 --- a/lighting.lua +++ b/lighting.lua @@ -87,6 +87,34 @@ minetest.register_node('homedecor:glowlight_small_cube_yellow', { sounds = default.node_sound_leaves_defaults(), }) +minetest.register_node('homedecor:glowlight_small_cube_yellow_ceiling', { + description = "Yellow Glowlight (small cube, on ceiling)", + drawtype = "nodebox", + tiles = { + 'homedecor_glowlight_cube_yellow_tb.png', + 'homedecor_glowlight_cube_yellow_tb.png', + 'homedecor_glowlight_cube_yellow_sides_ceiling.png', + 'homedecor_glowlight_cube_yellow_sides_ceiling.png', + 'homedecor_glowlight_cube_yellow_sides_ceiling.png', + 'homedecor_glowlight_cube_yellow_sides_ceiling.png' + }, + selection_box = { + type = "fixed", + fixed = { -0.25, 0, -0.25, 0.25, 0.5, 0.25 } + }, + node_box = { + type = "fixed", + fixed = { -0.25, 0, -0.25, 0.25, 0.5, 0.25 } + }, + + sunlight_propagates = false, + paramtype = "light", + walkable = true, + groups = { snappy = 3 }, + light_source = LIGHT_MAX-1, + sounds = default.node_sound_leaves_defaults(), +}) + -- White minetest.register_node('homedecor:glowlight_thick_white', { @@ -172,3 +200,31 @@ minetest.register_node('homedecor:glowlight_small_cube_white', { light_source = LIGHT_MAX-1, sounds = default.node_sound_leaves_defaults(), }) + +minetest.register_node('homedecor:glowlight_small_cube_white_ceiling', { + description = "White Glowlight (small cube, on ceiling)", + drawtype = "nodebox", + tiles = { + 'homedecor_glowlight_cube_white_tb.png', + 'homedecor_glowlight_cube_white_tb.png', + 'homedecor_glowlight_cube_white_sides_ceiling.png', + 'homedecor_glowlight_cube_white_sides_ceiling.png', + 'homedecor_glowlight_cube_white_sides_ceiling.png', + 'homedecor_glowlight_cube_white_sides_ceiling.png' + }, + selection_box = { + type = "fixed", + fixed = { -0.25, 0, -0.25, 0.25, 0.5, 0.25 } + }, + node_box = { + type = "fixed", + fixed = { -0.25, 0, -0.25, 0.25, 0.5, 0.25 } + }, + + sunlight_propagates = false, + paramtype = "light", + walkable = true, + groups = { snappy = 3 }, + light_source = LIGHT_MAX-1, + sounds = default.node_sound_leaves_defaults(), +}) diff --git a/textures/homedecor_glowlight_cube_white_sides_ceiling.png b/textures/homedecor_glowlight_cube_white_sides_ceiling.png new file mode 100644 index 00000000..6b9b6a5b Binary files /dev/null and b/textures/homedecor_glowlight_cube_white_sides_ceiling.png differ diff --git a/textures/homedecor_glowlight_cube_yellow_sides_ceiling.png b/textures/homedecor_glowlight_cube_yellow_sides_ceiling.png new file mode 100644 index 00000000..8d4e6410 Binary files /dev/null and b/textures/homedecor_glowlight_cube_yellow_sides_ceiling.png differ