Advertisement
toast_account_i_made

Untitled

Dec 16th, 2022 (edited)
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. monitors = {
  2. main = peripheral.wrap("monitor_0")
  3. }
  4.  
  5. core = {
  6. temp = 100,
  7. }
  8.  
  9. function write_ln(monitor, str)
  10. monitors[monitor].write(str)
  11. local x, y = term.getCursorPos()
  12. monitors[monitor].setCursorPos(1, y+1)
  13. end
  14.  
  15. function draw_main()
  16. monitors.main.clear()
  17. monitors.main.setCursorPos(1,1)
  18. monitors.main.setCursorBlink(true)
  19.  
  20. write_ln("main", "- Chernobl v2 -")
  21. write_ln("main", "- a v2 -")
  22. write_ln("main", "- das v2 -")
  23. end
  24.  
  25. draw_main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement