yanniclord

Untitled

Jun 9th, 2014
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. localfunction centerText(text)
  2. local x,y = term.getSize()
  3. local x2,y2 = term.getCursorPos()
  4. term.setCursorPos(math.ceil((x / 2) - (text:len() / 2)), y2)
  5. write(text)
  6. end
  7. monitor = peripheral.wrap("back")
  8. monitor.setTextScale(5)
  9. monitor.setCursorPos(1,1)
  10. centerText("Welcome to Yannic's Party Boat :D")
  11. end
Advertisement
Add Comment
Please, Sign In to add comment