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:
commit
aecd323b93
10
crafts.lua
10
crafts.lua
@ -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
|
-- 4 green metal block from 4 green metal
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "scifi_nodes:green_square 4",
|
output = "scifi_nodes:green_square 4",
|
||||||
|
17
nodes.lua
17
nodes.lua
@ -182,6 +182,23 @@ minetest.register_node("scifi_nodes:disc", {
|
|||||||
groups = {cracky=1}
|
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", {
|
minetest.register_node("scifi_nodes:blink", {
|
||||||
description = "blinking light",
|
description = "blinking light",
|
||||||
|
BIN
textures/scifi_nodes_greenbar_animated.png
Normal file
BIN
textures/scifi_nodes_greenbar_animated.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 278 B |
Loading…
Reference in New Issue
Block a user