Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- monitor = peripheral.wrap("top")
- monitor.setTextScale(1.5)
- function main()
- while true do
- while not redstone.getInput("front") do
- os.queueEvent("randomEvent")
- os.pullEvent()
- end
- if colors.test(redstone.getBundledInput("front"), colors.blue) then
- monitor.clear()
- monitor.setCursorPos(6,4)
- monitor.write("Blue Registered")
- end
- if colors.test(redstone.getBundledInput("front"), colors.white) then
- monitor.clear()
- monitor.setCursorPos(6,4)
- monitor.write("White Registered")
- end
- if colors.test(redstone.getBundledInput("front"), colors.black) then
- monitor.clear()
- monitor.setCursorPos(6,4)
- monitor.write("Black Registered")
- end
- if colors.test(redstone.getBundledInput("front"), colors.lightGray) then
- monitor.clear()
- monitor.setCursorPos(6,4)
- monitor.write("Light Gray Registered")
- end
- end
- end
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement