diff --git a/crafts.lua b/crafts.lua index ab879b00..918f7997 100644 --- a/crafts.lua +++ b/crafts.lua @@ -1109,4 +1109,11 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = "homedecor:glowlight_small_cube 8", + recipe = { + {"default:stick" }, + {"moreblocks:superglowglass" }, + } +}) diff --git a/init.lua b/init.lua index e5fd9df1..c400c0bc 100644 --- a/init.lua +++ b/init.lua @@ -952,6 +952,33 @@ minetest.register_node('homedecor:glowlight_thin', { sounds = default.node_sound_leaves_defaults(), }) +minetest.register_node('homedecor:glowlight_small_cube', { + description = "Glowlight (small cube)", + drawtype = "nodebox", + tiles = {'homedecor_glowlight_cube_tb.png', + 'homedecor_glowlight_cube_tb.png', + 'homedecor_glowlight_cube_sides.png', + 'homedecor_glowlight_cube_sides.png', + 'homedecor_glowlight_cube_sides.png', + 'homedecor_glowlight_cube_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", + walkable = true, + groups = { snappy = 3 }, + light_source = LIGHT_MAX-1, + sounds = default.node_sound_leaves_defaults(), +}) + -- local curtaincolors = { diff --git a/textures/homedecor_glowlight_cube_sides.png b/textures/homedecor_glowlight_cube_sides.png new file mode 100644 index 00000000..f71edb41 Binary files /dev/null and b/textures/homedecor_glowlight_cube_sides.png differ diff --git a/textures/homedecor_glowlight_cube_tb.png b/textures/homedecor_glowlight_cube_tb.png new file mode 100644 index 00000000..7adb3635 Binary files /dev/null and b/textures/homedecor_glowlight_cube_tb.png differ