Advertisement
Guest User

text

a guest
Nov 22nd, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.88 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("back")
  11.                 mon.setTextScale(2)
  12.                 -- mon.clear()
  13.                         centerText("BREAKING NEWS", 4,16384)
  14.                         centerText("--------------", 5,1)
  15.                         centerText("Mojang announce EULA changes to servers", 6,1)
  16.                         centerText("'This will fundamentally change how we run", 7,1)
  17.                         centerText("and play on servers.'", 8,1)
  18.                         centerText("- Sterling, Mineplex CEO", 9,1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement