Add plasma lamp

This commit is contained in:
Vanessa Ezekowitz 2014-06-29 12:49:35 -04:00
parent 1d01973121
commit 57ecac2baa
5 changed files with 30 additions and 0 deletions

View File

@ -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 -- Brass/wrought iron fences

View File

@ -247,3 +247,24 @@ minetest.register_node('homedecor:glowlight_small_cube_white', {
on_place = minetest.rotate_node 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
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 926 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 906 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 KiB