diff --git a/homedecor/crafts.lua b/homedecor/crafts.lua index 5ea4f2aa..3775c057 100644 --- a/homedecor/crafts.lua +++ b/homedecor/crafts.lua @@ -1136,6 +1136,15 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = "homedecor:plasma_lamp", + recipe = { + {"", "default:glass", ""}, + {"default:glass", "homedecor:power_crystal", "default:glass"}, + {"", "default:glass", ""} + } +}) + -- Brass/wrought iron fences diff --git a/homedecor/lighting.lua b/homedecor/lighting.lua index 34d810c4..06ade1da 100644 --- a/homedecor/lighting.lua +++ b/homedecor/lighting.lua @@ -247,3 +247,24 @@ minetest.register_node('homedecor:glowlight_small_cube_white', { on_place = minetest.rotate_node }) +minetest.register_node("homedecor:plasma_lamp", { + description = "Plasma Lamp", + drawtype = "glasslike_framed", + tiles = {"homedecor_gold_block.png","homedecor_glass_face_clean.png"}, + special_tiles = { + { + name="homedecor_plasma_storm.png", + animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.0}, + } + }, +-- use_texture_alpha = true, + paramtype = "light", + light_source = LIGHT_MAX - 1, + sunlight_propagates = true, + groups = {cracky=3,oddly_breakable_by_hand=3}, + sounds = default.node_sound_glass_defaults(), + after_place_node = function(pos, placer, itemstack, pointed_thing) + minetest.swap_node(pos, {name = "homedecor:plasma_lamp", param2 = 255}) + end +}) + diff --git a/homedecor/textures/homedecor_glass_face_clean.png b/homedecor/textures/homedecor_glass_face_clean.png new file mode 100644 index 00000000..385d6d27 Binary files /dev/null and b/homedecor/textures/homedecor_glass_face_clean.png differ diff --git a/homedecor/textures/homedecor_gold_block.png b/homedecor/textures/homedecor_gold_block.png new file mode 100644 index 00000000..dee4cdbe Binary files /dev/null and b/homedecor/textures/homedecor_gold_block.png differ diff --git a/homedecor/textures/homedecor_plasma_storm.png b/homedecor/textures/homedecor_plasma_storm.png new file mode 100644 index 00000000..ac297360 Binary files /dev/null and b/homedecor/textures/homedecor_plasma_storm.png differ