1
0
mirror of https://github.com/D00Med/scifi_nodes.git synced 2024-12-22 16:10:18 +01:00

Merge pull request #50 from D00Med/animated_lightbar

add animated lightbar
This commit is contained in:
D00Med 2021-01-28 07:28:10 +10:00 committed by GitHub
commit aecd323b93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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