luckdemon

BanList

Aug 12th, 2012
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.23 KB | None | 0 0
  1. --vars
  2. monside = "back"
  3. header1 = "BANNED ITEMS"
  4. rule1 = "All dem explosives and shit"
  5. rule2 = "Mining LAZORS"
  6. rule3 = "Crystal Chests"
  7. rule4 = ""
  8. rule5 = ""
  9. rule6 = ""
  10. rule7 = ""
  11. rule8 = ""
  12.  
  13. mon = peripheral.wrap(monside)
  14. term.redirect(mon)
  15. term.clear()
  16. mon.setTextScale(2.5)
  17. mX,mY = mon.getSize()
  18. x1 =  math.floor(mX/2) - math.floor(string.len(header1)/2)
  19. x2 =  math.floor(mX/2) - math.floor(string.len(rule1)/2)
  20. x3 =  math.floor(mX/2) - math.floor(string.len(rule2)/2)
  21. x4 =  math.floor(mX/2) - math.floor(string.len(rule3)/2)
  22. x5 =  math.floor(mX/2) - math.floor(string.len(rule4)/2)
  23. x6 =  math.floor(mX/2) - math.floor(string.len(rule5)/2)
  24. x7 =  math.floor(mX/2) - math.floor(string.len(rule6)/2)
  25. x8 =  math.floor(mX/2) - math.floor(string.len(rule7)/2)
  26. x9 =  math.floor(mX/2) - math.floor(string.len(rule8)/2)
  27. term.setCursorPos(x1,1)
  28. term.write(header1)
  29. term.setCursorPos(x2,3)
  30. term.write(rule1)
  31. term.setCursorPos(x3,5)
  32. term.write(rule2)
  33. term.setCursorPos(x4,7)
  34. term.write(rule3)
  35. term.setCursorPos(x5,9)
  36. term.write(rule4)
  37. term.setCursorPos(x6,11)
  38. term.write(rule5)
  39. term.setCursorPos(x7,13)
  40. term.write(rule6)
  41. term.setCursorPos(x8,15)
  42. term.write(rule7)
  43. term.setCursorPos(x9,17)
  44. term.write(rule8)
  45. term.restore()
Advertisement
Add Comment
Please, Sign In to add comment