summaryrefslogtreecommitdiff
path: root/streets/infrastructure/advanced_crosswalk_lighting.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-04-01 21:00:20 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-04-01 21:10:04 -0400
commit888b0ebfec8c2eff9015163549a7e47443cb8665 (patch)
tree915080159bfaa6ba6e226087c7ce0e8d5464b518 /streets/infrastructure/advanced_crosswalk_lighting.lua
parentda66780a569712c23ae4f2996cfb4608a9f9d69d (diff)
downloaddreambuilder_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_lighting.lua')
-rw-r--r--streets/infrastructure/advanced_crosswalk_lighting.lua85
1 files changed, 0 insertions, 85 deletions
diff --git a/streets/infrastructure/advanced_crosswalk_lighting.lua b/streets/infrastructure/advanced_crosswalk_lighting.lua
deleted file mode 100644
index 4e669c1..0000000
--- a/streets/infrastructure/advanced_crosswalk_lighting.lua
+++ /dev/null
@@ -1,85 +0,0 @@
--- Crosswalk lighting
- minetest.register_node("infrastructure:crosswalk_lighting_dark", {
- description = "Crosswalk lighting",
- tiles = {
- "infrastructure_traffic_lights_side.png",
- "infrastructure_crosswalk_lighting_bottom.png",
- "infrastructure_traffic_lights_side.png",
- "infrastructure_traffic_lights_side.png",
- "infrastructure_crosswalk_lighting_back.png",
- "infrastructure_crosswalk_lighting_front.png"
- },
- drawtype = "nodebox",
- paramtype = "light",
- paramtype2 = "facedir",
- groups = {cracky = 3},
- node_box = {
- type = "fixed",
- fixed = {
- {-3/8, -1/2, -1/4, 3/8, 1/2, -3/16},
- {-3/8, -1/2, 3/16, 3/8, 1/2, 1/4},
- {-1/4, 1/4, -3/16, -1/8, 3/8, 3/16},
- {1/8, 1/4, -3/16, 1/4, 3/8, 3/16},
- {-1/8, -1/2, -3/16, 1/8, -1/4, 3/16},
- {-1/2, -1/2, -1/8, 1/2, -3/8, 1/8},
- }
- },
- selection_box = {
- type = "fixed",
- fixed = {-3/8, -1/2, -1/4, 3/8, 1/2, 1/4}
- },
-
- on_punch = function(pos, node)
- minetest.swap_node(pos, {name = "infrastructure:crosswalk_lighting_bright", param2 = node.param2})
- end,
-
- mesecons = {effector = {
- action_on = function (pos, node)
- minetest.swap_node(pos, {name = "infrastructure:crosswalk_lighting_bright", param2 = node.param2})
- end,
- }}
- })
-
- minetest.register_node("infrastructure:crosswalk_lighting_bright", {
- tiles = {
- "infrastructure_traffic_lights_side.png",
- "infrastructure_crosswalk_lighting_bottom.png",
- "infrastructure_traffic_lights_side.png",
- "infrastructure_traffic_lights_side.png",
- "infrastructure_crosswalk_lighting_back.png",
- "infrastructure_crosswalk_lighting_front.png"
- },
- drawtype = "nodebox",
- paramtype = "light",
- paramtype2 = "facedir",
- groups = {cracky = 3, not_in_creative_inventory = 1},
- light_source = CROSSWALK_LIGHTING_LIGHT_RANGE,
- drop = "infrastructure:crosswalk_lighting_dark",
- node_box = {
- type = "fixed",
- fixed = {
- {-3/8, -1/2, -1/4, 3/8, 1/2, -3/16},
- {-3/8, -1/2, 3/16, 3/8, 1/2, 1/4},
- {-1/4, 1/4, -3/16, -1/8, 3/8, 3/16},
- {1/8, 1/4, -3/16, 1/4, 3/8, 3/16},
- {-1/8, -1/2, -3/16, 1/8, -1/4, 3/16},
- {-1/2, -1/2, -1/8, 1/2, -3/8, 1/8},
- }
- },
- selection_box = {
- type = "fixed",
- fixed = {-3/8, -1/2, -1/4, 3/8, 1/2, 1/4}
- },
-
- on_punch = function(pos, node)
- minetest.swap_node(pos, {name = "infrastructure:crosswalk_lighting_dark", param2 = node.param2})
- end,
-
- mesecons = {effector = {
- action_off = function (pos, node)
- minetest.swap_node(pos, {name = "infrastructure:crosswalk_lighting_dark", param2 = node.param2})
- end,
- }}
- })
-
- minetest.register_alias("infrastructure:crosswalk_lighting", "infrastructure:crosswalk_lighting_dark")