From 946d833d2e3277dd43536ffd6b3300554081e56a Mon Sep 17 00:00:00 2001 From: webdesigner97 Date: Mon, 19 May 2014 21:27:47 +0200 Subject: Many changed files from the last weeks where I don't know what I chenged --- trafficlight/pole.lua | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) (limited to 'trafficlight/pole.lua') diff --git a/trafficlight/pole.lua b/trafficlight/pole.lua index 46d77aa..a8815fc 100644 --- a/trafficlight/pole.lua +++ b/trafficlight/pole.lua @@ -1,20 +1,23 @@ --[[ StreetsMod: inDev Trafficlights ]] -minetest.register_node(":digiline_vertical:wire", { - description = "Vertical digiline", - tiles = {"default_brick.png"}, - wield_image = "digiline_std_inv.png", - paramtype = "light", - digiline = - { - wire = - { - rules = streets.rules_pole - } - }, - groups = {dig_immediate = 3} -}) +local rules_pole = { + {x= 0, y= 0, z=-1}, + {x= 1, y= 0, z= 0}, + {x=-1, y= 0, z= 0}, + {x= 0, y= 0, z= 1}, + {x= 1, y= 1, z= 0}, + {x= 1, y=-1, z= 0}, + {x=-1, y= 1, z= 0}, + {x=-1, y=-1, z= 0}, + {x= 0, y= 1, z= 1}, + {x= 0, y=-1, z= 1}, + {x= 0, y= 1, z=-1}, + {x= 0, y=-1, z=-1}, + {x= 0, y=-1, z= 0}, + {x= 0, y= 1, z= 0} +} + minetest.register_node(":streets:bigpole", { description = "Pole", paramtype = "light", @@ -31,7 +34,7 @@ minetest.register_node(":streets:bigpole", { on_place = minetest.rotate_node, digiline = { wire = { - rules = streets.rules_pole + rules = rules_pole } } }) -- cgit v1.2.3