minetest-mm/mods/roads/infrastructure/advanced_aircraft_warning_light.lua

57 lines
2 KiB
Lua
Raw Normal View History

2020-10-26 17:38:53 +01:00
-- Aircraft warning light
minetest.register_node("infrastructure:aircraft_warning_light", {
description = "Aircraft warning light",
tiles = {
{name="infrastructure_aircraft_warning_light_top_anim.png",animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=4}},
"infrastructure_traffic_lights_side.png",
{name="infrastructure_aircraft_warning_light_side_anim.png",animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=4}},
{name="infrastructure_aircraft_warning_light_side_anim.png",animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=4}},
{name="infrastructure_aircraft_warning_light_side_anim.png",animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=4}},
{name="infrastructure_aircraft_warning_light_side_anim.png",animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=4}}
},
2024-12-19 12:55:40 +01:00
use_texture_alpha = "clip",
2020-10-26 17:38:53 +01:00
drawtype = "nodebox",
paramtype = "light",
groups = {cracky = 1},
light_source = AIRCRAFT_WARNING_LIGHT_LIGHT_RANGE,
node_box = {
type = "fixed",
fixed = {
{-1/128, 1/4, -1/128, 1/128, 3/8, 1/128},
{-1/4, -1/8, 0, 1/4, 1/4, 0},
{0, -1/8, -1/4, 0, 1/4, 1/4},
{-1/16, -1/8, -1/16, 1/16, 1/16, 1/16},
{-1/4, -1/4, -1/8, 1/4, -1/8, 1/8},
{-1/8, -1/4, -1/4, 1/8, -1/8, 1/4},
{-1/8, -3/8, -1/8, 1/8, -1/4, 1/8},
{-3/16, -1/2, -3/16, 3/16, -3/8, 3/16}
}
},
selection_box = {
type = "fixed",
fixed = {
{-1/128, 1/4, -1/128, 1/128, 3/8, 1/128},
{-1/4, -1/8, 0, 1/4, 1/4, 0},
{0, -1/8, -1/4, 0, 1/4, 1/4},
{-1/16, -1/8, -1/16, 1/16, 1/16, 1/16},
{-1/4, -1/4, -1/8, 1/4, -1/8, 1/8},
{-1/8, -1/4, -1/4, 1/8, -1/8, 1/4},
{-1/8, -3/8, -1/8, 1/8, -1/4, 1/8},
{-3/16, -1/2, -3/16, 3/16, -3/8, 3/16}
}
}
})
minetest.register_alias("infrastructure:aircraft_warning_light_bright", "infrastructure:aircraft_warning_light")
minetest.register_alias("infrastructure:aircraft_warning_light_dark", "infrastructure:aircraft_warning_light")