I have set up a system that allows me to activate or dis-activate any of my machines in my house on tekkit. The problem is though is that when i activate one it just turns off all the others. Can someone figure out whats wrong and show me what i need to do?
while true do
term.clear()
term.setCursorPos(1,1)
write(" Input command here: ")
local input = read()
if input == "sorter_on" then
rs.setBundledOutput("bottom" , colors.white)
print("Item sorter turned on")
sleep(2)
term.clear()
term.setCursorPos(1,1)
end
if input == "sorter_off" then
rs.setBundledOutput("bottom" , colors.white)
print("Item sorter turned off")
sleep(2)
term.clear()
term.setCursorPos(1,1)
end
if input == "block_on" then
rs.setBundledOutput("bottom" , colors.red)
print("Block condenser turned on")
sleep(2)
term.clear()
term.setCursorPos(1,1)
end
if input == "block_off" then
rs.setBundledOutput("bottom" , colors.red)
print("Block condenser turned off")
sleep(2)
term.clear()
term.setCursorPos(1,1)
end
if input == "music_on" then
rs.setBundledOutput("bottom", rs.getBundledOutput("bottom") + colors.blue)
end
if input == "commands" then
print("sortert_on")
print("sorter_off")
print("block_on")
print("block_off")
print("commands")
sleep(4)
term.clear()
term.setCursorPos(1,1)
end
end