Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SIDE = "left"
- local i = true
- while i == true do
- term.clear() -- Clears the screen
- term.setCursorPos(1, 1)
- write("Password: ")
- pw = read()
- if pw == "1" then
- if redstone.testBundledInput(SIDE, colors.red) then
- redstone.setBundledOutput(SIDE, colors.subtract(redstone.getBundledOutput(SIDE), colors.red))
- else
- redstone.setBundledOutput(SIDE, colors.combine(redstone.getBundledOutput(SIDE),colors.red))
- end
- elseif pw == "2" then
- if redstone.testBundledInput(SIDE, colors.blue) then
- redstone.setBundledOutput(SIDE, colors.subtract(redstone.getBundledOutput(SIDE), colors.blue))
- else
- redstone.setBundledOutput(SIDE, colors.combine(redstone.getBundledOutput(SIDE), colors.blue))
- end
- elseif pw == "stop" then
- i = false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement