diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2016-04-01 20:02:19 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2016-04-01 21:09:33 -0400 |
commit | da66780a569712c23ae4f2996cfb4608a9f9d69d (patch) | |
tree | 217556029a78bc23ad4564720afc86de97228a04 /streets/infrastructure/advanced_warning_light.lua | |
parent | 615b22df4d423aded3613db7716943a2f389b047 (diff) | |
download | dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar.gz dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar.bz2 dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar.xz dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.zip |
copy all standard Dreambuilder mods in from the old subgame
(exactly as last supplied there, updates to these mods will follow later)
Diffstat (limited to 'streets/infrastructure/advanced_warning_light.lua')
-rw-r--r-- | streets/infrastructure/advanced_warning_light.lua | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/streets/infrastructure/advanced_warning_light.lua b/streets/infrastructure/advanced_warning_light.lua new file mode 100644 index 0000000..0ed5b62 --- /dev/null +++ b/streets/infrastructure/advanced_warning_light.lua @@ -0,0 +1,47 @@ +-- Warning light + +minetest.register_node("infrastructure:warning_light", { + description = "Warning light", + tiles = { + "infrastructure_warning_light_top.png", + "infrastructure_warning_light_bottom.png", + "infrastructure_warning_light_right.png", + "infrastructure_warning_light_left.png", + "infrastructure_warning_light_back.png", + {name="infrastructure_warning_light_front_anim.png",animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=3}}, + }, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + groups = {cracky = 1}, + light_source = WARNING_LIGHT_LIGHT_RANGE, + node_box = { + type = "fixed", + fixed = { + {-5/16, -3/8, 0, 5/16, 0, 0}, + + {-1/4, -5/16, 0, 0, -1/16, 1/8}, + + {1/16, -1/2, -1/8, 5/16, -1/4, 1/8}, + + {-1/16, -1/2, -1/16, 1/16, -3/8, 1/16} + } + }, + selection_box = { + type = "fixed", + fixed = { + {-5/16, -3/8, 0, 5/16, 0, 0}, + + {-1/4, -5/16, 0 + 0.01, 0, -1/16, 1/8}, + + {1/16, -1/2, -1/8, 5/16, -1/4, 1/8}, + + {-1/16, -1/2, -1/16, 1/16, -3/8, 1/16} + } + } +}) + + + +minetest.register_alias("infrastructure:warning_light_bright", "infrastructure:warning_light") +minetest.register_alias("infrastructure:warning_light_dark", "infrastructure:warning_light") |