DeanReid

VL Tekkit, Information Board

Oct 1st, 2013 (edited)
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.31 KB | None | 0 0
  1. local function 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.  
  8. local oldEvent = os.pullEvent
  9. os.pullEvent = os.pullEventRaw
  10.  
  11. centerText("Information Board")
  12. print ("=================================================================")
  13. print ("")
  14. centerText("Type /cake for free unlawful Cake")
  15. print ("----------------------------------------------------------------")
  16. print ("")
  17. centerText("This server comes with a Tree Chopping Tool, ")
  18. print ("")
  19. centerText("You need an *Iron Axe* or above **NOT MODDED ONES** to be able to use it")
  20. print ("----------------------------------------------------------------")
  21. print ("")
  22. centerText("New Forum")
  23. print ("")
  24. centerText("Register on the forums at www.voxelloop.co.uk/ :) ")
  25. print ("----------------------------------------------------------------")
  26. print ("")
  27. centerText("New Teleport Plugin")
  28. print ("")
  29. centerText("We have a new TP Plugin Click the button in the main spawn room to be teleported Randomly")
  30. print ("----------------------------------------------------------------")
  31. print ("")
  32. centerText("Header")
  33. print ("")
  34. centerText("Other Info Coming Soon!")
  35. print ("")
  36. print ("=================================================================")
Add Comment
Please, Sign In to add comment