Advertisement
dracoix

DM - Buildcraft

Aug 20th, 2012
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.41 KB | None | 0 0
  1. --0123456789ABCDEF0123456789ABCDEF0123456789ABCDE
  2.  
  3. local aText = {
  4.  " ",
  5.  "BuildCraft Items",
  6.  " ",
  7. }
  8.  
  9. local bText = {
  10.   "Redstone Engine:",
  11.   "- Low-Power Generator",
  12.   "- Requires only a Redstone Signal",
  13. }
  14.  
  15. local cText = {
  16.   "Steam Engine:",
  17.   "- Mid-Power Generator",
  18.   "- Requires Fuel & Redstone Signal",
  19. }
  20.  
  21. local dText = {
  22.   "Energy Link:",
  23.   "- Converts IC2 EU into BC Juels",
  24.   "- Stable at 512 EU/t Total Input",
  25. }
  26.  
  27. local eText = {
  28.   "The Quarry:",
  29.   "- Mines Up to 62x62 Area",
  30.   "- The Lazy-Man's Resource Generator",
  31. }
  32.  
  33. local sSide = "front"
  34.  
  35. local function printCenter(mon, t)
  36.   local w, h = mon.getSize()
  37.   mon.clear()
  38.   local y = math.floor((h / 2) - (#t / 2))
  39.   for i, line in ipairs(t) do
  40.         local x = math.floor((w / 2) - (#line / 2))
  41.         mon.setCursorPos(x, y + i)
  42.         mon.write(line)
  43.   end
  44. end
  45.  
  46. local function printLeft(mon, t)
  47.   local w, h = mon.getSize()
  48.   mon.setTextScale(1)
  49.   mon.clear()
  50.   local y = math.floor((h / 2) - (#t / 2))
  51.   for i, line in ipairs(t) do
  52.         local x = 1
  53.         mon.setCursorPos(x, y + i)
  54.         mon.write(line)
  55.   end
  56. end
  57.  
  58. while 0<1 do
  59. printCenter(peripheral.wrap(sSide), aText)
  60. os.sleep(5)
  61. printLeft(peripheral.wrap(sSide), bText)
  62. os.sleep(5)
  63. printLeft(peripheral.wrap(sSide), cText)
  64. os.sleep(5)
  65. printLeft(peripheral.wrap(sSide), dText)
  66. os.sleep(5)
  67. printLeft(peripheral.wrap(sSide), eText)
  68. os.sleep(5)
  69. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement