for example:
f = false
t1 = redstone.getBundledInput("back", 1)
t2 = redstone.getBundledInput("back", 2)
t3 = redstone.getBundledInput("back", 4)
if t2 ~= f and t3 ==f then
print("orange wire active")
end
Posted 08 December 2013 - 12:49 PM
f = false
t1 = redstone.getBundledInput("back", 1)
t2 = redstone.getBundledInput("back", 2)
t3 = redstone.getBundledInput("back", 4)
if t2 ~= f and t3 ==f then
print("orange wire active")
end
Posted 08 December 2013 - 12:52 PM
Posted 08 December 2013 - 12:57 PM
t1 = redstone.getBundledInput("back", 1)
t2 = redstone.getBundledInput("back", 2)
t3 = redstone.getBundledInput("back", 4)
if t2 and not t1 and not t3 then
print("orange wire active")
elseif t1 and not t2 and not t3 then
print("white wire active")
elseif t3 and not t1 and not t2 then
print("magenta wire active")
else
print("no wire active")
end
Posted 08 December 2013 - 01:16 PM
local input = rs.getBundledInput('back')
if colors.test(input, colors.white) then
--# white wire active
elseif colors.test(input, colors.orange) then
--# orange wire active
elseif colors.test(input, colors.magenta) then
--# etc.
end
Edited by Kingdaro, 08 December 2013 - 01:16 PM.
0 members, 1 guests, 0 anonymous users