Advertisement
Guest User

Untitled

a guest
Aug 26th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. monitor = peripheral.wrap("top")
  2. monitor.setTextScale(1.5)
  3.  
  4. function main()
  5. while true do
  6.         while not redstone.getInput("front") do
  7.         os.queueEvent("randomEvent")
  8.         os.pullEvent()
  9.     end
  10. if colors.test(redstone.getBundledInput("front"), colors.blue) then
  11.         monitor.clear()
  12.         monitor.setCursorPos(6,4)
  13.         monitor.write("Blue Registered")
  14.     end
  15. if colors.test(redstone.getBundledInput("front"), colors.white) then
  16.         monitor.clear()
  17.         monitor.setCursorPos(6,4)
  18.         monitor.write("White Registered")
  19.     end
  20. if colors.test(redstone.getBundledInput("front"), colors.black) then
  21.         monitor.clear()
  22.         monitor.setCursorPos(6,4)
  23.         monitor.write("Black Registered")
  24.     end
  25. if colors.test(redstone.getBundledInput("front"), colors.lightGray) then
  26.         monitor.clear()
  27.         monitor.setCursorPos(6,4)
  28.         monitor.write("Light Gray Registered")
  29.     end
  30. end
  31. end
  32.  
  33. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement