Rolcam

Computercraft - Terminal Glasses Full Screen Test

Jul 11th, 2025 (edited)
913
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This is a joke program. Please don't use this for in-game evil
  2.  
  3.  
  4. -- Side the glasses bridge is on
  5. glass = peripheral.wrap("top")
  6.  
  7. -- Adds a black box to cover the entire screen. It wil gradually darken to black out your vision
  8. for i = 0, 1, 0.1 do
  9.     glass.clear()
  10.     glass.addBox(0, 0, 1000, 1000, 0x000000, i)
  11.     sleep(0.1)
  12. end
  13.  
  14. -- Adds text to screen
  15. glass.addText(100, 100,"Buy this thing!", 0xFFFFFF)
  16. glass.addText(100, 110,"For ONLY $9.99*", 0xFFFFFF)
  17. glass.addText(100, 150,"*Per minute for eternity", 0xFFFFFF)
  18. -- adds an icon to the screen | Change the "1081" to whatever block/item ID you want
  19. glass.addIcon(200, 100, 1081, 1)
  20.  
  21. -- Writes and updates the timer for when the "ad" will disappear
  22. for k = 10, 1, -1 do
  23.     glass.addBox(99, 169, 1000, 1000, 0x000000, 1)
  24.     glass.addText(100, 170,"This ad will close in " .. k .. " seconds      ", 0xFFFFFF)
  25.     sleep(1)
  26. end
  27. -- Clears everything after it's done
  28. glass.clear()
Advertisement
Add Comment
Please, Sign In to add comment