forked from nalc/homedecor_modpack
Add plasma lamp
This commit is contained in:
parent
1d01973121
commit
57ecac2baa
@ -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
|
||||
|
||||
|
||||
|
@ -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
|
||||
})
|
||||
|
||||
|
BIN
homedecor/textures/homedecor_glass_face_clean.png
Normal file
BIN
homedecor/textures/homedecor_glass_face_clean.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 926 B |
BIN
homedecor/textures/homedecor_gold_block.png
Normal file
BIN
homedecor/textures/homedecor_gold_block.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 906 B |
BIN
homedecor/textures/homedecor_plasma_storm.png
Normal file
BIN
homedecor/textures/homedecor_plasma_storm.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 219 KiB |
Loading…
Reference in New Issue
Block a user