From ee65d188cae9bf2ab73ab356ff556a98a6e29b3c Mon Sep 17 00:00:00 2001 From: cheapie Date: Thu, 22 Nov 2018 15:44:38 -0600 Subject: Allow lights to be rotated --- init.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/init.lua b/init.lua index 2b1a52e..df2af95 100644 --- a/init.lua +++ b/init.lua @@ -998,6 +998,7 @@ for i=0,14,1 do description = "Digilines Dimmable Light"..(i > 0 and " (on state - you hacker you!)" or ""), tiles = {"digistuff_light.png"}, paramtype = "light", + paramtype2 = "facedir", drawtype = "nodebox", node_box = { type = "fixed", @@ -1033,7 +1034,12 @@ for i=0,14,1 do {x = 0,y = 0,z = -1}, {x = 0,y = 1,z = 0}, {x = 0,y = -1,z = 0}, + {x = 2,y = 0,z = 0}, + {x = -2,y = 0,z = 0}, + {x = 0,y = 0,z = 2}, + {x = 0,y = 0,z = -2}, {x = 0,y = 2,z = 0}, + {x = 0,y = -2,z = 0}, } }, effector = { -- cgit v1.2.3