add animated lightbar

This commit is contained in:
BuckarooBanzay 2021-01-26 20:15:20 +01:00
parent 2e035f37e9
commit 317fdd6df6
3 changed files with 27 additions and 0 deletions

View File

@ -767,6 +767,16 @@ minetest.register_craft({
}
})
-- 4 green light bar from 4 green metal, 2 green dye, 1 lightbar
minetest.register_craft({
output = "scifi_nodes:greenbar_animated 4",
recipe = {
{"scifi_nodes:greenbar", "", "scifi_nodes:greenbar"},
{"", "mesecons:wire_00000000_off", ""},
{"scifi_nodes:greenbar", "", "scifi_nodes:greenbar"}
}
})
-- 4 green metal block from 4 green metal
minetest.register_craft({
output = "scifi_nodes:green_square 4",

View File

@ -182,6 +182,23 @@ minetest.register_node("scifi_nodes:disc", {
groups = {cracky=1}
})
minetest.register_node("scifi_nodes:greenbar_animated", {
description = "animated green light bar",
sunlight_propagates = false,
tiles = {
"scifi_nodes_greenbar.png",
"scifi_nodes_greenbar.png", {
name="scifi_nodes_greenbar_animated.png",
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=1.00},
}
},
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky=1},
light_source = 10,
sounds = default.node_sound_glass_defaults(),
on_place = minetest.rotate_node
})
minetest.register_node("scifi_nodes:blink", {
description = "blinking light",

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 B