luckdemon

BeatTheBeastMon1

Jul 1st, 2014
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.62 KB | None | 0 0
  1. local cPrint = function(text)
  2.         local x2,y2 = term.getCursorPos()
  3.         local x,y = term.getSize()
  4.         term.setCursorPos(math.ceil((x / 2) - (text:len() / 2)), y2)
  5.        
  6.         print(text)
  7. end
  8. mon = peripheral.wrap("bottom")
  9. mon.setTextScale(2)
  10. term.redirect(mon)
  11. term.clear()
  12. term.setCursorPos(1,1)
  13. cPrint("Team 1")
  14. term.setCursorPos(1,2)
  15. cPrint("North East")
  16. term.setCursorPos(1,3)
  17. cPrint("Rainforest")
  18. term.setCursorPos(1,4)
  19. cPrint("")
  20. term.setCursorPos(1,6)
  21. cPrint("Team 2")
  22. term.setCursorPos(1,7)
  23. cPrint("South")
  24. term.setCursorPos(1,8)
  25. cPrint("Mystic Grove")
  26. term.setCursorPos(1,9)
  27. cPrint("")
Advertisement
Add Comment
Please, Sign In to add comment