Advertisement
Maxstripe

Terminal glasses V1

Jun 24th, 2014
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. br = peripheral.wrap("top") --Terminal Glasses Bridge
  2.  
  3. function header() -- Prints the Display Name
  4. br.addText(25, 45, "Oracle Display - v0.4", 0x4FFF84)
  5. end
  6.  
  7. function Box() -- Adds the Outlines
  8. br.addGradientBox(3, 65, 200, 2, 0x0000FF, 1, 0x9C1919, 1, 2)
  9. br.addGradientBox(3, 110, 200, 2, 0x9C1919, 1, 0x000FF, 1, 2)
  10. end
  11.  
  12. function Time() -- Displays the Minecraft Time
  13. local time = os.time()
  14. time = textutils.formatTime(time, false)
  15. br.addText(5, 70, "The current Minecraft Time is:", 0x9C1919)
  16. br.addText(160, 70, time, 0x0000FF)
  17. end
  18.  
  19. function Update() -- Clears the screen and then reloads the display
  20. br.clear()
  21. -- aeItems()
  22. header()
  23. Box()
  24. Time()
  25. -- aePower()
  26. sleep(0.1)
  27. end
  28.  
  29. while true do
  30. Update()
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement