MrTimcakes

List

May 19th, 2013
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.83 KB | None | 0 0
  1. local monitorSide = "top" -- replace this with the side your monitor is on
  2. local title = "Dukkit Rules - Dukkit.Ducke.co"
  3.  
  4. local list = { -- replace these with your todo list
  5.   'No Duplication Glitches!',
  6.   'No Griefing!',
  7.   'No Stealing!',
  8.   'Please don\'t talk in all caps',
  9.   'Be Mature',
  10.   'Play friendly.',
  11.   'Be respectful to everyone.',
  12.   'No flaming of any sorts allowed.',
  13.   'If you have a bad attitude, leave.',
  14.   'Do not Beg for anything (Admin, Items)',
  15.   'No 3rd party clients allowed.'
  16. }
  17.  
  18. local mon = peripheral.wrap(monitorSide)
  19. local w,h = mon.getSize()
  20.  
  21. mon.setBackgroundColor(colors.white)
  22. mon.clear()
  23.  
  24. mon.setCursorPos((w - #title) / 2, 2)
  25. mon.setTextColor(colors.red)
  26. mon.write(title)
  27.  
  28. mon.setTextColor(colors.blue)
  29. for i=1, #list do
  30.   mon.setCursorPos(3, 3 + i)
  31.   mon.write(i..'. '..list[i])
  32. end
Advertisement
Add Comment
Please, Sign In to add comment