diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2016-04-01 21:00:20 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2016-04-01 21:10:04 -0400 |
commit | 888b0ebfec8c2eff9015163549a7e47443cb8665 (patch) | |
tree | 915080159bfaa6ba6e226087c7ce0e8d5464b518 /streets/infrastructure/advanced_crosswalk_warning_light.lua | |
parent | da66780a569712c23ae4f2996cfb4608a9f9d69d (diff) | |
download | dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.tar dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.tar.gz dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.tar.bz2 dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.tar.xz dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.zip |
"explode" all modpacks into their individual components
(you can't have a modpack buried inside a modpack)
Diffstat (limited to 'streets/infrastructure/advanced_crosswalk_warning_light.lua')
-rw-r--r-- | streets/infrastructure/advanced_crosswalk_warning_light.lua | 124 |
1 files changed, 0 insertions, 124 deletions
diff --git a/streets/infrastructure/advanced_crosswalk_warning_light.lua b/streets/infrastructure/advanced_crosswalk_warning_light.lua deleted file mode 100644 index 213223a..0000000 --- a/streets/infrastructure/advanced_crosswalk_warning_light.lua +++ /dev/null @@ -1,124 +0,0 @@ --- Crosswalk warning light -function on_off_light(pos, node) - if node.name == "infrastructure:crosswalk_warning_light_off" then - minetest.swap_node(pos, {name = "infrastructure:crosswalk_warning_light_on", param2 = node.param2}) - elseif (node.name == "infrastructure:crosswalk_warning_light_on") then - minetest.swap_node(pos, {name = "infrastructure:crosswalk_warning_light_off", param2 = node.param2}) - end -end - -minetest.register_node("infrastructure:crosswalk_warning_light_off", { - description = "Crosswalk warning light", - inventory_image = "infrastructure_crosswalk_warning_light_front_bright.png", - wield_image = "infrastructure_crosswalk_warning_light_front_bright.png", - tiles = { - "infrastructure_traffic_lights_side.png", - "infrastructure_traffic_lights_side.png", - "infrastructure_traffic_lights_side.png", - "infrastructure_traffic_lights_side.png", - "infrastructure_crosswalk_warning_light_back.png", - "infrastructure_crosswalk_warning_light_front_dark.png" - }, - drawtype = "nodebox", - paramtype = "light", - paramtype2 = "facedir", - groups = {cracky = 3, not_in_creative_inventory = 0}, - node_box = { - type = "fixed", - fixed = { - {-5/16, -5/16, -1/8, 5/16, 3/8, 1/8}, - {-1/2, -1/2, -1/8, 1/2, 1/2, -1/8}, - - {-5/16, 1/4, -5/16, 5/16, 5/16, -1/8}, - {-5/16, 0, -1/4, -1/4, 1/4, -1/8}, - {1/4, 0, -1/4, 5/16, 1/4, -1/8}, - - {-1/16, -1/4, 1/8, 1/16, 1/4, 3/8}, - {-1/4, -1/16, 1/8, 1/4, 1/16, 3/8}, - {-1/4, -1/4, 3/8, 1/4, 1/4, 1/2 - 0.001} - } - }, - selection_box = { - type = "fixed", - fixed = { - {-5/16, -5/16, -1/8, 5/16, 3/8, 1/8}, - - {-5/16, 1/4, -5/16, 5/16, 5/16, -1/8}, - {-5/16, 0, -1/4, -1/4, 1/4, -1/8}, - {1/4, 0, -1/4, 5/16, 1/4, -1/8}, - - {-1/16, -1/4, 1/8, 1/16, 1/4, 3/8}, - {-1/4, -1/16, 1/8, 1/4, 1/16, 3/8}, - {-1/4, -1/4, 3/8, 1/4, 1/4, 1/2 - 0.01} - } - }, - - on_punch = function(pos, node) - on_off_light(pos, node) - end, - - mesecons = {effector = { - action_on = function(pos, node) - on_off_light(pos, node) - end, - }} -}) - -minetest.register_node("infrastructure:crosswalk_warning_light_on", { - tiles = { - "infrastructure_traffic_lights_side.png", - "infrastructure_traffic_lights_side.png", - "infrastructure_traffic_lights_side.png", - "infrastructure_traffic_lights_side.png", - "infrastructure_crosswalk_warning_light_back.png", - {name="infrastructure_crosswalk_warning_light_front_anim.png",animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=1.5}} - }, - drawtype = "nodebox", - paramtype = "light", - paramtype2 = "facedir", - groups = {cracky = 3, not_in_creative_inventory = 1}, - drop = "infrastructure:crosswalk_warning_light_off", - node_box = { - type = "fixed", - fixed = { - {-5/16, -5/16, -1/8, 5/16, 3/8, 1/8}, - {-1/2, -1/2, -1/8, 1/2, 1/2, -1/8}, - - {-5/16, 1/4, -5/16, 5/16, 5/16, -1/8}, - {-5/16, 0, -1/4, -1/4, 1/4, -1/8}, - {1/4, 0, -1/4, 5/16, 1/4, -1/8}, - - {-1/16, -1/4, 1/8, 1/16, 1/4, 3/8}, - {-1/4, -1/16, 1/8, 1/4, 1/16, 3/8}, - {-1/4, -1/4, 3/8, 1/4, 1/4, 1/2 - 0.001} - } - }, - selection_box = { - type = "fixed", - fixed = { - {-5/16, -5/16, -1/8, 5/16, 3/8, 1/8}, - - {-5/16, 1/4, -5/16, 5/16, 5/16, -1/8}, - {-5/16, 0, -1/4, -1/4, 1/4, -1/8}, - {1/4, 0, -1/4, 5/16, 1/4, -1/8}, - - {-1/16, -1/4, 1/8, 1/16, 1/4, 3/8}, - {-1/4, -1/16, 1/8, 1/4, 1/16, 3/8}, - {-1/4, -1/4, 3/8, 1/4, 1/4, 1/2 - 0.01} - } - }, - - on_punch = function(pos, node) - on_off_light(pos, node) - end, - - mesecons = {effector = { - action_on = function(pos, node) - on_off_light(pos, node) - end, - }} -}) - -minetest.register_alias("infrastructure:crosswalk_warning_light", "infrastructure:crosswalk_warning_light_off") -minetest.register_alias("infrastructure:crosswalk_warning_bright", "infrastructure:crosswalk_warning_light_on") -minetest.register_alias("infrastructure:crosswalk_warning_dark", "infrastructure:crosswalk_warning_light_on") |