Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Statements
- local mon = peripheral.wrap("right")
- os.loadAPI ("bundleAPI")
- mon.clear()
- -- Back Colored Wires
- -- White
- local bWhite = 0
- if bundleAPI.getInput("back", "white") == true then
- print("BWhite") -- Displays on Computer
- bWhite = 1
- else bWhite = 0
- print("NobWhite") -- Displays on Computer
- end
- -- Orange
- local bOrange = 0
- if bundleAPI.getInput("back", "orange") == true then
- print("BOrange") -- Displays on Computer
- bOrange = 1
- else bOrange = 0
- print("NobOrange") -- Displays on Computer
- end
- -- Blue
- local bBlue = 0
- if bundleAPI.getInput("back", "blue") == true then
- print("BBlue") -- Displays on Computer
- bBlue = 1
- else bBlue = 0
- print("NobBlue") -- Displays on Computer
- end
- -- Light Blue
- local bLightBlue = 0
- if bundleAPI.getInput("back", "lightblue") == true then
- print("BLightBlue") -- Displays on Computer
- bLightBlue = 1
- else bLightBlue = 0
- print("NobLightBLue") -- Displays on Computer
- end
- -- Yellow
- local bYellow = 0
- if bundleAPI.getInput("back", "yellow") == true then
- print("BYellow") -- Displays on Computer
- bYellow = 1
- else bYellow = 0
- print("NobYellow") -- Displays on Computer
- end
- -- Lime
- local bLime = 0
- if bundleAPI.getInput("back", "lime") == true then
- print("BLime") -- Displays on Computer
- bLime = 1
- else bLime = 0
- print("NobLime") -- Displays on Computer
- end
- -- Left Colored Wires
- -- White
- local lWhite = 0
- if bundleAPI.getInput("left", "white") == true then
- print("lWhite") -- Displays on Computer
- lWhite = 1
- else lWhite = 0
- print("NolWhite") -- Displays on Computer
- end
- -- Orange
- local lOrange = 0
- if bundleAPI.getInput("left", "orange") == true then
- print("lOrange") -- Displays on Computer
- lOrange = 1
- else lOrange = 0
- print("NolOrange") -- Displays on Computer
- end
- -- Blue
- local lBlue = 0
- if bundleAPI.getInput("left", "blue") == true then
- print("lBlue") -- Displays on Computer
- lBlue = 1
- else lBlue = 0
- print("NolBlue") -- Displays on Computer
- end
- -- Light Blue
- local lLightBlue = 0
- if bundleAPI.getInput("left", "lightblue") == true then
- print("lLightBlue") -- Displays on Computer
- lLightBlue = 1
- else lLightBlue = 0
- print("NolLightBLue") -- Displays on Computer
- end
- -- Yellow
- local lYellow = 0
- if bundleAPI.getInput("left", "yellow") == true then
- print("lYellow") -- Displays on Computer
- lYellow = 1
- else lYellow = 0
- print("NolYellow") -- Displays on Computer
- end
- -- Lime
- local lLime = 0
- if bundleAPI.getInput("left", "lime") == true then
- print("lLime") -- Displays on Computer
- lLime = 1
- else lLime = 0
- print("NolLime") -- Displays on Computer
- end
- bTotal = bWhite + bOrange + bBlue + bLightBlue + bYellow + bLime
- lTotal = lWhite + lOrange + lBlue + lLightBlue + lYellow + lLime
- MJTotal = bTotal + lTotal
- MJTotal = MJTotal*600000
- mon.setTextScale(5)
- mon.setCursorPos(1,1)
- mon.write(MJTotal)
- sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment