Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --This is part of a Computercraft Programming Teaching Program
- tSides = {"left","right","bottom","top","front","back"}
- for i = 1, #tSides do
- monitor = peripheral.wrap(tSides[i])
- if monitor then
- side = tSides[i]
- break
- end
- end
- --Prevents program termination
- os.pullEvent = os.pullEventRaw
- term.redirect(peripheral.wrap(side))
- -- Resets Screen
- function reset()
- term.setTextColor(colors.white)
- term.setBackgroundColor(colors.black)
- term.clear()
- term.setCursorPos(1,1)
- end
- reset()
- print("Section 8 - Redstone \n ")
- print("rs.setOutput(\"Side\", true/false) - Sets the redstone output for the computer. Sides: top, bottom, left, right, front, back")
- print(" ")
- print("rs.setBundledOutput(\"Side\",colors.red) - Sets the bundled redstone output for a computer. Only one state can be set per side")
- print(" ")
- print("To set multiple colors, use colors.combine(colors.red, colors.blue). This will set the output of red and blue to true.")
- print(" ")
- print("To turn off the bundled output, just use \"0\" instead of colors")
- term.restore()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement