Advertisement
MagmaLP

Page 1

Jul 29th, 2023 (edited)
1,161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.48 KB | None | 0 0
  1. local printer = peripheral.wrap("bottom")
  2.  
  3. function msg(gap, line, text)
  4.     printer.setCursorPos(gap,line)
  5.     text = printer.write(text)
  6. end
  7.  
  8. if printer.newPage() then
  9.     for i = 2,6 do
  10.         msg(11,i,"#")
  11.     end
  12.     msg(11,07,"#####")  
  13.     msg(10,09,"Lycodon")
  14.     msg(11,10,"Rules")
  15.     msg(09,13,"-English-")
  16.     msg(01,16,"use <-- or --> to scroll")
  17.    
  18.     printer.setPageTitle("Page 0")
  19.     printer.endPage()
  20. else
  21.     error("Page could not be created.")
  22. end
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement