Advertisement
Guest User

startup

a guest
Jul 24th, 2014
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.95 KB | None | 0 0
  1.         function centerText(text, y, color)
  2.                    -- mon.clear()
  3.                    mX = mon.getSize()
  4.                    x =  math.floor(mX/2) - math.floor(string.len(text)/2)
  5.                    mon.setCursorPos(x, y)
  6.                    mon.setTextColor(color)
  7.                    mon.write(text)
  8.                 end
  9.                  
  10.                 mon = peripheral.wrap("left")
  11.                 mon.setTextScale(1)
  12.                 mon.setBackgroundColor(colors.blue)
  13.                 -- mon.clear()
  14.                         centerText("Welcome to HiddenFTB!", 1,16384)
  15.                         centerText("----------------------", 2,1)
  16.                         centerText("Portal gun, staff of traveling, power tool", 3,1)
  17.                         centerText("and Mining laser will all be taken at spawn", 4,1)
  18.                         centerText("Anything you lose wont be given back.", 5,1)
  19.                         centerText("Good Luck!", 6,1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement